3 Replies Latest reply on Mar 27, 2007 4:53 PM by peterj

    Error consuption web service

    rikr2


      Im traying to consume a web service and i get this error:



      AxisFault
       faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
       faultSubcode:
       faultString: org.xml.sax.SAXParseException: Premature end of file.
       faultActor:
       faultNode:
       faultDetail:
       {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file.
       at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
       at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(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:375)
       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)



      I'll appreciate any idea.



        • 1. Re: Error consuption web service
          rikr2

          My team discovered this:

          If JBOSS use a JDK version with JAI component installed then this problem is risen when you try to consume a web service, if you are in this case you should have 2 JDK installed one with JAI component and the another one without it, and start JBOSS with the second one.

          • 2. Re: Error consuption web service
            nhpvti

            And I had this error when running JBoss ESB trialblazer example with JDK 1.6

            • 3. Re: Error consuption web service
              peterj

              JDK 1.6 ships with jax-ws jar files, which then conflict with the jax-ws jar files provided JBossWS 1.2. I recommend not using JDK 1.6 with JBossWS.