Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup warnings #6

Open
KIRUYXAN opened this issue Jun 27, 2024 · 2 comments
Open

Startup warnings #6

KIRUYXAN opened this issue Jun 27, 2024 · 2 comments

Comments

@KIRUYXAN
Copy link

KIRUYXAN commented Jun 27, 2024

[17:48:48 WARN]: [AutoSaveWorld] Plugin PlayerTime attempted to establish connection https://api.spigotmc.org/legacy/update.php?resource=58915 in main server thread
[17:48:48 WARN]: [AutoSaveWorld] Plugin PlayerTime attempted to establish connection socket://api.spigotmc.org:443 in main server thread

The plugin attempts to establish a connection to the Spigot servers on the main server thread. This can cause lag and delays since the main thread is responsible for processing game events.

[17:48:48 WARN]: Nag author(s): '[blockslayer22]' of 'PlayerTime v1.0.7-RELEASE' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger).

The plugin uses System.out for console output and optionally System.err for errors. This is a bad practice that makes debugging difficult and can cause performance problems. It is recommended to use the logger provided by Spigot.

@KIRUYXAN
Copy link
Author

and also
[20:28:26 WARN]: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
[20:28:26 WARN]: at PlayerTime-1.0.7-RELEASE.jar//me.rayzr522.jsonmessage.JSONMessage$ReflectionHelper.getVersion(JSONMessage.java:746)
[20:28:26 WARN]: at PlayerTime-1.0.7-RELEASE.jar//me.rayzr522.jsonmessage.JSONMessage$ReflectionHelper.(JSONMessage.java:516)
[20:28:26 WARN]: at PlayerTime-1.0.7-RELEASE.jar//me.rayzr522.jsonmessage.JSONMessage.send(JSONMessage.java:158)
[20:28:26 WARN]: at PlayerTime-1.0.7-RELEASE.jar//me.glaremasters.playertime.events.Announcement.lambda$onJoin$0(Announcement.java:36)
[20:28:26 WARN]: at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101)
[20:28:26 WARN]: at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[20:28:26 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[20:28:26 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[20:28:26 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[20:28:26 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
[20:28:26 WARN]: [PlayerTime] Plugin PlayerTime v1.0.7-RELEASE generated an exception while executing task 229
java.lang.IllegalStateException: ReflectionHelper is not set up!
at PlayerTime-1.0.7-RELEASE.jar/me.rayzr522.jsonmessage.JSONMessage$ReflectionHelper.createTextPacket(JSONMessage.java:608) ~[PlayerTime-1.0.7-RELEASE.jar:?]
at PlayerTime-1.0.7-RELEASE.jar/me.rayzr522.jsonmessage.JSONMessage.send(JSONMessage.java:158) ~[PlayerTime-1.0.7-RELEASE.jar:?]
at PlayerTime-1.0.7-RELEASE.jar/me.glaremasters.playertime.events.Announcement.lambda$onJoin$0(Announcement.java:36) ~[PlayerTime-1.0.7-RELEASE.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.21.jar:1.21-15-2df432f]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.jar:1.21-15-2df432f]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

The plugin does not work on my paper 1.21 server

@KIRUYXAN
Copy link
Author

and also
[19:05:43 WARN]: [PlayerTime] Plugin PlayerTime v1.0.7-RELEASE generated an exception while executing task 1229
java.lang.IllegalStateException: ReflectionHelper is not set up!
at PlayerTime-1.0.7-RELEASE.jar/me.rayzr522.jsonmessage.JSONMessage$ReflectionHelper.createTextPacket(JSONMessage.java:608) ~[PlayerTime-1.0.7-RELEASE.jar:?]
at PlayerTime-1.0.7-RELEASE.jar/me.rayzr522.jsonmessage.JSONMessage.send(JSONMessage.java:158) ~[PlayerTime-1.0.7-RELEASE.jar:?]
at PlayerTime-1.0.7-RELEASE.jar/me.glaremasters.playertime.events.Announcement.lambda$onJoin$0(Announcement.java:36) ~[PlayerTime-1.0.7-RELEASE.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.21.jar:1.21-15-2df432f]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.jar:1.21-15-2df432f]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Error java.lang.IllegalStateException: ReflectionHelper is not set up! in the PlayerTime plugin indicates that the ReflectionHelper component used to send JSON messages to players was not initialized correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant