Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

HTTP transport error: java.net.SocketException: Connection reset

Salman5Feb 10 2015 — edited Feb 12 2015

A client application has been built using Jdeveloper 10.1.3.2 and it is running on OC4J server. This application is sending data to external server application. It is working for quite long time without any issue. Lately a connection issue occurred and the following stack trace is generated:

com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.SocketException: Connection reset

  at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:133)

  at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:153)

  at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)

  at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)

  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 $Proxy44.sendRem(Unknown Source)

After goggling I found out a good discussion about the error (sockets - What's causing my java.net.SocketException: Connection reset? - Stack Overflow) .One answer in this previous link says that the issue mostly it from the client side because if it is from the server side the exception will be (SocketException reset by peer).


What I did:

I tried out to increase the socket time out for the OC4J with the help of this form(How to change OC4J HTTP Timeout). What I did is I change the propriety oracle.j2ee.http.socket.timeout to be 5000 instead of 500 (10 times longer)

But the error still there. So, any suggestion to over come this issue?


Note: I able to use telnet command for external server IP and Port and it is working fine.

Comments

Salman5

If this is not the right place to ask (i.e. not the right form) please tell. Thank you

Timo Hahn

If the application has not changed, the server or servers might have changed. You are sending data to a different server which might hav ebeen updated (or a security patch has been installed) which influences the used protocol. As you are using a very old version of JDev and OC4J every change n the operating system can brake something.

The problem is that there aren't  too many people around here using this old software or even know the version.

As you didn't disclose how you send the data it's hard to help or tell if this is the right forum.

Timo

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 12 2015
Added on Feb 10 2015
2 comments
3,027 views