Strange Error When Getting A Player's Name By UUID

Discussion in 'Plugin Development' started by The Gaming Grunts, Jul 9, 2014.

Thread Status:
Not open for further replies.
  1. Hey everyone! So, I'm using evilmidget38 NameFetcher and I'm getting the following error and I'm not sure why. For some reason, the name is returning null and saying "Unexpected token ENOD OF FILE at position 0"

    Error:
    Code:
    UUID of player giantsfan99999 is 74e41da2-f66e-4a9b-9441-9e42bb805b1d
    [13:49:23] [Server thread/INFO]: null
    [13:49:23] [Server thread/INFO]: giantsfan99999[/127.0.0.1:50370] logged in with entity id 113 at ([world] -284.9964563602286, 70.0, -107.61065255449105)
    [13:49:23] [pool-3-thread-9/WARN]: Unexpected token END OF FILE at position 0.
    [13:49:23] [pool-3-thread-9/WARN]:    at org.json.simple.parser.JSONParser.parse(Unknown Source)
    [13:49:23] [pool-3-thread-9/WARN]:    at org.json.simple.parser.JSONParser.parse(Unknown Source)
    [13:49:23] [pool-3-thread-9/WARN]:    at me.projectx.Settlements.Utils.NameFetcher.call(NameFetcher.java:29)
    [13:49:23] [pool-3-thread-9/WARN]:    at me.projectx.Settlements.Utils.PlayerUtils$1.run(PlayerUtils.java:29)
    [13:49:23] [pool-3-thread-9/WARN]:    at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftTask.run(CraftTask.java:53)
    [13:49:23] [pool-3-thread-9/WARN]:    at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    [13:49:23] [pool-3-thread-9/WARN]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    [13:49:23] [pool-3-thread-9/WARN]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    [13:49:23] [pool-3-thread-9/WARN]:    at java.lang.Thread.run(Unknown Source)
    
    Here's the code I used to test this (using a Gist so make things more organized): https://gist.github.com/TheGamingGrunts/3949e9e6c4bd585aa992

    Any help is much appreciated :)

    EDIT: Btw, in the error above I used the same method for when a player joins just for debug purposes and as you can see it still returns null, just like when using the command
     
  2. Offline

    evilmidget38

  3. Offline

    mazentheamazin

Thread Status:
Not open for further replies.

Share This Page