Clan x86

Technical (Development, Security, etc.) => JavaOp Board => Topic started by: ilaggoodly on May 13, 2010, 12:10:10 pm

Title: Updating a plugin to javaop 2.1.3 lost in forest
Post by: ilaggoodly on May 13, 2010, 12:10:10 pm
Right, so I'm trying to update my old plugin VIPWatch to javaop 2.1.3 (you can find it in the archive) and I must say getting the whole thing imported correctly in eclipse was quite the trip, but eventually I got it working to the point where there are no warnings in eclipse... however it won't get noticed by Javaop at all

Code: [Select]
Loading plugin: com.javaop.UserManagement.PluginMain
Loading plugin: null
Unable to load plugin file: jar:file:///T:\tmp\JavaOp_2.1.3_RC1\Plugins\VIPWatch.jar!/
java.lang.NullPointerException
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.javaop.pluginmanagers.PluginManager.loadFile(Unknown Source)
        at com.javaop.pluginmanagers.PluginManager.loadFile(Unknown Source)
        at com.javaop.pluginmanagers.PluginManager.initialize(Unknown Source)
        at com.javaop._main.BotStart.main(Unknown Source)
Loading plugin: com.javaop.Version.PluginMain

Sort of a cryptic error message to me, what could be causing this? Were there some changes that might have subtly broke the code inside my plugin or is it more likely that its my fault?


EDIT: I was going to post the code... but can't attach and my webserver is bitching :(
Title: Re: Updating a plugin to javaop 2.1.3 lost in forest
Post by: Joe on May 13, 2010, 04:58:02 pm
Yeah, there was a major change to how plugins are loaded. I thought I maintained backwards compatibility, but obviously not.

I would check out the SVN repository, add your plugin source code there, and modify the build.xml (http://code.google.com/p/javaop/source/browse/trunk/javaop2/build.xml) to build it along with the rest of the code.
Title: Re: Updating a plugin to javaop 2.1.3 lost in forest
Post by: Lance on May 13, 2010, 10:07:10 pm
http://code.google.com/p/javaop/wiki/Eclipse
Title: Re: Updating a plugin to javaop 2.1.3 lost in forest
Post by: Lance on May 17, 2010, 09:29:11 pm
If the above does not resolve your issue, make sure you have no uppercase letters in your package names. It sounds strange, I know... But, yesterday when I was creating a plugin, I ran into the same problem. Lowercased package names and the error is gone ;)
Title: Re: Updating a plugin to javaop 2.1.3 lost in forest
Post by: ilaggoodly on May 22, 2010, 07:15:11 pm
Ah, well i think it might have been me just missing the mysql connector, anyway after adding to source & build.xml, it worked. Thanks! The new version of the bot seems to be a lot more stable than the last, I had given up on the project because it was losing connection to battlenet once every 2 days or so!

Return of VIPWATCH!

http://rylai.de/vip/nsg/
Title: Re: Updating a plugin to javaop 2.1.3 lost in forest
Post by: Joe on May 23, 2010, 06:59:33 pm
Is it still losing connection, but reconnecting? Or just not losing connection? If it's the second one then I think it's something on your end.. I don't think I fixed anything connection wise, except fixing stayconnected.. if I even did that. :P
Title: Re: Updating a plugin to javaop 2.1.3 lost in forest
Post by: ilaggoodly on May 27, 2010, 01:36:43 am
I think its not disconnecting at all anymore... but its sort of hard to tell because of the massive text my plugin generates in the logs/cmdline ^^
Title: Re: Updating a plugin to javaop 2.1.3 lost in forest
Post by: Lance on June 24, 2010, 01:52:51 pm
I found the problem... The manifest needs an empty line at the end. Yay for uppercase package names :D