zD12 / pircbotx

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

Disconnect Input Parser #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Put bot on network. 
2.Have it Killed? or Disconnected?
3.

What is the expected output? What do you see instead?
I expect for it to reconnect as I have setAutoReconnect(true) - 
instead I have: 
[2014/07/20 09:21:22] [botPool0-bot0] [INFO] org.pircbotx.InputParser - ERROR 
:Closing Link: WaveTactDev[IP] JZTech102 ([squirrel.electrocode.net] Local kill 
by JZTech102 (test))
[2014/07/20 09:21:22] [botPool0-bot0] [ERROR] org.pircbotx.PircBotX - Exception 
encountered when parsing line
java.lang.NullPointerException: null key in entry: 
null=Channel(name=#techcavern, channelId=96c3ac35-a6e0-4c26-af83-a7a9c3659051, 
dao=null, bot=Version{PircBotX 2.1-SNAPSHOT, a fork of PircBot, the Java IRC 
bot - pircbotx.googlecode.com} Connected{false} Server{irc.electrocode.net} 
Port{6667} Password{null}, output=org.pircbotx.Channel$1@e90e778, mode=, 
topic=General Technology Chat || Website http://bit.ly/18XvfDD || Public Modded 
MC server @ #ElectroMC || Have Fun!, topicTimestamp=1397993699000, 
createTimestamp=1378674283, topicSetter=WaveCup, 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.InputParser.handleLine(InputParser.java:302)
    at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:283)
    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/07/20 09:21:22] [botPool0-bot0] [INFO] org.pircbotx.PircBotX - Shutdown 
has been called, closing InputParser

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

Please provide any additional information below.

Original issue reported on code.google.com by jzhou2...@gmail.com on 20 Jul 2014 at 1:24

GoogleCodeExporter commented 9 years ago
I see a direct correlation to this -> 
https://code.google.com/p/pircbotx/issues/detail?id=186&colspec=ID%20Type%20Stat
us%20Priority%20Reporter%20Owner%20Target%20Summary

Seems PircBotX has trouble parsing QUIT messages

Original comment by jzhou2...@gmail.com on 20 Jul 2014 at 1:49

GoogleCodeExporter commented 9 years ago
This should be fixed in the latest snapshot

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