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