Announcement Announcement Module
Collapse
No announcement yet.
Premature end of file in Webservice Template-Webservice client Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Premature end of file in Webservice Template-Webservice client

    Hi,
    I am trying to invoke soap service using webservice client and I am geting a premature end of file exception. This is working fine from SOAP UI and sample java client. Below is the trace. I am not sure whether it is expecting any header.


    org.springframework.ws.client.WebServiceIOExceptio n: I/O error: Unexpected end of file from server; nested exception is java.net.SocketException: Unexpected end of file from server
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:543)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:492)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:436)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:427)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:417)
    at com.test.client.WebServiceClient.simpleSendAndRece ive(WebServiceClient.java:58)
    at com.test.client.TestClient.testItemLookup1(TestCli ent.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.runners.model.FrameworkMethod$1.runRefle ctiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallabl e.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExpl osively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod .evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.e valuate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.ev aluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild( BlockJUnit4ClassRunner.java:73)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild( BlockJUnit4ClassRunner.java:46)
    at org.junit.runners.ParentRunner.runChildren(ParentR unner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRu nner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRu nner.java:173)
    at org.junit.internal.runners.statements.RunBefores.e valuate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.ev aluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.ja va:220)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestR eference.run(JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.junit.runner.TestExecutio n.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:197)
    Caused by: java.net.SocketException: Unexpected end of file from server
    at sun.net.http://www.http.HttpClient.parseHTTP...ient.java:774)
    at sun.net.http://www.http.HttpClient.parseHTTP...ient.java:633)
    at sun.net.http://www.http.HttpClient.parseHTTP...ient.java:771)
    at sun.net.http://www.http.HttpClient.parseHTTP...ient.java:633)
    at sun.net.http://www.protocol.http.HttpURLConn...ion.java:1195)
    at java.net.HttpURLConnection.getResponseCode(HttpURL Connection.java:379)
    at sun.net.http://www.protocol.https.HttpsURLCo...Impl.java:318)
    at org.springframework.ws.transport.http.HttpUrlConne ction.getResponseCode(HttpUrlConnection.java:131)
    at org.springframework.ws.transport.http.AbstractHttp SenderConnection.hasResponse(AbstractHttpSenderCon nection.java:64)
    at org.springframework.ws.transport.AbstractSenderCon nection.createTransportInputStream(AbstractSenderC onnection.java:46)
    at org.springframework.ws.transport.AbstractWebServic eConnection.receive(AbstractWebServiceConnection.j ava:86)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:589)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:537)
    ... 30 more
Working...
X