Clan x86

Technical (Development, Security, etc.) => JavaOp Board => JavaOp Support Archive => Topic started by: Lance on July 07, 2008, 12:36:41 AM

Title: Error Loading Bots: Java.lang.nullPointerException
Post by: Lance on July 07, 2008, 12:36:41 AM
How can I find the line in the plugin that is causing this? Thanks.
Title: Re: Error Loading Bots: Java.lang.nullPointerException
Post by: Camel on July 07, 2008, 11:37:24 AM
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.
Title: Re: Error Loading Bots: Java.lang.nullPointerException
Post by: Lance on July 07, 2008, 12:03:36 PM
I'm new to java and I don't know how!
Title: Re: Error Loading Bots: Java.lang.nullPointerException
Post by: iago 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.
Title: Re: Error Loading Bots: Java.lang.nullPointerException
Post by: Lance 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  :)