Hi,

You can try with the latest version of xml-apis, e.g. from
http://search.maven.org/#artifactdetails|xml-apis|xml-apis|1.4.01|jar,
as this contains up-to-date versions of these classes.

Plesae let us know if it works for you so we can update our FAQ entry
accordingly.

Thanks... Dominik.

On Fri, Jan 9, 2015 at 7:06 PM, Banerjee, Tapas
<tapas.baner...@fmr.com.invalid> wrote:
> I think, this ((IBM JDK 6),  is the issue.
> I tried upgrading xmi-api.jar etc, still no luck.
>
> From the 
> http://stackoverflow.com/questions/26866398/nosuchmethoderror-in-main-thread-while-reading-xlsx-using-apache-poi
> I see minimum version required is:
> java 1.6.0_18
>
> Are there any other option (i.e. installing/upgrading different jar) to fix 
> the issue for now as upgrading IBM - Java 7.0 will take some tme?
>
> Thanks,
>
> -----Original Message-----
> From: Dominik Stadler [mailto:dominik.stad...@gmx.at]
> Sent: Friday, January 09, 2015 5:23 AM
> To: POI Developers List
> Subject: Re: getting exception on XMLEventFactory.newFatory on using poi 3.11 
> API.
>
> Hi,
>
> I think in this case the problem is IBM JDK 6, it seems it does not
> provide some XML functionality that it should have according to the
> Java Spec, IBM JDK 7 seems to work. See
> http://mail-archives.apache.org/mod_mbox/poi-user/201501.mbox/%3CCABdJj54D5ioQtu=Agj-aeoR7PgLfcM53+czwfcc-=6aeSEtp=w...@mail.gmail.com%3E
> for a related discussion.
>
> As we now saw similar errors multiple times and there are a number of
> different things that can cause this, I have now created a FAQ entry
> at http://poi.apache.org/faq.html#faq-N1017E (should appear during the
> next website publish) which tries to describe these different reasons
> and provides hints how to resolve them. Please update/enhance the FAQ
> if necessary.
>
> Thanks... Dominik.
>
> On Thu, Jan 8, 2015 at 9:36 PM, Uwe Schindler <u...@thetaphi.de> wrote:
>> Hi,
>>
>> In most cases this is caused by some outdated xml-apis.jar or stax-apis.jar, 
>> or some very old instance of Xerces or other XML parsers in classpath. As 
>> Java 6+ has STAX APIs bundled, putting them into the classpath or the ext/ 
>> directory of your JVM breaks things. Make sure that you clean your classpath 
>> up! If you use Maven, exclude the useless dependencies on xml-apis.jar or 
>> stax-apis.jar with an exclude. Also make sure you use latest versions of XML 
>> parsers.
>>
>> Uwe
>>
>> -----
>> Uwe Schindler
>> H.-H.-Meier-Allee 63, D-28213 Bremen
>> http://www.thetaphi.de
>> eMail: u...@thetaphi.de
>>
>>
>>> -----Original Message-----
>>> From: Nick Burch [mailto:apa...@gagravarr.org]
>>> Sent: Thursday, January 08, 2015 4:11 PM
>>> To: POI Developers List
>>> Subject: Re: getting exception on XMLEventFactory.newFatory on using poi
>>> 3.11 API.
>>>
>>> On Thu, 8 Jan 2015, Banerjee, Tapas wrote:
>>> > We are using Apache SXSSF to export Excel. We had some issue in
>>> > exporting large Excel, so we moved to 3.11. The API works fine in my
>>> > PC, however when we deploy to our Unix server - we are getting below
>>> > exception
>>> >
>>> > [1/8/15 9:29:06:111 EST] 000000d9 ServletWrappe E
>>> > com.ibm.ws.webcontainer.servle t.ServletWrapper service Uncaught
>>> > service() exception thrown by servlet ExportExcelServlet:
>>> > "java.lang.NoSuchMethodError:
>>> javax/xml/stream/XMLEventFactory.newFac
>>> > tory()Ljavax/xml/stream/XMLEventFactory;"
>>>
>>> Looks like you have a broken / beta JVM. That method should be present on
>>> a spec-compliant Java 6 JVM, see the java 6 javadocs:
>>> http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLEventFact
>>> ory.html#newFactory%28%29
>>>
>>> > What is the minimum java version we need to run 3.11?
>>>
>>> Spec compliant java 1.6, or newer
>>>
>>> Nick
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional
>>> commands, e-mail: dev-h...@poi.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
>> For additional commands, e-mail: dev-h...@poi.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
> For additional commands, e-mail: dev-h...@poi.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to