News:

Pretty crazy that we're closer to 2030, than we are 2005. Where did the time go!

Main Menu

Error Loading Bots: Java.lang.nullPointerException

Started by Lance, July 07, 2008, 12:36:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lance

How can I find the line in the plugin that is causing this? Thanks.
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Camel

Quote from: SarCaSTiC on July 07, 2008, 12:36:41 AM
How can I find the line in the plugin that is causing this?

Look at the stack trace.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Lance

Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

iago

Run the bot from the commandline (or shell):

java -jar /path/to/javaop2.jar

(where you replace /path/to with the actual path)

When it dies, it'll show you a lot of garbage. Copy/paste it here.

Lance

Found the error! I followed your instructions and the error was on line 124 (command register loop [my commands are loaded from a mysql db]). I had incorrect table names and once I fixed them it worked like a charm. Thanks  :)
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!