• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Please identify error

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Can anyone suggest when the following errors comes.
--------------------------------------------------------
1)
javax.naming.NamingException: Lookup error: java.net.SocketException:
Connection reset; nested exception is:
java.net.SocketException: Connection reset [Root exception is
java.net.SocketException: Connection reset]
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)

2)java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)

-------------------------------------------------------------------
Thanks and Regards
Nilesh Sah
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A socket connection requires cooperation on both ends. You get that exception when you try to read or write to a socket and the other end has closed the socket. Your code should provide for recovering from this condition.
Bill
 
Nilesh Sah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi William,
First of all thanks for your reply.Could you explain me more elaborately so that I could work on it.

Thanks again
Nilesh Sah
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Could you explain me more elaborately so that I could work on it


Without seeing your code, I can only generalize. The architecture of your program can NOT depend on the socket connection staying open forever. You must provide for graceful recovery when you get a SocketException. You must also provide for graceful exiting if attempts to reconnect fail repeatedly.

Bill
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic