ShaneMcC/DFBnc — Issue #27: Error on reconnect
Author: greboid
Created: 2012-02-21 13:25:57+00:00
State: open

On reconecting to the server (after noticing it'd disconnected without mentioning) the following error was shown.

java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.dmdirc.parser.common.CallbackObject.call(CallbackObject.java:170)
at com.dmdirc.parser.common.CallbackObject.call(CallbackObject.java:147)
at com.dmdirc.parser.common.CallbackManager$CallbackHandler.invoke(CallbackManager.java:374)
at $Proxy14.onSocketClosed(Unknown Source)
at com.dmdirc.parser.irc.IRCParser.callSocketClosed(IRCParser.java:601)
at com.dmdirc.parser.irc.IRCParser.disconnect(IRCParser.java:1838)
at uk.org.dataforce.dfbnc.servers.irc.IRCConnectionHandler.shutdown(IRCConnectionHandler.java:204)
at uk.org.dataforce.dfbnc.commands.user.ConnectCommand.handle(ConnectCommand.java:65)
at uk.org.dataforce.dfbnc.commands.CommandManager.handle(CommandManager.java:423)
at uk.org.dataforce.dfbnc.sockets.UserSocket.handleBotCommand(UserSocket.java:779)
at uk.org.dataforce.dfbnc.sockets.UserSocket.processAuthenticated(UserSocket.java:731)
at uk.org.dataforce.dfbnc.sockets.UserSocket.processLine(UserSocket.java:569)
at uk.org.dataforce.dfbnc.sockets.SocketWrapper.processSelectionKey(SocketWrapper.java:397)
at uk.org.dataforce.dfbnc.sockets.ConnectedSocket.processSelectionKey(ConnectedSocket.java:176)
at uk.org.dataforce.dfbnc.sockets.SocketSelector.run(SocketSelector.java:143)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
at java.util.HashMap$ValueIterator.next(HashMap.java:822)
at uk.org.dataforce.dfbnc.servers.irc.IRCConnectionHandler.cleanupUser(IRCConnectionHandler.java:1187)
at uk.org.dataforce.dfbnc.Account.handlerDisconnected(Account.java:536)
at uk.org.dataforce.dfbnc.servers.irc.IRCConnectionHandler.onSocketClosed(IRCConnectionHandler.java:918