fullwall / Citizens

An NPC plugin for bukkit.
Other
35 stars 7 forks source link

Could not initialize class com.citizens.CreatureTask #130

Closed dzhus closed 13 years ago

dzhus commented 13 years ago

I get this error upon starting 0e2e7fb63b7147322e8c8bf3bfb34a8ab3934a15 (in addition to that reported by me in #128):

02:33:54 [SEVERE] Could not pass event ENTITY_DAMAGE to Citizens
java.lang.NoClassDefFoundError: Could not initialize class com.citizens.CreatureTask
        at com.citizens.listeners.EntityListen.onEntityDamage(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.EntityLiving.R(EntityLiving.java:122)
        at net.minecraft.server.Entity.m_(Entity.java:195)
        at net.minecraft.server.EntityLiving.m_(EntityLiving.java:217)
        at net.minecraft.server.EntityMonster.m_(EntityMonster.java:30)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
        at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
        at net.minecraft.server.World.cleanUp(World.java:1104)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

Seems like this pops once every tick as set by server scheduler in Citizens.java.

I did git bisection and it says that « afd8afca90c19a4272bf0788b50224ba531f8dae is the first bad commit».

aPunch commented 13 years ago

This is fixed in a later commit

dzhus commented 13 years ago

What was the issue? Still present with build-284.

aPunch commented 13 years ago

remove all single quotes from your configuration files

dzhus commented 13 years ago

Without a single ' in npc-profiles.yml, citizens.yml or economy.yml, builds 284, 285 give me this:

21:56:39 [SEVERE] Error occurred while enabling Citizens v1.0.9 (Is it up to date?): null
java.lang.ExceptionInInitializerError
        at com.citizens.Citizens.registerTypes(Citizens.java:270)
        at com.citizens.Citizens.onEnable(Citizens.java:86)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
        at org.bukkit.util.config.ConfigurationNode.recursiveBuilder(ConfigurationNode.java:43)
        at org.bukkit.util.config.ConfigurationNode.getAll(ConfigurationNode.java:28)
        at com.citizens.properties.CachedYAMLHandler.load(CachedYAMLHandler.java:37)
        at com.citizens.properties.CachedYAMLHandler.<init>(CachedYAMLHandler.java:29)
        at com.citizens.properties.PropertyManager.<clinit>(PropertyManager.java:14)
        ... 12 more
aPunch commented 13 years ago

Well, I would wait for an official release. Right now there will be some unsorted bugs.