zD12 / pircbotx

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

Bot not Reconnecting #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. setAutoReconnect(true);
2.
3.

What is the expected output? What do you see instead?
I expect it to reconnect when it gets netsplit, etc. Instead it just stays 
unconnected as far as I can tell. (I'm oper and attempted /kill. Didn't 
reconnect)

And I have had instances of the bot dissappearing on freenode for me because of 
its frequent netsplits

What version of the product are you using? On what operating system?
PircBotX-2.1-SNAPShot

Please provide any additional information below.

Original issue reported on code.google.com by jzhou2...@gmail.com on 29 Jul 2014 at 12:54

GoogleCodeExporter commented 9 years ago
[2014/08/01 12:05:41] [botPool0-bot0] [ERROR] org.pircbotx.PircBotX - Exception 
encountered when reading next line from server
java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:189)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
    at java.io.InputStreamReader.read(InputStreamReader.java:184)
    at java.io.BufferedReader.fill(BufferedReader.java:161)
    at java.io.BufferedReader.readLine(BufferedReader.java:324)
    at java.io.BufferedReader.readLine(BufferedReader.java:389)
    at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:258)
    at org.pircbotx.PircBotX.connect(PircBotX.java:244)
    at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:219)
    at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:212)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
[2014/08/01 12:05:41] [botPool0-bot0] [ERROR] 
org.pircbotx.MultiBotManager$BotFutureCallback - Bot exited with Exception
java.lang.NullPointerException: null key in entry: null=Channel(name=#batbot, 
channelId=5f43214e-d4e3-4c89-a442-b16902661078, dao=null, bot=Version{PircBotX 
2.1-SNAPSHOT, a fork of PircBot, the Java IRC bot - pircbotx.googlecode.com} 
Connected{false} Server{irc.esper.net} Port{6667} Password{null}, 
output=org.pircbotx.Channel$1@6e9ccb4c, mode=, topic=hur har hur har hur har 
hur har http://is.gd/vMKn6I  |  The test room for (mostly unsuccessful)build of 
Alfred  |  https://www.youtube.com/watch?v=qOaqiCBum2w  |  
http://i.imgur.com/qJDPqHI.gif  |  https://www.destroyallsoftware.com/talks/wat 
 |  http://puu.sh/7G2Qi.JPG  |  http://i.imgur.com/nSRheTT.gif, 
topicTimestamp=1400745854000, createTimestamp=1387234786, 
topicSetter=batman|batcave!~batman@173-13-183-22-sfba.hfc.comcastbusiness.net, 
moderated=false, noExternalMessages=true, inviteOnly=false, secret=false, 
channelPrivate=false, topicProtection=true, channelLimit=-1, channelKey=null, 
modeStale=false, modeLatch=null)
    at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:31)
    at com.google.common.collect.ImmutableMultimap$Builder.put(ImmutableMultimap.java:169)
    at org.pircbotx.UserChannelMap.createSnapshot(UserChannelMap.java:106)
    at org.pircbotx.UserChannelDao.createSnapshot(UserChannelDao.java:295)
    at org.pircbotx.PircBotX.shutdown(PircBotX.java:476)
    at org.pircbotx.PircBotX.shutdown(PircBotX.java:431)
    at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:295)
    at org.pircbotx.PircBotX.connect(PircBotX.java:244)
    at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:219)
    at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:212)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Error Report

Original comment by jzhou2...@gmail.com on 1 Aug 2014 at 4:07

GoogleCodeExporter commented 9 years ago
I was able to successfully quit and rejoin the server using 
setAutoReconnect(true) with no exceptions on the latest snapshot

Original comment by Lord.Qua...@gmail.com on 31 Oct 2014 at 2:44