• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Reg: java.net.SocketException....

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everybody,
Can anybody tell me why exactly the following happens:
java.net.SocketException: Connection reset by peer: socket closed
I really appreciate your help.
Thanks 'n' cheers
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Prash,
Well there are lots of reasons that can happen. What exactly are you trying to do? Post some code (be sure to use the CODE button) and let us try to figure out what the exact problem is.
Michael Morris
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Prashanth,
This is usually the problem - The Java code which is throwing this exception has previously connected (or, is in the process of getting connected) to an other socket. This other socket could be a server, or a client. (This is the other end, or the peer.)
This exception means that the peer has closed the connection. It may be due to many reasons, most of which are related to TCP/IP, more than to Java.
As pointed out by M., posting of relevant code may help in isolating the cause of the exception.
-GB.
[ February 05, 2003: Message edited by: Gopi Balaji ]
 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much for your replies :-)
Well, till recently I used to work on j2ee.. that was great fun, because I do all the coding..
but since our back-end is AS/400,.. i was told to do some work using IBM Web-Facing tool, which does the conversion of cobol/RPG code to servlets/jsp/java-bean; and unfortunately I can only see the compiled .class files of the Servlets...
So i dunno what exactly is happening.. This tool is basically for people who worked on AS/400 using cobol.. ( i dunno about AS/400, cobol hehe )
In my application, when I post a request, it actually calls the web-facing server, which calls the cobol code... and all...
but I get this error:
While doing a version handshake with the WebFacing Server the following exception was thrown:
java.net.SocketException: Connection reset by peer: socket closed
It was then I thought i'll do some research on this...
I dunno what to do, how to solve my problem..
thanks anyway, i appreciate...
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic