MonsterIRC

MonsterIRC

24.4k Downloads

Errors when trying to chat

Opened this issue ยท 3 comments

commented

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)

commented

Hm, strange, can you come on irc? irc.esper.net #monsterirc

commented

I have been busy, sorry for the delay. I went on IRC but you were on gone so I must miss you. I think that was a problem with both Spout and JSONAPI which seems fixed now in their newer dev bulids. However, I still get errors when I try to chat but it doesn't kick me now. \

I am attempting to use Towny with TownyChat. I have bPermissions, and I have Vault.

All I get now is this:

2012-02-25 08:42:44 [SEVERE] [MonsterIRC - Critical error detected!]
2012-02-25 08:42:44 [SEVERE] java.lang.NullPointerException
2012-02-25 08:42:44 [SEVERE]    at de.bananaco.bpermissions.api.ApiLayer.getValue(ApiLayer.java:66)
2012-02-25 08:42:44 [SEVERE]    at net.milkbowl.vault.chat.plugins.Chat_bPermissions2.getPlayerPrefix(Chat_bPermissions2.java:83)
2012-02-25 08:42:44 [SEVERE]    at org.monstercraft.irc.plugin.util.StringUtils.getPrefix(StringUtils.java:19)
2012-02-25 08:42:44 [SEVERE]    at org.monstercraft.irc.plugin.managers.listeners.MonsterIRCListener.handleMessage(MonsterIRCListener.java:154)
2012-02-25 08:42:44 [SEVERE]    at org.monstercraft.irc.plugin.managers.listeners.MonsterIRCListener.onPlayerChat(MonsterIRCListener.java:77)
2012-02-25 08:42:44 [SEVERE]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-02-25 08:42:44 [SEVERE]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-02-25 08:42:44 [SEVERE]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-02-25 08:42:44 [SEVERE]    at java.lang.reflect.Method.invoke(Method.java:601)
2012-02-25 08:42:44 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
2012-02-25 08:42:44 [SEVERE]    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
2012-02-25 08:42:44 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:749)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
2012-02-25 08:42:44 [SEVERE]    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:176)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
2012-02-25 08:42:44 [SEVERE]    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:561)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
2012-02-25 08:42:44 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
2012-02-25 08:42:44 [INFO] [g] [Admin] Leader ryvix: test
2012-02-25 08:43:02 [SEVERE] [MonsterIRC - Critical error detected!]
2012-02-25 08:43:02 [SEVERE] java.lang.NullPointerException
2012-02-25 08:43:02 [SEVERE]    at org.monstercraft.irc.plugin.managers.handlers.IRCHandler.handleMessage(IRCHandler.java:839)
2012-02-25 08:43:02 [SEVERE]    at org.monstercraft.irc.plugin.managers.handlers.IRCHandler.access$400(IRCHandler.java:59)
2012-02-25 08:43:02 [SEVERE]    at org.monstercraft.irc.plugin.managers.handlers.IRCHandler$1.run(IRCHandler.java:506)
2012-02-25 08:43:02 [SEVERE]    at java.lang.Thread.run(Thread.java:722)
2012-02-25 08:43:10 [SEVERE] [MonsterIRC - Critical error detected!]
2012-02-25 08:43:10 [SEVERE] java.lang.NullPointerException
2012-02-25 08:43:10 [SEVERE]    at de.bananaco.bpermissions.api.ApiLayer.getValue(ApiLayer.java:66)
2012-02-25 08:43:10 [SEVERE]    at net.milkbowl.vault.chat.plugins.Chat_bPermissions2.getPlayerPrefix(Chat_bPermissions2.java:83)
2012-02-25 08:43:10 [SEVERE]    at org.monstercraft.irc.plugin.util.StringUtils.getPrefix(StringUtils.java:19)
2012-02-25 08:43:10 [SEVERE]    at org.monstercraft.irc.plugin.managers.listeners.MonsterIRCListener.handleMessage(MonsterIRCListener.java:154)
2012-02-25 08:43:10 [SEVERE]    at org.monstercraft.irc.plugin.managers.listeners.MonsterIRCListener.onPlayerChat(MonsterIRCListener.java:77)
2012-02-25 08:43:10 [SEVERE]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-02-25 08:43:10 [SEVERE]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-02-25 08:43:10 [SEVERE]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-02-25 08:43:10 [SEVERE]    at java.lang.reflect.Method.invoke(Method.java:601)
2012-02-25 08:43:10 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
2012-02-25 08:43:10 [SEVERE]    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
2012-02-25 08:43:10 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:749)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
2012-02-25 08:43:10 [SEVERE]    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:176)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
2012-02-25 08:43:10 [SEVERE]    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:561)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
2012-02-25 08:43:10 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

Thank you for checking it out =)

commented

Yay! I think they are fixing it. It was an issue with bPermissions by the sounds of it. MilkBowl/Vault#112

Thank you =)