poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javen O'Neal" <javenon...@gmail.com>
Subject Re: POI-3.15: Commons-Collections-4 vs. Jasper Reports' dependency on Commons-Collections-3
Date Wed, 26 Oct 2016 08:40:08 GMT
The Commons collection project has namespaced their library so that
collections3 and collections4 can run side by side.[1]

I don't think POI required any version of org.apache.commons.collections
prior to 3.15, if that helps.

Jasper reports will probably upgrade to collections4 in the future and
hopefully a newer version of POI as well (there may be some modifications
they need to make due to the removal of deprecated code and the enums
changes in 3.15).

[1] https://commons.apache.org/proper/commons-collections/release_4_0.html

On Oct 26, 2016 01:21, "Andreas Reichel" <andreas@manticore-projects.com>

> Dear Apache POI team,
> thank you very much for this great project. Recently I hit a caveat though:
> Sine POI 3.15 the software depends on commons-collections-4 (previously it
> depended on commons-collections-3 only).
> There is however another good software library "Jasper Reports", which
> still depends on commons-collections-3 and also Apache POI.
> When using commons-collections-4 and POI-3.15, Jasper Reports throws:
> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
> org/apache/commons/collections/map/ReferenceMap
> at net.sf.jasperreports.engine.component.ComponentsEnvironment.<init>(
> ComponentsEnvironment.java:57)
> As far as I understand it, ReferenceMap is not included in
> commons-collections-4 any longer?
> Please would you like to advise, how to work around that without
> downgrading to POI-3.14? How can these libraries coexist in the future?
> I thank you already, with best regards
> Andreas

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message