Skip to content

NoClassDefFound while running Geyser #6287

@yoyosource

Description

@yoyosource

Describe the bug

While running the latest geyser version after a couple of minutes, when a player connects. See below:

[21:55:01 ERROR] Exception in thread "GeyserServerChild-4-1" java.lang.NoClassDefFoundError: io.netty.util.concurrent.DefaultPromise$1
[21:55:01 ERROR] 	at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:514)
[21:55:01 ERROR] 	at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:650)
[21:55:01 ERROR] 	at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:643)
[21:55:01 ERROR] 	at io.netty.util.concurrent.DefaultPromise.setFailure(DefaultPromise.java:124)
[21:55:01 ERROR] 	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1285)
[21:55:01 ERROR] 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[21:55:01 ERROR] 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[21:55:01 ERROR] 	at java.base/java.lang.Thread.run(Thread.java:1595)
[21:55:01 ERROR] Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.DefaultPromise$1
[21:55:01 ERROR] 	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
[21:55:01 ERROR] 	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
[21:55:01 ERROR] 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1102)
[21:55:01 ERROR] 	... 8 more

To Reproduce

  1. Start geyser with the following command java -Xmx1G -Xshareclasses:nonfatal,name=Geyser --add-opens java.base/jdk.internal.misc=ALL-UNNAMED -Xsyslog:none -Xtrace:none -Xnoclassgc -Xdisableexplicitgc -XX:+CompactStrings -XX:-HeapDumpOnOutOfMemory -XX:+ExitOnOutOfMemoryError -jar /jars/Geyser.jar
  2. With the following JRE version:
openjdk version "21.0.4" 2024-07-16 LTS
IBM Semeru Runtime Open Edition 21.0.4.1 (build 21.0.4+7-LTS)
Eclipse OpenJ9 VM 21.0.4.1 (build openj9-0.46.1, JRE 21 Linux amd64-64-Bit Compressed References 20240716_264 (JIT enabled, AOT enabled)
OpenJ9   - 4760d5d320
OMR      - 840a9adba
JCL      - db3fffb417c based on jdk-21.0.4+7)
  1. After a while the error as stated above occurred.
  2. Sometimes a player connecting is needed for this to occur.

Expected behaviour

No error

Screenshots / Videos

Image

Server Version and Plugins

> geyser version
[21:50:12 INFO] This server is running Geyser version 2.9.5-b1111 (git-master-855f97c) (Java: 1.21.11, Bedrock: 1.21.130 - 26.10)
[21:50:12 INFO] Checking version, please wait...
[21:50:12 INFO] No updates available.

There are no plugins on the server

Geyser Dump

https://dump.geysermc.org/gf63gngnCcTXdiCPHWgliOorQvJQLGYB

Geyser Version

2.9.5-b1111 (git-master-855f97c)

Minecraft: Bedrock Edition Device/Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions