[#5561] - Unable to use commons-collections4-4.0.jar

Category:
Bug report
Priority:
High
Status:
Feedback Requested
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

My application required "commons-collections4-4.0.jar" but jasperreports-5.6.1.jar is not supporting the same, getting the exception
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ReferenceMap.
I understand that package structure is changed in commons-collections4-4.0.jar.
So please advice solution for this.

v5.6
vrkkarthik's picture
Joined: Jul 8 2011 - 9:46am
Last seen: 4 years 11 months ago

3 Comments:

#1
  • Status:New» Feedback Requested
  • Assigned:nobody» teodord

Hi,

I'm not aware of any Commons Collection version 4.4.0.
The current version of this dependency as seen on their website is 4.1:

https://commons.apache.org/proper/commons-collections/

JR has upgraded to Commons Collections version 3.2.1 about two years ago, when that change of package has occurred.

Thanks,
Teodor

#2
  • Resolution:Open» No Change Required
  • Status:Feedback Requested» Resolved

Sorry, initially, I got the version number wrong. Indeed, you were referring to Commons Collections 4.0.

There should be no problem is adding both Collections3 and Collections4 libraries to the classpath. They can run side by side.
You can see this in the samples that we ship with the JR Lib project source tree, where POI 3.15 needs Collections4, while JRLib still needs Collections3.

#3
  • Priority:Urgent» High
  • Reproducibility:N/A» Always
  • Resolution:No Change Required» Open
  • Status:Resolved» Feedback Requested
  • Assigned:nobody»

Hi,
I'm using Jasper 6.13.0 and still this issue present with Collections4.
Performance wise this is hindering me to use jasperreports now since elsewhere I'm using Collection4 and just for the sake of jasper reports need to include collections jar. Please upgrade to collections4 or provide some workaround to use collections4.

Thanks.

Feedback
randomness