Hi everyone,

I get following exception as response when accessing the Version webservice from the Axis 2-1.1
distribution:

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
    at [row,col {unknown-source}]: [1,0]
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
       at sample.axisversion.VersionStub.getVersion(VersionStub.java:155)
       at Test.start(Test.java:11)
       at Test.main(Test.java:18)

I generated the stub classes with wsdl2java and wrote following test class:

   import sample.axisversion.VersionStub;
   import sample.axisversion.VersionStub.GetVersionResponse;

   public class Test {

       public void start()
       throws Exception
       {
VersionStub versionStub = new VersionStub("http://localhost:8080/axis2/services/Version";);
           GetVersionResponse response = versionStub.getVersion();
           System.out.println(response.get_return());
       }

       public static void main(String[] args)
       throws Exception{
           Test test = new Test();
           test.start();
       }

   }
This is my system:
Windows XP (SP2)
Java 1.5.0 Update 10
Apache Tomcat 6.0.2
Axis 2-1.1 webapp (from war file)

Tomcat starts up without error messages, and the Axis2 webapp is available. The Version service and
its operation getVersion is listed and marked as active.

The validation page shows following message:
There was a problem in Axis2 version service , may be the service not available or some thing has gone wrong. But this does not mean system is not working ! Try to upload some other service and check to see
whether it is working.

The rest of this page seems to be ok (I also get the message "The core axis2 libraries are present.").



I did some debugging and found out that in the AxisServlet.doPost()-method the HttpServletRequest's
InputStream is empty.

I checked the communication with TCPMon - but the request seemed to be ok.
Here are the messages:

Request:
   POST /axis2/services/Version HTTP/1.1
   User-Agent: Axis2
   Host: 127.0.0.1:8888
   Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8;action="urn:getVersion";

   c0
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Header /><soapenv:Body><getVersion /></soapenv:Body></soapenv:Envelope>
   0

Response:
   HTTP/1.1 500 Internal Server Error
   Server: Apache-Coyote/1.1
   Set-Cookie: JSESSIONID=63E04CA3673054DE46016A969755DF4B; Path=/axis2
   Content-Type: application/soap+xml;charset=UTF-8
   Transfer-Encoding: chunked
   Date: Fri, 15 Dec 2006 16:43:19 GMT
   Connection: close

   320
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"; xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:759F1D5C854B55ED1511662009998903</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value></soapenv:Code><soapenv:Reason><soapenv:Text xml:lang="en-US">com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog&#xd; at [row,col {unknown-source}]: [1,0]</soapenv:Text></soapenv:Reason><soapenv:Detail></soapenv:Detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
   0



Does anyone have a clue?

Thanks and best regards,
H. Herrmann

Reply via email to