Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

java.net.SocketException: Connection reset

Thread view: 
JPractitioner - 17 Jan 2006 11:27 GMT
Hi guys I am trying to do a multiclient server using Socket and
ServerSocket, the funny thing is, when i try to send a lot of data
(infinite loop) in the connection, the exception is not being thrown,
but this only happens when i try to send data singularly (not in loop).
After the exception is being thrown, i can still use the connection,
but only to find the same scenario. any idea how to resolve this
particular problem? Thanks in advance.

exception stacktrace
===============
java.net.SocketException: Connection reset
       at java.net.SocketInputStream.read(SocketInputStream.java:168)
       at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
       at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
       at java.io.InputStreamReader.read(InputStreamReader.java:167)
       at java.io.BufferedReader.fill(BufferedReader.java:136)
       at java.io.BufferedReader.readLine(BufferedReader.java:299)
       at java.io.BufferedReader.readLine(BufferedReader.java:362)
       at ISO8583SocketThread.run(ISO8583SocketThread.java:45)
JPractitioner - 18 Jan 2006 09:03 GMT
Guys, i have viewed the previous posts and none that I can use for this
matter.
C'mon guys, I know u can give me at least something.
Thanks.
Gordon Beaton - 18 Jan 2006 09:40 GMT
> Guys, i have viewed the previous posts and none that I can use for
> this matter. C'mon guys, I know u can give me at least something.

You first. Post your *code*, not a vague description of it. Post a
short, complete example that exhibits the problem.

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.