• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic