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

Exception in thread "Skript offline player resolver thread (fetches UUIDs from the minecraft servers)" #3672

Closed
jewome62 opened this issue Jan 1, 2021 · 11 comments
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@jewome62
Copy link

jewome62 commented Jan 1, 2021

Description

I have exception when i reboot my server. And stop reboot process. I must kill the process for continue the reboot.

Steps to Reproduce

I don't know why ...

Expected Behavior

No block the reboot

Errors / Screenshots

[22:21:16 WARN]: Exception in thread "Skript offline player resolver thread (fetches UUIDs from the minecraft servers)" java.lang.NoClassDefFoundError: Could not initialize class ch.njol.skript.bukkitutil.UnresolvedOfflinePlayer
[22:21:16 WARN]:        at ch.njol.skript.bukkitutil.UnresolvedOfflinePlayer$1.run(UnresolvedOfflinePlayer.java:60)
[22:21:16 WARN]:        at java.base/java.lang.Thread.run(Thread.java:834)

Server Information

  • Server version/platform: Tuinity 1.16.4
  • Skript version: 2.3.2
@Pikachu920
Copy link
Member

are you rebooting or reloading?

@MonzterDev
Copy link

MonzterDev commented Jan 4, 2021

I just got the same error upon attempting to stop my server.
[00:38:03 INFO]: [LuckPerms] Disabling LuckPerms v5.1.93 [00:38:03 INFO]: [LuckPerms] Starting shutdown process... [00:38:03 INFO]: [LuckPerms] Closing messaging service... [00:38:13 WARN]: at ch.njol.skript.bukkitutil.UnresolvedOfflinePlayer$1.run(UnresolvedOfflinePlayer.java:60) [00:38:13 WARN]: at java.base/java.lang.Thread.run(Thread.java:834) [00:38:13 WARN]: Exception in thread "Skript offline player resolver thread (fetches UUIDs from the minecraft servers)" java.lang.NoClassDefFoundError: Could not initialize class ch.njol.skript.bukkitutil.UnresolvedOfflinePlayer

I've never seen this before.

Skript version: 2.5.1
Server Version: PurPur 1.16.4

@jewome62
Copy link
Author

jewome62 commented Jan 5, 2021

are you rebooting or reloading?

Reboot of the server

@ShaneBeee
Copy link
Contributor

Skript version: 2.3.2

We are on Skript 2.5.3... we only offer support for the latest version. Can you please try replicate this issue on 2.5.3 and report back.

@ShaneBeee ShaneBeee added the waiting for reply The report needs a response from the reporter to determine course of action. label Jan 23, 2021
@jewome62
Copy link
Author

Skript version: 2.3.2

We are on Skript 2.5.3... we only offer support for the latest version. Can you please try replicate this issue on 2.5.3 and report back.

Sorry this is a rewrite problem between hands and keyboard :P my version is 2.5.3

[11:31:07 INFO]: Skript version 2.5.3
[11:31:07 INFO]: Customize Minecraft's mechanics with simple scripts written in plain English sentences.
[11:31:07 INFO]: Website: https://skriptlang.github.io/Skript
[11:31:07 INFO]: Authors: Njol, Mirreski, bensku, TheBentoBox, FranKusmiruk, ShaneBeee, Blueyescat, JRoy, Nicofisi, APickledWalrus, xXAndrew28Xx, Syst3ms, TheLimeGlass, Pikachu920, Sashie, Wealthyturtle, OfficialDonut and eyesniper2

@yunusalbayrak
Copy link

Same problem at 1.16.5 paper latest build

@SlimeDog
Copy link

SlimeDog commented Feb 3, 2021

The initially-reported issue occurs on server shutdown on Skript 2.5.3 with Spigot 1.16.5-3002 or Paper 1.16.5-457

[23:17:31] [Skript offline player resolver thread (fetches UUIDs from the minecraft servers)/WARN]: Exception in thread "Skript offline player resolver thread (fetches UUIDs from the minecraft servers)" java.lang.NoClassDefFoundError: Could not initialize class ch.njol.skript.bukkitutil.UnresolvedOfflinePlayer
[23:17:31] [Skript offline player resolver thread (fetches UUIDs from the minecraft servers)/WARN]:     at ch.njol.skript.bukkitutil.UnresolvedOfflinePlayer$1.run(UnresolvedOfflinePlayer.java:60)
[23:17:31] [Skript offline player resolver thread (fetches UUIDs from the minecraft servers)/WARN]:     at java.base/java.lang.Thread.run(Thread.java:834)

@jewome62
Copy link
Author

jewome62 commented Mar 6, 2021

Any news ?
My server didnot restart well everyday ...

@TheDGOfficial
Copy link
Contributor

TheDGOfficial commented Mar 8, 2021

That class probably should be rewritten. The java.lang.NoClassDefFoundError: Could not initialize class ... errors means the ClassLoader (PluginClassLoader in this case) had an uncaught exception loading/initializing the class. It does not mean class is not found. May be confusing at first look, though. The real exception can be printed by just adding a try catch to the static initializer. However that class probably should be rewritten and/or removed completely from stratch as it caused issues in the past too, better of rewriting it completely with proper Java coding standards and usage of modern Java/Bukkit features.

For users, just wait until it is fixed or ignore the error if it happens during shutdown. If it happens on runtime/start-up though, offlineplayers on command arguments or such may cause issues.

@TPGamesNL TPGamesNL added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). and removed waiting for reply The report needs a response from the reporter to determine course of action. labels Mar 18, 2021
@Whimsyturtle Whimsyturtle added the completed The issue has been fully resolved and the change will be in the next Skript update. label Mar 19, 2021
@jewome62
Copy link
Author

@TheDGOfficial

For users, just wait until it is fixed or ignore the error if it happens during shutdown. If it happens on runtime/start-up though, offlineplayers on command arguments or such may cause issues.

OK but the problem is the bug block the stop.
We must kill the server and the force save of the map is after unload of skript.
So i kill a server without save of map
And i can have corruption of maps

@SlimeDog
Copy link

Confirmed fixed: Skript 2.6-alpha1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

9 participants