zD12 / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

Uncaught SocketException on bot cosure #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  start bot
2.  connect to server
2.  terminate bot via ctrl^c or .shutdown(true)
3.  observe output (and occasionally kill -9 jre)

What is the expected output? What do you see instead?
No output expected.  Actual output:

^C1362099749762 >>>QUIT :
1362099749764 ### Your implementation of PircBotX is faulty and you have
1362099749765 ### allowed an uncaught Exception or Error to propagate in your
1362099749765 ### code. It may be possible for PircBotX to continue operating
1362099749766 ### normally. Here is the stack trace that was produced: -
1362099749766 ### 
1362099749766 ### java.net.SocketException: Socket closed
1362099749767 ###       at java.net.SocketInputStream.socketRead0(Native Method)
1362099749767 ###       at 
java.net.SocketInputStream.read(SocketInputStream.java:150)
1362099749768 ###       at 
java.net.SocketInputStream.read(SocketInputStream.java:121)
1362099749768 ###       at 
sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
1362099749768 ###       at 
sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
1362099749769 ###       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
1362099749769 ###       at 
java.io.InputStreamReader.read(InputStreamReader.java:184)
1362099749770 ###       at java.io.BufferedReader.fill(BufferedReader.java:154)
1362099749770 ###       at 
java.io.BufferedReader.readLine(BufferedReader.java:317)
1362099749770 ###       at 
java.io.BufferedReader.readLine(BufferedReader.java:382)
1362099749771 ###       at org.pircbotx.InputThread.run(InputThread.java:83)

What version of the product are you using? On what operating system?

pircbotx-1.8.jar, Amazon AWS Ubuntu image

Please provide any additional information below.

Similar to Issue 85

Original issue reported on code.google.com by deib...@box.com on 1 Mar 2013 at 1:15

GoogleCodeExporter commented 9 years ago
"closure"

Original comment by deib...@box.com on 1 Mar 2013 at 1:15

GoogleCodeExporter commented 9 years ago
Can you try the latest snapshot and see if you still get Exceptions? There have 
been some improvements in the shutdown code added that should fix your problem

https://code.google.com/p/pircbotx/wiki/DevVersion

Original comment by Lord.Qua...@gmail.com on 1 Mar 2013 at 9:25

GoogleCodeExporter commented 9 years ago
That appears to have cleared it up!

Original comment by deib...@box.com on 14 Mar 2013 at 5:54

GoogleCodeExporter commented 9 years ago

Original comment by Lord.Qua...@gmail.com on 15 Mar 2013 at 1:38