I am receiving the following error java.lang.NoClassDefFoundError: org/apache/commons/collections/Transformer trying to use BeanMap from the Apache Commons BeanUtils library.
It is generated from the following code: BeanMap studentBeanMap = new BeanMap(cohortStudentData.get(row)); where cohortStudentData is a list of beans.
I am using BeanListHandler from Apache DBUtils to form the list of beans from a database.
I understand from this and this bug report that BeanMap is dependant on the Apache Collections framework. However, I have imported all relevant libraries into my project and into my class, as you can see below:


Does anyone know why this might be happening?
commons-collections. Currently you are usingcommons-collections4(note the 4 here) - but the exception tells you thatorg.apache.commons.collections.Transformer(no 4 in here) is required. Try an download versioncommons-collections-3.