• Register
2 votes
24 views

Problem:

I am able to login through webservices api to particular account on 'Oracle on demand'.
When i tries to call 'accountQueryPage' method of the stub class (Stub class is generated with help Account.wsdl file), 

i got the following exception

java.net.SocketException: Software caused connection abort: recv failed



Can anyone give me some pointers.

6.1k points

1 Answer

1 vote

Answer:

SocketException is a general exception the designates a problem when trying to access or open a Socket.
So as you can imagine, solving that problem has to be done with extra care.
You shall always log the error message that accompanies the exception.
In the previous example we’ve seen the message code>Connection reset.
This happens when on of the participants “violently” closes the connection without using close().
This means that you should check whether one of the participants has terminated unexpectedly.
One slightly bizarre message can be Too many open files, especially when you run on Linux.
This message designates that to many file descriptors are open to the system.
You can avoid that error if you go to /etc/sysctl.conf and raise the number in fs.file-max field.
Additionally, you can try to give more stack memory.

Of course many other messages can be met. For example "Bind error",
where your connection cannot be established because the port cannot be bind to the socket. In that case check if the port is already in use etc.

34.9k points

Related questions

1 vote
2 answers 41 views
41 views
Problem: I am able to login through webservices api to particular account on 'Oracle on demand'. When i tries to call 'accountQueryPage' method of the stub class (Stub class is generated with help Account.wsdl file), i got the following exception java.net.SocketException: Software caused connection abort: recv failed Can anyone give me some pointers.
asked Mar 27 LizzyM 6.1k points
0 votes
1 answer 210 views
210 views
Problem : I am getting bellow error while using Sockets java.net.socketexception: software caused connection abort: socket write error
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 56 views
56 views
Problem : I am struggling to find the solution for the bellow error java net socketexception software caused connection abort recv failed
asked Oct 31, 2019 peterlaw 6.9k points
0 votes
1 answer 27 views
27 views
Problem: I am seeing "{writer,send_failed,{error,closed}}" error on server side and "java.net.SocketException: Connection reset by peer: socket write error" error on java client side intermittently. What could possibly go wrong here? Both server and ... rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:630) at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:621) Please help me.
asked Mar 23 LizzyM 6.1k points
0 votes
1 answer 123 views
123 views
Problem : I am trying to implement an HTTP Server using Sockets but getting bellow error java net socketexception connection reset by peer socket write error
asked Oct 31, 2019 peterlaw 6.9k points