Fireball Crashes server?

Discussion in 'Bukkit Help' started by belven000, Jul 12, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    belven000

    Hey,
    I have my own classes mod on the server which is most likely why this error occurs so often. When someone hits a fireball back or shoots one on some occasions we get this error and hte whole server stops and crashes:

    Code:
    [16:27:33] [Server thread/ERROR]: Encountered an unexpected exception
    net.minecraft.server.v1_7_R4.ReportedException: Ticking entity
        at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:653) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
    Caused by: java.lang.NullPointerException
        at org.bukkit.event.entity.EntityDamageEvent.<init>(EntityDamageEvent.java:45) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at org.bukkit.event.entity.EntityDamageByEntityEvent.<init>(EntityDamageByEntityEvent.java:26) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:528) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:446) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:573) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.EntityFireball.damageEntity(EntityFireball.java:238) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.EntityLargeFireball.a(EntityLargeFireball.java:20) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.EntityFireball.h(EntityFireball.java:131) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.World.entityJoinedWorld(World.java:1418) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.World.playerJoinedWorld(World.java:1396) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.World.tickEntities(World.java:1281) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.WorldServer.tickEntities(WorldServer.java:481) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
        at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:649) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-13-gf6dffcf-b3102jnks]
    I understand it's a bukkit error but is there something I can do to prevent it myself, override the event?
     
  2. Offline

    ChrystianSandu

    You want to make a fireball shot? Try this:
    Code:java
    1. Fireball f = (Fireball)player.getPlayer().launchProjectile(Fireball.class);
     
  3. Offline

    belven000

    ChrystianSandu Um what, no the entire server crashes when a fireball is hit by an entity. It's crashed at least 30 times today, not due to my plugin:

    java.lang.NullPointerException at org.bukkit.event.entity.EntityDamageEvent

    Please read the question.
     
  4. Offline

    ChrystianSandu

    I read it, but I havent this problem and I kill entity with fireball.
     
    jacklin213 likes this.
  5. Offline

    jacklin213

    belven000 try using a different build same version of craftbukkit to run your server and see if you come up with the same error
     
  6. Offline

    belven000

    jacklin213 I wish i could I don't have access to the bukkit version on the server. I can on my local but that's not where it needs to be fixed.
     
  7. Offline

    jacklin213

    belven000 wait so it works fine on your local server?
     
  8. Offline

    belven000

    jacklin213 No sorry, I was half asleep when i wrote that, I can't change the bukkit.jar the live server uses
    and it also breaks on my local
     
    jacklin213 likes this.
  9. Offline

    jacklin213

    belven000 Event if you use a different build of craftbukkit on your local? SideNote: I am half asleep all the time too, dw its not just you :p
     
  10. Offline

    Bobcat00

    3104 fixes something to do with EntityDamageEvent.
     
  11. Offline

    belven000

    Well, This issue has currently made me lose about 20 new players, due to crashing complaints, and I've had to disbale my mage and all ghasts on the server to tr and stop it.

    It's still breaking so there must be another plugin using the event and checking .getShooter() on projectiles which is Deprecated.

    Oh well I'll have to live with it for now.
     
  12. Offline

    Bobcat00

    If 3104 doesn't work, maybe go back to 3092 ?
     
  13. Offline

    Necrodoom

    This isn't a bukkit error, fireballs spawned by other plugins, dispensers and ghasts work fine.
    Paste code please.
     
  14. Offline

    belven000

    Necrodoom There is no code anymore. I've removed it all

    Bobcat00 I can't change the bukkit version that my live server uses, but thanks anyway
     
  15. Offline

    Necrodoom

    Looks like the possibly wrongly spawned fireball is still on the map and you need to take it out with a map editor.
     
  16. Offline

    belven000

    Necrodoom After I removed my code using .getShooter() etc it seems to be fixed or at least hasn't crashed in a while. and as a precaution I also deny fireballs from spawning at all now :D
     
  17. Offline

    Necrodoom

    belven000 then I can't help you figure out what you did wrong in the code that led to the crash.
     
Thread Status:
Not open for further replies.

Share This Page