Error, I am stumped.

Discussion in 'Plugin Development' started by Lamp, Jan 20, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Lamp

    Hey guys, I've been working on a python plugin for bukkit; And i have one problem.

    I use this to launch my craftbukkit server
    Code:
    java -Xms250m -Xmx1024m -cp mysql-connector-java-bin.jar;jython.jar -jar craftbukkit-0.0.1-SNAPSHOT.jar
    The plugin is correctly written, and I believe i've included the external library correctly.

    But i receive this error

    Code:
    an 20, 2011 2:03:39 PM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\pyplugin.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:83)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:43)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoClassDefFoundError: org/python/core/PyException
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:77)
            ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.python.core.PyException
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 11 more
    
    I've tried and tried for a solution, anybody have any ideas? :S
     
  2. the server is stuck at loading the plugins?
    do you have any plugins activ on that server?

    [doing now the error is there :D]

    overread the python plugin <_< 8pm here and up since 7am :p
     
  3. Offline

    Lamp

    No, that is the only plugin; and seeing it stops @ that plugin. It's the error.

    I know what is wrong with it. The Jython library isn't included. I just can't think of any other way to include the library, as this way doesn't seem to work.
     
  4. java -Xms250m -Xmx1024m -cp ./mysql-connector-java-bin.jar;./jython.jar -jar craftbukkit-0.0.1-SNAPSHOT.jar
    isnt cp for classpath? so ./ would be the current dir?

    not sure if that mad any diffrence just asking out of interesst :p
     
  5. Offline

    Lamp

    My server needs to be able to run on both linux / windows so it's better to leave it how it is, but i believe that works for windows.
     
  6. Offline

    Fifteen

    You may have an invaild plugin.yml, may I see it?
     
  7. Offline

    Afforess

    Don't put anything other than plugins in the plugin folder, keep pyplugin.jar out of the plugin folder if it is not a plugin.
     
  8. Offline

    Lamp

    It is a plugin. The jython lib is not in the plugin folder.

    Code:
    name: PyPlugin
    main: ws.triii.pyplugin.ScriptManager
    version: 0.5
     
  9. Offline

    Afforess

    Then Fifteen is correct, your Plugin.yml is either missing or corrupt.
     
  10. Offline

    Lamp

    Take a look @ my above post, I believe it's right :S
     
  11. Offline

    Afforess

    Look at what it's caused by:
    Caused by: java.lang.NoClassDefFoundError: org/python/core/PyException

    That's likely a big clue where you went wrong.
     
  12. Offline

    Lamp

    You'd think, but i included the library that is contained in. :S
     
Thread Status:
Not open for further replies.

Share This Page