Author Topic: Error Loading Bots: Java.lang.nullPointerException  (Read 3140 times)

0 Members and 1 Guest are viewing this topic.

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Error Loading Bots: Java.lang.nullPointerException
« on: July 07, 2008, 12:36:41 am »
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!

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: Error Loading Bots: Java.lang.nullPointerException
« Reply #1 on: July 07, 2008, 11:37:24 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!

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Error Loading Bots: Java.lang.nullPointerException
« Reply #2 on: July 07, 2008, 12:03:36 pm »
I'm new to java and I don't know how!
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!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Error Loading Bots: Java.lang.nullPointerException
« Reply #3 on: July 07, 2008, 12:24:16 pm »
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.

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Error Loading Bots: Java.lang.nullPointerException
« Reply #4 on: July 07, 2008, 02:10:45 pm »
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!