• Register
2 votes
38 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.

10 7 2
6,060 points

Please log in or register to answer this question.

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.

11 6 4
34,950 points

Related questions

1 vote
2 answers 214 views
214 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, 2020 LizzyM 6.1k points
0 votes
1 answer 464 views
464 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 71 views
71 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
1 vote
1 answer 3 views
3 views
Problem: Please help me. How can I solve it? java.net.socketexception software caused connection abort recv failed
asked Mar 25 MUHAMMAD MUNEEB 82.5k points
0 votes
2 answers 38 views
38 views
Help me by solving this question.
asked Jan 4 TeamScript 13.5k points
0 votes
1 answer 3 views
3 views
Problem: Please kindly tell me the solution of it, java.net.socketexception: broken pipe (write failed)
asked Apr 2 Ifra 24.4k points
0 votes
1 answer 1 view
1 view
Problem: What code is throwing this exception? (JVM?/Tomcat?/My code?) What causes this exception to be thrown? Please answer . i am stuck on it?
asked 4 days ago Sana8989 8.9k points
0 votes
1 answer 13 views
13 views
Problem: software caused connection abort: recv failed
asked Feb 24 Hira 2.2k points
0 votes
1 answer 105 views
105 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, 2020 LizzyM 6.1k points
0 votes
1 answer 279 views
279 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