gdude2002 / Python-Plugin-Loader

Python plugin loader for Bukkit
10 stars 3 forks source link

ClassNotFoundException: org.python.core.PyObject #2

Closed jomo closed 10 years ago

jomo commented 10 years ago

I tried using Build #5 and ran into this error on start.

[00:43:55 INFO]: [PythonLoader] Loading PythonLoader v0.3.4
[00:43:55 ERROR]: org/python/core/PyObject initializing PythonLoader v0.3.4 (Is it up to date?)
java.lang.NoClassDefFoundError: org/python/core/PyObject
        at com.master.bukkit.python.PythonLoader.onLoad(PythonLoader.java:98) ~[?:?]
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:374) [spigot.jar:git-Spigot-1564]
        at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:152) [spigot.jar:git-Spigot-1564]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot.jar:git-Spigot-1564]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1564]
Caused by: java.lang.ClassNotFoundException: org.python.core.PyObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[?:1.7.0_55]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_55]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_55]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_55]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:98) ~[spigot.jar:git-Spigot-1564]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:83) ~[spigot.jar:git-Spigot-1564]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_55]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_55]
        ... 5 more
gdude2002 commented 10 years ago

Odd one, that, seems to be from cleaning up unused imports. I've made a push, would you be so kind as to test the build for me?

jomo commented 10 years ago

It's still happening in Build 12.

gdude2002 commented 10 years ago

This is super-confusing.. Basically what's happening here is the JVM is unable to find the Jython classes, despite them being right there in the Jython jar. I've noticed that simply shoving the contents of the Jython jar into the plugin jar works, so there's something odd going on here.

Any ideas? I'm still looking.

jomo commented 10 years ago

Never used gradle, maybe this helps?

gdude2002 commented 10 years ago

Yeah, I found the FatJar plugin, I'm looking into it but it's taking an awful long time to prepare the files.

On Thu, Jul 24, 2014 at 10:18 PM, jomo notifications@github.com wrote:

Never used gradle, maybe this helps?

— Reply to this email directly or view it on GitHub https://github.com/gdude2002/Python-Plugin-Loader/issues/2#issuecomment-50079719 .

gdude2002 commented 10 years ago

http://bamboo.gserv.me/browse/PLUG-PYPL-13

Let's see how long the build takes :D

gdude2002 commented 10 years ago

Okay, that should work. Please take a look at the latest jar, when it's built, http://bamboo.gserv.me/browse/PLUG-PYPL-16

jomo commented 10 years ago

:beers: