Likeaboss

4 - killall - Grave Warning

What steps will reproduce the problem?

  1. Load the Server. Go to an area probably with some Bosses.
  2. Execute the command /killall.
  3. Look at the Console. It'll generate the error.

What is the expected output? What do you see instead?

I think the expected output would be just no errors. Instead, I see an error telling me some things about the EntityDeathEvent.

What version of the product are you using?

I'm using the last version available.

Do you have an error log of what happened?

Yes. Here it is:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
== LIKE A BOSS - EntityDeathEvent Error Log ==

19:39:35 [INFO] [PLAYER_COMMAND] Gidedin: /killall
19:39:35 [GRAVE] Could not pass event EntityDeathEvent to Likeaboss
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
        at com.earth2me.essentials.commands.Commandkillall.run(Commandkillall.java:147)
        at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:103)
        at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:97)
        at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:367)
        at com.earth2me.essentials.Essentials.onCommand(Essentials.java:272)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:103)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractList.add(Unknown Source)
        at java.util.AbstractList.add(Unknown Source)
        at java.util.AbstractCollection.addAll(Unknown Source)
        at cam.listener.LabEntityListener.onEntityDeath(LabEntityListener.java:100)
        at sun.reflect.GeneratedMethodAccessor85.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:301)
        ... 22 more

Please provide any additional information below.

I'm using:

  • CraftBukkit on Bukkit 1.2.5-R1.0;
  • Likeaboss v1.5.0 and
  • Essentials v2.8.3.

I really have no idea what to say to give you a head-start. I'm sorry.

User When Change
bm01 Feb 05, 2013 at 02:29 UTC
bm01 Apr 16, 2012 at 23:55 UTC
Gidedin Apr 16, 2012 at 22:48 UTC Changed description type from Plain Text to WikiCreole

Changed description:
- What steps will reproduce the problem?
+ **What steps will reproduce the problem?**
- 1.
- 2.
- 3.
+
+ # Load the Server. Go to an area probably with some Bosses.
+ # Execute the command **/killall**.
+ # Look at the Console. It'll generate the error.
  **What is the expected output? What do you see instead?**
----------------------------------------
  Please provide any additional information below.

- I'm using **CraftBukkit on Bukkit 1.2.5-R1.0**, **Likeaboss v1.5.0** and **Essentials v2.8.3**. I really have no idea what to say to give you a head-start. I'm sorry.
+ I'm using:
+
+ * **CraftBukkit on Bukkit 1.2.5-R1.0**;
+ * **Likeaboss v1.5.0** and
+ * **Essentials v2.8.3**.
+
+ I really have no idea what to say to give you a head-start. I'm sorry.
Gidedin Apr 16, 2012 at 22:46 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of Gidedin Gidedin Apr 17, 2012 at 12:49 UTC - 0 likes

    @bm01: Go

    Not really, it still works, just don't kill the Boss Mobs. I only use it on rare occasions anyway. I just though it was better to inform you :-)

    ~ The Slayer Log

  • Avatar of bm01 bm01 Apr 17, 2012 at 00:23 UTC - 0 likes

    I see what's happening. When Essentials kills an entity it also creates a death event, which need to be "filled" with a drops list. Essentials use an empty and immutable list, and Likeaboss tries to modify it. That's the "unsupported operation", an immutable list can't be modified.

    Honestly essentials shouldn't create a death event in the first place, any mod that monitors entity deaths will register those unnatural deaths (by the way, CraftBukkit doesn't create a death event when an entity is simply removed). But what's worse is the immutable list, other mods should be able to do what they want concerning drops (just for your information the /butcher command from WorldEdit does the right thing, it simply removes entities from the game).

    Anyway I know a few mods that will raise the same exception because of the same reason. I don't know yet if I will add a fix for their bad ideas, probably not if it happens only with Essentials (do you really depend on this command? :p).

    Last edited Jul 11, 2012 by bm01

    BFAK:56593,34358affebd4fb076f8ceaa8ffe015453ba2330498cae298f780e344728d5ef5 Likeaboss, on BukkitDev.

  • Avatar of Gidedin Gidedin Apr 16, 2012 at 22:48 UTC - 0 likes

    Made it better to read and forgot to change to WikiCreole.

  • 3 comments

Facts

Last updated
Feb 05, 2013
Reported
Apr 16, 2012
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
5

Reported by

Possible assignees

  • Avatar of bm01
    • Manager
    • Author