This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TCP timeout with error message(java.net.SocketException: Software caused connection abort:recv fail)

 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My TCP client times out after 9-10 minutes. I have tested this on multiple computers. The server remains up, fine, and running with no other errors. This is the error message displayed on the server cmd line:

This is the error I receive on the client:

What does this mean and how can I fix it?
Thanks,
cc11rocks aka John Price
 
Rupesh Mhatre
Ranch Hand
Posts: 35
Eclipse IDE Hibernate jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
john price wrote:java.lang.StringIndexOutOfBoundsException: String index out of range: 0

In this case you are getting empty String thats why you are getting StringIndexOutOfBoundsException.

In first case just check whether your firewall is blocking the port you are using.
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running the server and the client...Connected to my IP address and have port forwarding set up. Works until 9-10 minutes. Then, sets off error. Just put up a try and catch clause around that line. Get slightly different error:

Thanks,
John Price aka cc11rocks
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had to go into Windows to fix this:
Control Panel > Installed Updated > Turn Windows Features on or Off > (CheckBox) Simple TCPIP services (i.e. echo, daytime etc)
Works like a charm now.
cc11rocks aka John Price
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic