| Author |
webservice called from a webapp deployed in Tomcat 6 using Axis1 .4
|
Oscar Rugama
Greenhorn
Joined: Oct 13, 2010
Posts: 4
|
|
Hi Everyone,
I have developed a Web-App which calls a webservices through Axis 1.4 client and deployed it in Tomcat 6. Everything works fine for the simple response(reply without attachments). The problem comes when i try to call a webservice that returns response with attachments. Following is the Exception thrown by the Call.invoke method.
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at java.io.FilterInputStream.available(FilterInputStream.java:142)
at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.available(Unknown Source)
at sun.nio.cs.StreamDecoder.inReady(StreamDecoder.java:343)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:304)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at es.ree.simel.cpcscc._2003.ServicioStub.recogerFichero(ServicioStub.java:436)
at soap.iberdrola.prototipo.protocolo.threads.Intercambio.recogerFichero(Intercambio.java:2027)
at soap.iberdrola.prototipo.utils.Protocolo.recogerFichero(Protocolo.java:119)
at org.apache.jsp.jspCPCS.recogerFichero_jsp._jspService(recogerFichero_jsp.java:111)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Thread.java:619)
I read something about problem with Xerces library, i´using xercesImpl-2.6.2.jar
Please help me to solve this problem, because i have this problem since two weeks ago, and i have tried with different code and didn´t work.
Thanks in advance
Regards
|
 |
Oscar Rugama
Greenhorn
Joined: Oct 13, 2010
Posts: 4
|
|
Hi,
i´ve found the problem.
The problem is that with Axis1.4 Distribution, there are two libraries:
xercesImpl-2.6.2.jar
xml-apis-2.6.2.jar
That should be use for XML, SOAP messages with attachments doesn´t work with these libraries.
However if I use different version of these libraries
xercesImpl.jar
xml-apis.jar
It works all fine
Regards
|
 |
Juan Manuel Reyes M
Greenhorn
Joined: Mar 07, 2012
Posts: 1
|
|
Hi.
I have same problem, could you tell me what versions did you use in the solution please?
Thanks in advance
|
 |
 |
|
|
subject: webservice called from a webapp deployed in Tomcat 6 using Axis1 .4
|
|
|