Monstercraft/MonsterIRC — Issue #84: Errors when trying to chat
Author: ty2u
Created: 2012-02-20 23:24:12+00:00
State: open

This is a really nice plugin. Thank you!

I tested out the latest one and everything looked like it was working great. It started fine, connected fine, logged into IRC ok and then when I tried to chat in-game it said I got kicked in IRC and I got this:

2012-02-20 18:17:01 [SEVERE] [IRC - Critical error detected!]
2012-02-20 18:17:01 [SEVERE] java.lang.NullPointerException
2012-02-20 18:17:01 [SEVERE] Could not pass event org.bukkit.event.player.PlayerChatEvent to MonsterIRC
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:749)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:176)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:552)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
... 13 more
Caused by: java.lang.NullPointerException
at com.alecgorge.minecraft.jsonapi.adminium.PushNotificationDaemon$ConsoleHandler.publish(PushNotificationDaemon.java:128)
at java.util.logging.Logger.log(Logger.java:522)
at java.util.logging.Logger.doLog(Logger.java:543)
at java.util.logging.Logger.logp(Logger.java:659)
at org.bukkit.craftbukkit.LoggerOutputStream.flush(LoggerOutputStream.java:27)
at java.io.PrintStream.write(PrintStream.java:482)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185)
at java.io.PrintStream.write(PrintStream.java:527)
at java.io.PrintStream.print(PrintStream.java:669)
at java.io.PrintStream.println(PrintStream.java:823)
at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:747)
at java.lang.Throwable.printStackTrace(Throwable.java:654)
at java.lang.Throwable.printStackTrace(Throwable.java:642)
at java.lang.Throwable.printStackTrace(Throwable.java:633)
at org.monstercraft.irc.ircplugin.util.Methods.debug(Methods.java:81)
at org.monstercraft.irc.plugin.managers.listeners.JavaPluginListener.onPlayerChat(JavaPluginListener.java:75)
... 18 more
2012-02-20 18:17:01 [WARNING] Failed to handle packet: java.lang.NullPointerException
java.lang.NullPointerException
at com.alecgorge.minecraft.jsonapi.adminium.PushNotificationDaemon$ConsoleHandler.publish(PushNotificationDaemon.java:128)
at java.util.logging.Logger.log(Logger.java:522)
at java.util.logging.Logger.doLog(Logger.java:543)
at java.util.logging.Logger.log(Logger.java:632)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:480)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:749)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:176)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:552)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

Next when I go back in and chat from IRC it says the client exited and all I get in the log is:

2012-02-20 18:21:25 [SEVERE] [IRC - Critical error detected!]
2012-02-20 18:21:25 [SEVERE] java.lang.NullPointerException
2012-02-20 18:21:25 [SEVERE] [IRC - Critical error detected!]
2012-02-20 18:21:25 [SEVERE] java.lang.NullPointerException

Maybe I am just using a newer version of bukkit than I should be or mabye its conflicting with other plugins. Maybe it has something to do with Spout or JSONAPI?

This server is running CraftBukkit version git-Bukkit-1.1-R4-2-g6076dfe-b1940jnks (MC: 1.1) (Implementing API version 1.1-R5-SNAPSHOT)