- javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException
- at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:75)
- at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:136)
- at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
- at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
- at org.codehaus.xfire.util.STAXUtils.<clinit>(STAXUtils.java:48)
- at org.codehaus.xfire.util.jdom.StaxBuilder.<init>(StaxBuilder.java:150)
- at org.codehaus.xfire.wsdl.AbstractWSDL.<clinit>(AbstractWSDL.java:43)
- at org.codehaus.xfire.wsdl11.builder.DefaultWSDLBuilderFactory.createWSDLBuilder(DefaultWSDLBuilderFactory.java:25)
- at org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40)
- at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104)
- at org.codehaus.xfire.transport.http.XFireServletController.generateWSDL(XFireServletController.java:380)
- at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:125)
- at org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
- at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
- at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
- at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
- at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
- at com.icss.j2ee.servlet.filter.ChangeReqEncoding.doFilter(Unknown Source)
- at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
- at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
- at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
- at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
- at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
- at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
- at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
- at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
因爲在JDK1.4中javax.xml.stream.XMLInputFactory,javax.xml.stream.XMLOutputFactory,css
javax.xml.stream.XMLEventFactory 沒有具體的實現,必須指定具體的實現才能使用。java
所以,須要在JVM參數中加入:web
- -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory
- -Djavax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory
- -Djavax.xml.stream.XMLEventFactory=com.ctc.wstx.stax.WstxEventFactory