[ADMN/SEC/WEB] HawkEye [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by oliverw92, Aug 15, 2011.

  1. Offline

    oliverw92

    sethgandy, phimt, matan7890 and 7 others like this.
  2. Offline

    Celtic Minstrel

    Hm... I have no idea why I didn't do that, but it's an easy fix. I guess HawkEye checks if it's cancelled, then, so doing that would eliminate the error?
     
  3. Offline

    sleite

    Is there no way to make this plug-in work with a flat-file or other database schema other than a full-blown SQL server? As soon as I see "SQL" in the reqirements of any plug-in I close the browser tab and continue searching elsewhere. I'm sure I'm not the only one. :-(

    Consider this a feature request.
     
  4. Offline

    L24D

    @oliverw92
    Apparently there is something terribly wrong with hawkeye. Umm..
    It randomly stopped logging stuff, and it refuses to log anything further.
    It gives me an error when i kill the server too:
    Code:
    2011-10-06 22:40:19 [SEVERE] Error occurred while disabling HawkEye v1.0.5 (Is it up to date?): null
    java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
        at java.util.HashMap$KeyIterator.next(Unknown Source)
        at com.mysql.jdbc.ConnectionImpl.closeAllOpenStatements(ConnectionImpl.java:1583)
        at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4381)
        at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1564)
        at uk.co.oliwali.HawkEye.database.JDCConnection.terminate(JDCConnection.java:311)
        at uk.co.oliwali.HawkEye.database.ConnectionManager.close(ConnectionManager.java:55)
        at uk.co.oliwali.HawkEye.database.DataManager.close(DataManager.java:69)
        at uk.co.oliwali.HawkEye.HawkEye.onDisable(HawkEye.java:67)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:962)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:169)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-10-06 22:40:19 [SEVERE] [HawkEye] SQL Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
    Anyways...
    Thanks bunches. :p
     
  5. Offline

    Tanite

    Running away because you don't want to learn isn't the solution :p

    *promptly runs away*
     
  6. Offline

    Jadedwolf

    @oliverw92
    My users get this error when using the search function:
    CB version 1290
    HawkEye v1.0.5
    Code:
    2011-10-06 21:56:16 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'hk' in plugin
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 2
    at java.lang.String.substring(Unknown Source)
    at uk.co.oliwali.HawkEye.SearchParser.<init>(SearchParser.java:53)
    at uk.co.oliwali.HawkEye.commands.SearchCommand.execute(SearchCommand.java:32)
    at uk.co.oliwali.HawkEye.commands.BaseCommand.run(BaseCommand.java:75)
    at uk.co.oliwali.HawkEye.HawkEye.onCommand(HawkEye.java:295)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 13 more 
     
  7. Offline

    oliverw92

    Yeah HawkEye checks if the event is cancelled. If it is it just ignores the event.

    Installing a MySQL server is very easy. The performance advantages outweigh the task of installing the database. Storing millions of entries in flat-file is just a silly idea - BigBrother tried it and ended up removing it because the performance was terrible.

    What command are they typing to get that?
     
  8. Offline

    Jadedwolf

  9. Offline

    oliverw92

    If you put in more parameters does it go away?
     
  10. Offline

    Jadedwolf

    @oliverw92
    Not sure exactly because the error is not 100 percent reliable as the command will only break every so often.
     
  11. Offline

    Grimmy777

    a admin on my server just typed:
    /hawk rollback P:
    /hawk rollback p:nathan1506 r:20

    this ended up rolling back my entire server for everything that had happened in the last 7 days. Thank god i have a recent backup but should it have done that???
     
  12. Offline

    RugRats

    This doesn't log the breaking of thin glass or glass. That is due to the plugin OtherDrops.
     
  13. Offline

    palz2015

    OK.... when I type /hawk help it just tells me to type /hawk help. WTF? I have it connected to a database. I really need a functional logging plugin, BigBrother is broken, LogBlock does the same thing...
     
  14. Offline

    Grimmy777

    yes if you type /hawk help you can see the rest of the commands...
     
  15. Offline

    bigggan

    @oliverw92

    When i did /hk rollback a:lava-flow r:50 it said it undid 40100 entries, but it doesent do anything, and it just says "You already have a rollback command processing"

    Code:
    2011-10-09 19:01:26 [WARNING] Task of 'HawkEye' generated an exception
    java.lang.NumberFormatException: For input string: "4-11"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at uk.co.oliwali.HawkEye.util.BlockUtil.setBlockString(BlockUtil.java:78)
    at uk.co.oliwali.HawkEye.entry.BlockEntry.rollback(BlockEntry.java:34)
    at uk.co.oliwali.HawkEye.Rollback.run(Rollback.java:84)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    Then i restarted and did it again and this comes:
    Code:
    2011-10-09 19:26:14 [WARNING] Task of 'HawkEye' generated an exception
    java.lang.NumberFormatException: For input string: "6-11"
    	at java.lang.NumberFormatException.forInputString(Unknown Source)
    	at java.lang.Integer.parseInt(Unknown Source)
    	at java.lang.Integer.parseInt(Unknown Source)
    	at uk.co.oliwali.HawkEye.util.BlockUtil.setBlockString(BlockUtil.java:78)
    	at uk.co.oliwali.HawkEye.entry.BlockEntry.rollback(BlockEntry.java:34)
    	at uk.co.oliwali.HawkEye.Rollback.run(Rollback.java:84)
    	at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  16. Offline

    Waffletastic

    I was wondering how I use the hawkeye import scripts for bigbrother?
     
  17. Offline

    Celtic Minstrel

    Why have you posted this here and not there?
     
  18. Offline

    oliverw92

    Look at what he typed - /hawk rollback p:

    That is basically saying rollback all players. Tell your admin to be more careful.

    Give yourself the correct permissions.

    Thanks for the bug report


    You will need to run the script in something like phpMyAdmin or MySQL WorkBench
     
  19. Offline

    RugRats

    Don't worry I did :D That was after the fact.
     
  20. Offline

    ButtChew

    I'm having the same problem as a ticket under DevBukkit I saw.

    I reinstalled HawkEye fresh, but it's not generating the MySQL tables, and obviously not writing to them.
     
  21. Offline

    oliverw92

    Show me your startup console messages
     
  22. Offline

    ButtChew

  23. Offline

    Grimmy777

    The admin was going to type the whole thing but when they went to hit backspace, they hit enter instead. Very easy mistake to make with huge consequences. I really think you should make it so it does not do that. I love this plugin btw, my server could not survive with out it =)
     
  24. Offline

    Spl1tz

    Hello
    I'm using latest recommended CB.
    Reporting a leakage that Hawkeye is causing or draining all the memory my server is using, ending into a none-responsive server. It started like a month ago and ive been looking for a solution since then. So today i tested my plugins deleting them 1 by 1 till i deleted Hawkeye and my server hasn't crashed since like 3 hours ago (crashes/freezes always happened in less than 1 hour)
     
  25. Offline

    bigggan

    @oliverw92

    And another thing, some player is using a brush mod, and guest doesent have WE. HK did registrate the edits but didnt replace the blocks. and when i hk tool the area it shows no edits. still i know it was griefed since i watched it like 5 minutes before, when it was whole.

    /hk werollback didnt registrate it, but /hk rollback did so, so idk.
     
  26. Offline

    oliverw92

    As I said on the ticket - you are using the wrong version. Download again and use the correct .jar file from the download

    I can't really add in exceptions for things like that because some people might want to do that.

    It is a known bug - to stop it, disable lava and water flow logging

    HawkEye does not log WorldEdit edits or any other plugin edits unless they actually fire block place/break events manually (which as far as I know, none do).
     
  27. Offline

    bigggan

    It wasent worldedit, it was a client side mod
     
  28. Offline

    ParadoXz

    i keep randomly getting this error :S

    2011-10-13 00:17:24 [SEVERE] Could not pass event ENDERMAN_PLACE to HawkEye
    java.lang.NullPointerException
    at uk.co.oliwali.HawkEye.listeners.MonitorEntityListener.onEndermanPlace(MonitorEntityListener.java:129)
    at org.bukkit.plugin.java.JavaPluginLoader$77.execute(JavaPluginLoader.java:782)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.EntityEnderman.s(EntityEnderman.java:126)
    at net.minecraft.server.EntityLiving.s_(EntityLiving.java:280)
    at net.minecraft.server.EntityMonster.s_(EntityMonster.java:31)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1193)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1175)
    at net.minecraft.server.World.cleanUp(World.java:1090)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:460)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  29. Offline

    oliverw92

    Disable enderman block place/break logging
     
  30. Offline

    AskewDread

    Hey am getting the following error on build 1317
    06:42:21 [SEVERE] Error occurred while enabling HawkEye v1.0.5 (Is it up to date?): tried to access method org.bukkit.command.ConsoleCommandSender.<init>(Lorg/bukkit/Server;)V from class uk.co.oliwali.HawkEye.SessionManager
    java.lang.IllegalAccessError: tried to access method org.bukkit.command.ConsoleCommandSender.<init>(Lorg/bukkit/Server;)V from class uk.co.oliwali.HawkEye.SessionManager
    at uk.co.oliwali.HawkEye.SessionManager.<init>(SessionManager.java:21)
    at uk.co.oliwali.HawkEye.HawkEye.onEnable(HawkEye.java:90)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  31. Offline

    oliverw92

    You are using the wrong build. There are two jar files in the 1.5 download. Use the later one
     

Share This Page