Forums Register Login

com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code -1: null

+Pie Number of slices to send: Send
Hi guys,
I am writing a Web Service api for OCOD and I face a strange issue when I connect using a sun proxy which gives the following exception


com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code -1: null
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:261)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:210)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:172)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:95)
at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:133)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
at com.sun.xml.ws.client.Stub.process(Stub.java:319)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy37.opportunityQueryPage(Unknown Source)

But I ran the same code in ISI proxy which is not giving any exception?
What could be the possible solution.
TIA

+Pie Number of slices to send: Send
Since -1 is not a legal status code, I suspect that your client never got a real HTTP response but had some other kind of failure.

Bill
+Pie Number of slices to send: Send
But this same code is working fine with other proxies other than sun web server proxy. So dont you think there is some issues with web proxy settings?
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 4940 times.
Similar Threads
The server sent HTTP status code -1
com.sun.xml.ws.client.ClientTransportException JAX-WS
Facing intermittent 501: Not Implemented issues in JAX-WS environment
web service integration using Netbeans IDE
Help on JAX WS
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:02:04.