jsonapi icon indicating copy to clipboard operation
jsonapi copied to clipboard

Task #123 ERROR

Open AlexisHyt opened this issue 10 years ago • 8 comments

Hi ! I have many task error in my console, I use last version :

[23:23:03 WARN]: [JSONAPI] Task #123 for JSONAPI v5.6.0 generated an exception java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/en tity/Player; at com.alecgorge.minecraft.jsonapi.streams.PerformanceStreamDataProvider .run(PerformanceStreamDataProvider.java:23) ~[?:?] at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java :53) ~[craftbukkit-1.8.jar:git-Bukkit-726656b] at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHea rtbeat(CraftScheduler.java:349) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6 68) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:2 84) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6 09) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java :517) [craftbukkit-1.8.jar:git-Bukkit-726656b] at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]

AlexisHyt avatar Jul 26 '15 21:07 AlexisHyt

Do you use the 1.8 version of JSONAPI 5.6.0 ?

Kworz avatar Aug 11 '15 03:08 Kworz

I don't know, but I changed my plugins (jsonapi too)...But have another task error : http://bukkit.org/threads/jsonapi-v5-6-0-for-1-8-console-error-task-15.378405/ and I use JSONAPI 5.6.0 for 1.8

AlexisHyt avatar Aug 11 '15 12:08 AlexisHyt

bukkit.org forums are dead. do you use any SDK ? what method do you use ?

Kworz avatar Aug 11 '15 17:08 Kworz

  1. Bukkit forums is not dead
  2. I don't use SDK
  3. I don't touch methods, I've just modify options in config.yml

AlexisHyt avatar Aug 11 '15 21:08 AlexisHyt

Tried deleting methods.json and letting JSONAPI rebuild it?

electronicboy avatar Aug 11 '15 22:08 electronicboy

It doesn't work :

My config :

API methods on the method-whitelist will be

able to called without any sort of authentication

method-whitelist:

  • getPlayerLimit
  • dynmap.getPort options: stream_pusher: max_queue_age: 30 max_queue_length: 500 startup-delay: 2000 port: 25569 ip-whitelist: [] log-to-console: true log-to-file: 'false' anyone-can-use-calladmin: true use-new-api: false adminium-push-enabled: true

My error : [00:35:01 WARN]: [JSONAPI] Task #17 for JSONAPI v5.6.0 generated an exception java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/en tity/Player; at com.alecgorge.minecraft.jsonapi.streams.PerformanceStreamDataProvider .run(PerformanceStreamDataProvider.java:23) ~[?:?] at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java :53) ~[craftbukkit-1.8.jar:git-Bukkit-726656b] at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHea rtbeat(CraftScheduler.java:349) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6 68) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:2 84) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6 09) [craftbukkit-1.8.jar:git-Bukkit-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java :517) [craftbukkit-1.8.jar:git-Bukkit-726656b] at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]

AlexisHyt avatar Aug 11 '15 22:08 AlexisHyt

I work in localhost, I don't know if is important or not...

AlexisHyt avatar Aug 11 '15 22:08 AlexisHyt

https://ci.alecgorge.com/job/JSONAPI/ Try a dev build, I get a feeling this is #380

electronicboy avatar Aug 12 '15 20:08 electronicboy