How to read stack-traces, and troubleshoot your own plugins (by yourself)

Discussion in 'Plugin Development' started by DrBoweNur, Aug 19, 2011.

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

    DuhAsianOne

    Code:
    15:22:41 [SEVERE] Could not pass event EntityDeathEvent to ZombieSurvival
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:332)
            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.event.CraftEventFactory.callEntityDeathEvent(C
    raftEventFactory.java:299)
    How do I go look for the JavaPluginLoader.java?
     
  2. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı Retired Staff

    That would be looking at the wrong part of the trace. Look below it for the reason it fired.
     
  3. Offline

    LimitedWard

    Pro tip: if you right click where the line numbers should be in Eclipse (the left margin), an option will appear for you to enable line numbers.
     
    Darky1126 likes this.
  4. Offline

    Mrchasez

    In an error like this
    http://pastie.org/5126066

    How do you know where to look?
     
  5. Offline

    Gravity Retired Staff

    ChunkPersistance.java:77
     
  6. Offline

    Mrchasez

    I mean, for this type of error is it usually the first line?
     
  7. Offline

    Gravity Retired Staff

    You just really have to think about the logic; usually near the top is the best place to start but in your PerformanceTweaks.java file, it calls ChunkPersistance.java, and that top line is the terminating point where (typically) the issue is caused.
     
  8. Offline

    Mrchasez

    For this:
    http://pastie.org/5128337

    Is: at me.plugin.ptweaks.ChunkPersistance.onEnable(ChunkPersistance.java:85)

    And: at me.plugin.ptweaks.PerformanceTweaks.onEnable(PerformanceTweaks.java:56)

    Right?
     
  9. Offline

    Gravity Retired Staff

    The second one calls the first one, so yes.
     
  10. Offline

    Nerdfuryz

    Very very useful information! Thank you so much for this.
     
  11. Offline

    Presidentx

    I read it and it fixed my plugin! Well not really but I found out where the problem was, now onto fixing.
     
  12. Offline

    TheHolySheep_NL

    Awesome and helpfull tutorial!

    - Sheep
     
  13. Offline

    Sgt_Tailor

  14. Offline

    AdamQpzm

    Sgt_Tailor Bumping a stuck thread doesn't really make a whole lot of difference/sense
     
    xTigerRebornx and BillyGalbreath like this.
  15. Offline

    XzKNIGHTzX

    This was the best tutorial ever I learned so much! Thank you!
     
Thread Status:
Not open for further replies.

Share This Page