• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 35
Hibernate jQuery Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
He baked a muffin that stole my car! And this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic