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

NoClassDefFoundError #44

Open
TalXVI opened this issue Jun 21, 2022 · 9 comments
Open

NoClassDefFoundError #44

TalXVI opened this issue Jun 21, 2022 · 9 comments

Comments

@TalXVI
Copy link

TalXVI commented Jun 21, 2022

Since Atlas 1.12.0, the server throws this error when a player joins any server not running Minecraft version 1.19.

lost connection: Internal Exception: java.lang.NoClassDefFoundError: Could not initialize class cc.funkemunky.api.tinyprotocol.packet.types.WrappedGameProfile

@Gyztor
Copy link

Gyztor commented Jun 22, 2022

can second this

[05:58:07 INFO]: [GyztorMizirath|/[iphere]:60110] <-> ServerConnector [lobby] has connected
[05:58:07 INFO]: [GyztorMizirath] disconnected with: Kicked whilst connecting to lobby: Internal Exception: java.lang.NoClassDefFoundError: Could not initialize class cc.funkemunky.api.tinyprotocol.packet.types.WrappedGameProfile

@Gyztor
Copy link

Gyztor commented Jun 22, 2022

This kicks at the backend server layer not the bungee layer though i wouldnt be surpised if that was also apart of the problem too

@Hikari0964
Copy link

i have this problem too XD

@Gyztor
Copy link

Gyztor commented Jul 1, 2022

can confirm as of commit 538e8df it still exists

@Sybsuper
Copy link

Sybsuper commented Jul 4, 2022

After running the server in debug mode I get the following stack trace:

[09:06:27 WARN]: java.lang.ExceptionInInitializerError
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.packet.login.WrappedPacketLoginInStart.process(WrappedPacketLoginInStart.java:30)
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.api.NMSObject.<init>(NMSObject.java:44)
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.packet.login.WrappedPacketLoginInStart.<init>(WrappedPacketLoginInStart.java:24)
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.api.packets.channelhandler.TinyProtocol1_8$PacketInterceptor.channelRead(TinyProtocol1_8.java:536)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
[09:06:27 WARN]:        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:168)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
[09:06:27 WARN]:        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
[09:06:27 WARN]:        at com.comphenix.protocol.injector.netty.ChannelInjector$2.channelRead(ChannelInjector.java:292)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
[09:06:27 WARN]:        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
[09:06:27 WARN]:        at net.minecraft.server.v1_8_R3.LegacyPingHandler.channelRead(SourceFile:94)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
[09:06:27 WARN]:        at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[09:06:27 WARN]:        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
[09:06:27 WARN]:        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
[09:06:27 WARN]:        at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:722)
[09:06:27 WARN]:        at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:326)
[09:06:27 WARN]:        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:264)
[09:06:27 WARN]:        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
[09:06:27 WARN]:        at java.lang.Thread.run(Thread.java:748)
[09:06:27 WARN]: Caused by: java.lang.IllegalArgumentException: Cannot find com.mojang.authlib.PropertyMap
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.reflection.Reflection.getCanonicalClass(Reflection.java:407)
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.reflection.Reflection.getClass(Reflection.java:374)
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.packet.types.WrappedGameProfile.<clinit>(WrappedGameProfile.java:29)
[09:06:27 WARN]:        ... 30 more
[09:06:27 WARN]: Caused by: java.lang.ClassNotFoundException: com.mojang.authlib.PropertyMap
[09:06:27 WARN]:        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
[09:06:27 WARN]:        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101)
[09:06:27 WARN]:        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86)
[09:06:27 WARN]:        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
[09:06:27 WARN]:        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
[09:06:27 WARN]:        at java.lang.Class.forName0(Native Method)
[09:06:27 WARN]:        at java.lang.Class.forName(Class.java:264)
[09:06:27 WARN]:        at cc.funkemunky.api.tinyprotocol.reflection.Reflection.getCanonicalClass(Reflection.java:405)
[09:06:27 WARN]:        ... 32 more

Now I must say I don't have much experience with MC authlib nor reflections, but I am pretty sure instead of com.mojang.authlib.PropertyMap the PropertyMap class is located in com.mojang.authlib.properties.PropertyMap (I could be completely wrong, if so sorry, but I think the error is caused by this change: a505cc2#diff-2acdbda2c236d564e0a0d27dd83501b3bd077a0e2128bc91286926159d925d0c)

@assada
Copy link

assada commented Jul 6, 2022

Same issue

@nuym
Copy link

nuym commented Jul 7, 2022

same question

@Sybsuper
Copy link

Sybsuper commented Jul 8, 2022

Seems like the issue is fixed in this repo, just not in the latest release jar. After cloning the repo and building the jar locally it worked as it is supposed to.

@mitchngwen
Copy link

Since this is closed I assume it's fixed but you forgot to tell us?

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

7 participants