Re: ClassCastException while opening XLSX files

2017-01-25 Thread Christian Castelli
Thanks Javen, I'll try it. 2017-01-25 16:26 GMT+01:00 Javen O'Neal : > Looks like both POI 3.15 and 3.6 tried to load, but Maven correctly > rejected 3.6 due to a duplicate version conflict. However, if the library > that tried to import 3.6 is expecting a class from 3.6 that was removed or > ren

Re: ClassCastException while opening XLSX files

2017-01-25 Thread Javen O'Neal
Looks like both POI 3.15 and 3.6 tried to load, but Maven correctly rejected 3.6 due to a duplicate version conflict. However, if the library that tried to import 3.6 is expecting a class from 3.6 that was removed or renamed in 3.15, you would likely get some kind of Class error. Seems to be from i

Re: ClassCastException while opening XLSX files

2017-01-25 Thread Christian Castelli
It's important to notice that this exception is occasionally thrown, so it's Maven related but I cannot understand what causes differences between builds... On 2017-01-25 10:09 (+0100), Jörn Franke wrote: > Might be that one dependency loads a different version of the parser? > > > On 25 Jan

Re: ClassCastException while opening XLSX files

2017-01-25 Thread Christian Castelli
Maybe, it could be a conflict with some other library, I can see from Maven dependency tree that when it packages EAR it removes many artifacts for avoiding duplicates or conflicts, so I cannot understand what's the problem... On 2017-01-25 10:09 (+0100), Jörn Franke wrote: > Might be that on

Re: ClassCastException while opening XLSX files

2017-01-25 Thread Jörn Franke
Might be that one dependency loads a different version of the parser? > On 25 Jan 2017, at 10:04, Christian Castelli > wrote: > > Hi all, > when I deploy my web application on a different machine other than mine I > receive this Exception when I try to open XLSX files with > > Workbook wb =

ClassCastException while opening XLSX files

2017-01-25 Thread Christian Castelli
Hi all, when I deploy my web application on a different machine other than mine I receive this Exception when I try to open XLSX files with Workbook wb = WorkbookFactory.create(new File(IVENTORY_TEMPLATE)); java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration c