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

Reply via email to