Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Could not pass event EntityChangeBlockEvent (Factions recompile needed) #194

Closed
ghost opened this issue Dec 6, 2012 · 13 comments
Closed

Comments

@ghost
Copy link

ghost commented Dec 6, 2012

Not entirely sure if this is real, it could be some other plugins interfering(?) but this is the stacktrace:

03:16:20 [SEVERE] Could not pass event EntityChangeBlockEvent to Factions v1.7.8_beta
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.v1_4_5.event.CraftEventFactory.callEntityChangeBlockEvent(CraftEventFactory.java:468)
at org.bukkit.craftbukkit.v1_4_5.event.CraftEventFactory.callEntityChangeBlockEvent(CraftEventFactory.java:452)
at net.minecraft.server.v1_4_5.PathfinderGoalEatTile.e(PathfinderGoalEatTile.java:67)
at net.minecraft.server.v1_4_5.PathfinderGoalSelector.a(PathfinderGoalSelector.java:104)
at net.minecraft.server.v1_4_5.EntityLiving.bl(EntityLiving.java:1431)
at net.minecraft.server.v1_4_5.EntitySheep.bl(EntitySheep.java:44)
at net.minecraft.server.v1_4_5.EntityLiving.c(EntityLiving.java:1233)
at net.minecraft.server.v1_4_5.EntityAgeable.c(EntityAgeable.java:68)
at net.minecraft.server.v1_4_5.EntityAnimal.c(SourceFile:33)
at net.minecraft.server.v1_4_5.EntitySheep.c(EntitySheep.java:52)
at net.minecraft.server.v1_4_5.EntityLiving.j_(EntityLiving.java:508)
at net.minecraft.server.v1_4_5.World.entityJoinedWorld(World.java:1333)
at net.minecraft.server.v1_4_5.WorldServer.entityJoinedWorld(WorldServer.java:546)
at net.minecraft.server.v1_4_5.World.playerJoinedWorld(World.java:1315)
at net.minecraft.server.v1_4_5.World.tickEntities(World.java:1193)
at net.minecraft.server.v1_4_5.WorldServer.tickEntities(WorldServer.java:444)
at net.minecraft.server.v1_4_5.MinecraftServer.r(MinecraftServer.java:577)
at net.minecraft.server.v1_4_5.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.v1_4_5.MinecraftServer.q(MinecraftServer.java:493)
at net.minecraft.server.v1_4_5.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.v1_4_5.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityChangeBloc
kEvent.getEntity()Lorg/bukkit/entity/LivingEntity;
at com.massivecraft.factions.listeners.FactionsEntityListener.onEntityChangeBlock(FactionsEntityListener.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
... 24 more
03:16:26 [INFO] [Metrics] mcstats.org

@ghost
Copy link
Author

ghost commented Dec 6, 2012

this one is from 1.7.9_beta:
cb used: craftbukkit-1.4.5-R0.3-20121205.223159-25.jar

03:24:18 [SEVERE] Could not pass event EntityChangeBlockEvent to Factions v1.7.9_beta
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:462)
at org.bukkit.craftbukkit.v1_4_5.event.CraftEventFactory.callEntityChang
eBlockEvent(CraftEventFactory.java:468)
at org.bukkit.craftbukkit.v1_4_5.event.CraftEventFactory.callEntityChang
eBlockEvent(CraftEventFactory.java:452)
at net.minecraft.server.v1_4_5.PathfinderGoalEatTile.e(PathfinderGoalEat
Tile.java:67)
at net.minecraft.server.v1_4_5.PathfinderGoalSelector.a(PathfinderGoalSe
lector.java:104)
at net.minecraft.server.v1_4_5.EntityLiving.bl(EntityLiving.java:1431)
at net.minecraft.server.v1_4_5.EntitySheep.bl(EntitySheep.java:44)
at net.minecraft.server.v1_4_5.EntityLiving.c(EntityLiving.java:1233)
at net.minecraft.server.v1_4_5.EntityAgeable.c(EntityAgeable.java:68)
at net.minecraft.server.v1_4_5.EntityAnimal.c(SourceFile:33)
at net.minecraft.server.v1_4_5.EntitySheep.c(EntitySheep.java:52)
at net.minecraft.server.v1_4_5.EntityLiving.j_(EntityLiving.java:508)
at net.minecraft.server.v1_4_5.World.entityJoinedWorld(World.java:1333)
at net.minecraft.server.v1_4_5.WorldServer.entityJoinedWorld(WorldServer
.java:546)
at net.minecraft.server.v1_4_5.World.playerJoinedWorld(World.java:1315)
at net.minecraft.server.v1_4_5.World.tickEntities(World.java:1193)
at net.minecraft.server.v1_4_5.WorldServer.tickEntities(WorldServer.java
:444)
at net.minecraft.server.v1_4_5.MinecraftServer.r(MinecraftServer.java:57
7)
at net.minecraft.server.v1_4_5.DedicatedServer.r(DedicatedServer.java:22
2)
at net.minecraft.server.v1_4_5.MinecraftServer.q(MinecraftServer.java:49
3)
at net.minecraft.server.v1_4_5.MinecraftServer.run(MinecraftServer.java:
426)
at net.minecraft.server.v1_4_5.ThreadServerApplication.run(SourceFile:85
6)
Caused by: java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityChangeBloc
kEvent.getEntity()Lorg/bukkit/entity/LivingEntity;
at com.massivecraft.factions.listeners.FactionsEntityListener.onEntityCh
angeBlock(FactionsEntityListener.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:339)
... 24 more

@ghost
Copy link
Author

ghost commented Dec 6, 2012

hmm the line would be this:
Entity entity = event.getEntity();
but how can there be no such method getEntity ... doesn't seem to be Factions' fault... investigating

@ghost
Copy link
Author

ghost commented Dec 6, 2012

well looking(at the binary class) inside the craftbukkit-1.4.5-R0.3-20121205.223159-25.jar
this org.bukkit.event.entity.EntityChangeBlockEvent.getEntity() doesn't seem to exist indeed

@ghost
Copy link
Author

ghost commented Dec 6, 2012

alright it's this commit:
Bukkit/Bukkit@e468a8b
EDIT: Which looks like only a recompile of Factions plugin is needed with the latest bukkit
EDIT2: a recompile so that it now links to org.bukkit.event.entity.EntityEvent.getEntity() instead

@Brettflan
Copy link
Contributor

Already addressed here with updated builds posted:
http://dev.bukkit.org/server-mods/factions/#c2786

I just hadn't committed the CB lib update which fixes it upon simply recompiling. Went ahead and committed those to round off any further reports here.

@ghost
Copy link
Author

ghost commented Dec 6, 2012

cool, thanks! (I missed those, sorry for the noise)
PS: "[offsite links removed - mods]"

@Brettflan
Copy link
Contributor

No worries.

Ah, the Bukkit team being helpful as always and deleting the "offsite links" posted by one of the authors of the plugin in question. Good grief.

@genXdev
Copy link

genXdev commented Dec 9, 2012

It's commited with Brettflan's update above,
I downloaded it, but it still gives that error message with CraftBukkit #2520 1.4.5-R0.3 ??

What am I doing wronge :)


16:29:03 [SEVERE] Could not pass event EntityChangeBlockEvent to Factions v1.6.9
.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:462)
at org.bukkit.craftbukkit.v1_4_5.event.CraftEventFactory.callEntityChang
eBlockEvent(CraftEventFactory.java:468)
at org.bukkit.craftbukkit.v1_4_5.event.CraftEventFactory.callEntityChang
eBlockEvent(CraftEventFactory.java:452)
at net.minecraft.server.v1_4_5.PathfinderGoalEatTile.e(PathfinderGoalEat
Tile.java:67)
at net.minecraft.server.v1_4_5.PathfinderGoalSelector.a(PathfinderGoalSe
lector.java:104)
at net.minecraft.server.v1_4_5.EntityLiving.bl(EntityLiving.java:1435)
at net.minecraft.server.v1_4_5.EntitySheep.bl(EntitySheep.java:44)
at net.minecraft.server.v1_4_5.EntityLiving.c(EntityLiving.java:1233)
at net.minecraft.server.v1_4_5.EntityAgeable.c(EntityAgeable.java:68)
at net.minecraft.server.v1_4_5.EntityAnimal.c(SourceFile:33)
at net.minecraft.server.v1_4_5.EntitySheep.c(EntitySheep.java:52)
at net.minecraft.server.v1_4_5.EntityLiving.j_(EntityLiving.java:508)
at net.minecraft.server.v1_4_5.World.entityJoinedWorld(World.java:1333)
at net.minecraft.server.v1_4_5.WorldServer.entityJoinedWorld(WorldServer
.java:546)
at net.minecraft.server.v1_4_5.World.playerJoinedWorld(World.java:1315)
at net.minecraft.server.v1_4_5.World.tickEntities(World.java:1193)
at net.minecraft.server.v1_4_5.WorldServer.tickEntities(WorldServer.java
:444)
at net.minecraft.server.v1_4_5.MinecraftServer.r(MinecraftServer.java:57
7)
at net.minecraft.server.v1_4_5.DedicatedServer.r(DedicatedServer.java:22
2)
at net.minecraft.server.v1_4_5.MinecraftServer.q(MinecraftServer.java:49
3)
at net.minecraft.server.v1_4_5.MinecraftServer.run(MinecraftServer.java:
426)
at net.minecraft.server.v1_4_5.ThreadServerApplication.run(SourceFile:85
6)
Caused by: java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityChangeBloc
kEvent.getEntity()Lorg/bukkit/entity/LivingEntity;
at com.massivecraft.factions.listeners.FactionsEntityListener.onEntityCh
angeBlock(FactionsEntityListener.java:569)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:339)
... 24 more

@Brettflan
Copy link
Contributor

Needs a recompile, then you'll see "1.6.9.3b" instead of "1.6.9.3".

@BenStolin
Copy link

Can someone give me the link to a compiled version? I honestly have no clue how to compile it together, I have a decompiler but I don't know what to do cough noob cough

@Brettflan
Copy link
Contributor

As the BukkitDev team has no sway here on GitHub, here are the same temporary download links I posted over there which were taken down:

http://wimbli.com/minecraft/Factions_1.7.9b_beta.zip
http://wimbli.com/minecraft/Factions_1.6.9.3b.zip

@BenStolin
Copy link

Players can break in enemy/ally territory.

Date: Wed, 12 Dec 2012 16:14:59 -0800
From: notifications@github.com
To: Factions@noreply.github.com
CC: BenStolin@hotmail.com
Subject: Re: [Factions] Could not pass event EntityChangeBlockEvent (Factions recompile needed) (#194)

As the BukkitDev team has no sway here on GitHub, here are the same temporary download links I posted over there which were taken down:

http://wimbli.com/minecraft/Factions_1.7.9b_beta.zip
http://wimbli.com/minecraft/Factions_1.6.9.3b.zip

          —

          Reply to this email directly or view it on GitHub.

@Brettflan
Copy link
Contributor

The only change in the above releases is the "b" added to the version and a recompile against a recent CraftBukiit build, as you can see in the commit list.

If you're having other problems:
A. This isn't the place for them.
B. You would need to provide more info, such as an error log. But not here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants