Error on player logging into server #1


  • Defect
  • Accepted
Open
Assigned to _ForgeUser8823018
  • _ForgeUser7815230 created this issue Aug 4, 2012

    What steps will reproduce the problem?
    1. Load server
    2. Join it
    3. Console errors!

    What is the expected output? What do you see instead?
    Expect no errors, got as below

    What version of the product are you using?
    v1.2.0 under 1.3.1 dev

    Do you have an error log of what happened?

    2012-08-05 15:28:06 [INFO] lulkle[/58.169.136.53:51567] logged in with entity id 560 at ([world] 311.30000001192093, 65.0, -1009.4887842687929)
    2012-08-05 15:28:06 [SEVERE] Could not pass event PlayerJoinEvent to Assassins
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:324)
            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 net.minecraft.server.ServerConfigurationManagerAbstract.c(ServerConfigurationManagerAbstract.java:161)
            at net.minecraft.server.ServerConfigurationManagerAbstract.a(ServerConfigurationManagerAbstract.java:92)
            at net.minecraft.server.NetLoginHandler.d(NetLoginHandler.java:121)
            at net.minecraft.server.NetLoginHandler.c(NetLoginHandler.java:41)
            at net.minecraft.server.DedicatedServerConnectionThread.a(DedicatedServerConnectionThread.java:44)
            at net.minecraft.server.DedicatedServerConnection.b(SourceFile:29)
            at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:559)
            at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
            at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException        at com.netprogs.minecraft.plugins.assassins.listener.AutoContractListener.onPlayerJoinEvent(AutoContractListener.java:56)
            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:322)
            ... 14 more

    Please provide any additional information below.
    only noticed error occur last few builds of 1.3.1

  • _ForgeUser7815230 added the tags New Defect Aug 4, 2012
  • _ForgeUser8823018 posted a comment Aug 5, 2012

    Can you provide me a copy of the config.json also along with this ?

    It looks like there might be an error in the config causing the auto contract object to not be created properly.

  • _ForgeUser7815230 posted a comment Aug 5, 2012

    Sorry only just saw your reply - yes certainly it is below.

    {
      // The maximum number of contracts a single player can have on them. -1 for unlimited.
      "maximumContracts": -1,

      // The amount of time (in minutes) that a contract is available for hunting. Default 1 day.
      "contractExpireTime": 1440,

      // The amount of time (in minutes) an assassin has to kill the player before the contract goes back to the wanted list.
      "assassinExpireTime": 60,

      // If you want to turn on debugging, set this to true
      "loggingDebug": false
    }

  • _ForgeUser8823018 posted a comment Aug 5, 2012

    @xphoenixxx: Go

    Ah okay, looks like you're using the old settings. Delete that one and reload the server, it should create the new file for you.

    There is a small bug that if it's missing the new settings it'll throw that exception, I'll toss out a patch later this week for it, but for now, try using the new default configuration created.


    Edited Aug 6, 2012
  • _ForgeUser8823018 removed a tag New Aug 8, 2012
  • _ForgeUser8823018 added a tag Accepted Aug 8, 2012

To post a comment, please login or register a new account.