HomeSpawnPlus

HomeSpawnPlus

342k Downloads

Error when using latest jenkins build

Karmaflute opened this issue ยท 2 comments

commented

Error when using build #33 with Bukkit 1.6.2:

2013-07-18 21:16:44 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
2013-07-18 21:16:44 [SEVERE] Error creating subclass for [org.morganm.homespawnplus.entity.PlayerLastLocation]
java.io.IOException: Class not found
        at com.avaje.ebean.enhance.asm.ClassReader.readClass(ClassReader.java:382)
        at com.avaje.ebean.enhance.asm.ClassReader.<init>(ClassReader.java:359)
        at com.avaje.ebeaninternal.server.subclass.SubClassFactory.subclassBytes(SubClassFactory.java:115)
        at com.avaje.ebeaninternal.server.subclass.SubClassFactory.create(SubClassFactory.java:83)
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.createClass(SubClassManager.java:113)
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.resolve(SubClassManager.java:100)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.checkSubclass(BeanDescriptorManager.java:1571)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1518)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.createByteCode(BeanDescriptorManager.java:1204)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readDeployAssociations(BeanDescriptorManager.java:1124)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readEntityDeploymentAssociations(BeanDescriptorManager.java:630)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.deploy(BeanDescriptorManager.java:277)
        at com.avaje.ebeaninternal.server.core.InternalConfiguration.<init>(InternalConfiguration.java:150)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:209)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:64)
        at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:78)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:265)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:180)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at com.ryanclancy000.plugman.utilities.Utilities.loadPlugin(Utilities.java:291)
        at com.ryanclancy000.plugman.utilities.Utilities.loadCommand(Utilities.java:258)
        at com.ryanclancy000.plugman.PlugManCommands.onCommand(PlugManCommands.java:64)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523)
        at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:964)
        at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:882)
        at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:839)
        at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49)
        at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
        at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118)
        at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
        at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
        at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
        at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
2013-07-18 21:16:44 [SEVERE] Error in deployment
javax.persistence.PersistenceException: Error creating subclass for [org.morganm.homespawnplus.entity.PlayerLastLocation]
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.createClass(SubClassManager.java:117)
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.resolve(SubClassManager.java:100)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.checkSubclass(BeanDescriptorManager.java:1571)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1518)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.createByteCode(BeanDescriptorManager.java:1204)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readDeployAssociations(BeanDescriptorManager.java:1124)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readEntityDeploymentAssociations(BeanDescriptorManager.java:630)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.deploy(BeanDescriptorManager.java:277)
        at com.avaje.ebeaninternal.server.core.InternalConfiguration.<init>(InternalConfiguration.java:150)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:209)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:64)
        at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:78)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:265)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:180)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at com.ryanclancy000.plugman.utilities.Utilities.loadPlugin(Utilities.java:291)
        at com.ryanclancy000.plugman.utilities.Utilities.loadCommand(Utilities.java:258)
        at com.ryanclancy000.plugman.PlugManCommands.onCommand(PlugManCommands.java:64)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523)
        at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:964)
        at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:882)
        at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:839)
        at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49)
        at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
        at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118)
        at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
        at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
        at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
        at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.io.IOException: Class not found
        at com.avaje.ebean.enhance.asm.ClassReader.readClass(ClassReader.java:382)
        at com.avaje.ebean.enhance.asm.ClassReader.<init>(ClassReader.java:359)
        at com.avaje.ebeaninternal.server.subclass.SubClassFactory.subclassBytes(SubClassFactory.java:115)
        at com.avaje.ebeaninternal.server.subclass.SubClassFactory.create(SubClassFactory.java:83)
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.createClass(SubClassManager.java:113)
        ... 33 more
2013-07-18 21:16:44 [SEVERE] [PlugMan] Tried to load invalid Plugin.

org.bukkit.plugin.InvalidPluginException: javax.persistence.PersistenceException: Error creating subclass for [org.morganm.homespawnplus.entity.PlayerLastLocation]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at com.ryanclancy000.plugman.utilities.Utilities.loadPlugin(Utilities.java:291)
        at com.ryanclancy000.plugman.utilities.Utilities.loadCommand(Utilities.java:258)
        at com.ryanclancy000.plugman.PlugManCommands.onCommand(PlugManCommands.java:64)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523)
        at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:964)
        at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:882)
        at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:839)
        at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49)
        at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
        at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118)
        at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
        at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
        at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
        at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: javax.persistence.PersistenceException: Error creating subclass for [org.morganm.homespawnplus.entity.PlayerLastLocation]
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.createClass(SubClassManager.java:117)
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.resolve(SubClassManager.java:100)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.checkSubclass(BeanDescriptorManager.java:1571)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1518)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.createByteCode(BeanDescriptorManager.java:1204)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readDeployAssociations(BeanDescriptorManager.java:1124)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readEntityDeploymentAssociations(BeanDescriptorManager.java:630)
        at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.deploy(BeanDescriptorManager.java:277)
        at com.avaje.ebeaninternal.server.core.InternalConfiguration.<init>(InternalConfiguration.java:150)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:209)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:64)
        at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:78)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:265)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:180)
        ... 20 more
Caused by: java.io.IOException: Class not found
        at com.avaje.ebean.enhance.asm.ClassReader.readClass(ClassReader.java:382)
        at com.avaje.ebean.enhance.asm.ClassReader.<init>(ClassReader.java:359)
        at com.avaje.ebeaninternal.server.subclass.SubClassFactory.subclassBytes(SubClassFactory.java:115)
        at com.avaje.ebeaninternal.server.subclass.SubClassFactory.create(SubClassFactory.java:83)
        at com.avaje.ebeaninternal.server.subclass.SubClassManager.createClass(SubClassManager.java:113)
        ... 33 more
commented

2013-07-18 21:16:44 [SEVERE] [PlugMan] Tried to load invalid Plugin.

Don't reload it / load it manually.

commented

It does appear that the error is from reloading and this has long been a known issue with the Bukkit ebeans server, it is NOT reload friendly.

HSP has an alternate wrapper for ebeans that is more reload friendly that you can use. You can set your core.storage parameter to be "PERSISTANCE_REIMPLEMENTED_EBEANS". I actually had this as the default for a few versions about a year back, but some people complained about slower startup times (about ~0.5 sec), which is true because it's basically loading it's own copy of ebeans instead of using the one already running inside of Bukkit.

Disclaimer: I haven't tested the PERSISTANCE_REIMPLEMENTED_EBEANS storage mode in a while, but live reloading is exactly why I built it in the first place and it probably still works fine. So give it a try and feel free to report any issues. Do note the config.yml comment that says you have to edit the .JAR plugin.yml and set 'database: false' as well. Sadly Bukkit has no dynamic way to do this and the pull request I opened to allow it got closed as 'will not pull'.