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

Not working on 1.20.3 (NoSuchMethodError) #746

Closed
ringo360 opened this issue Dec 6, 2023 · 6 comments
Closed

Not working on 1.20.3 (NoSuchMethodError) #746

ringo360 opened this issue Dec 6, 2023 · 6 comments

Comments

@ringo360
Copy link

ringo360 commented Dec 6, 2023

*Sorry, I using Translate. so my english is not good :/

About this issue

BTLP 3.6.3 is not working on 1.20.3 😭

BungeeCord changed PlayerListItem$Item#displayName's type to BaseComponent. A friend of mine said this is probably the cause.

Log

Bungeecord server error log:

21:00:32 [WARNING] A task raised an exception. Task: codecrafter47.bungeetablistplus.handler.NewTabOverlayHandler$$Lambda$2238/0x00007f8ac5c669f0@2e99ab97
java.lang.NoSuchMethodError: 'void net.md_5.bungee.protocol.packet.PlayerListItem$Item.setDisplayName(java.lang.String)'
	at codecrafter47.bungeetablistplus.handler.NewTabOverlayHandler$CustomContentTabOverlayHandler.update(NewTabOverlayHandler.java:742)
	at codecrafter47.bungeetablistplus.handler.NewTabOverlayHandler.update(NewTabOverlayHandler.java:359)
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:413)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at java.base/java.lang.Thread.run(Thread.java:840)

Spigot/Paper error log: nothing.

How to reproduce this issue?

  1. Download latest bungeecord(1.20.3)
  2. Install latest BTLP
  3. run bungeecord
  4. Join server
  5. When you look at the console, you will encounter this error.

I tried...

  • use different build version
  • change from Waterfall to Bungeecord

Server Version

BungeeCord: Latest(build 1777 - 231024b)

Purpur(Paper):

I using several servers.

Server A:

Current: git-Purpur-2062 (MC: 1.20.1)*
Previous: git-Purpur-1858 (MC: 1.19.2)
* You are running the latest version

Server B:

This server is running Purpur version git-Purpur-1428 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 9beb23b on ver/1.17.1)
Previous version: git-Paper-411 (MC: 1.17.1)
@ringo360
Copy link
Author

ringo360 commented Dec 6, 2023

I found additional errors. (similar to #744)

21:00:09 [SEVERE] [ringo360xd] Unexpected error
java.lang.NoSuchMethodError: 'void net.md_5.bungee.protocol.packet.PlayerListHeaderFooter.<init>(java.lang.String, java.lang.String)'
	at codecrafter47.bungeetablistplus.handler.NewTabOverlayHandler$PassThroughContentHandler.onServerSwitch(NewTabOverlayHandler.java:506)
	at codecrafter47.bungeetablistplus.handler.NewTabOverlayHandler.onServerSwitch(NewTabOverlayHandler.java:278)
	at codecrafter47.bungeetablistplus.protocol.AbstractPacketHandler.onServerSwitch(AbstractPacketHandler.java:63)
	at codecrafter47.bungeetablistplus.protocol.AbstractPacketHandler.onServerSwitch(AbstractPacketHandler.java:63)
	at codecrafter47.bungeetablistplus.handler.RewriteLogic.onServerSwitch(RewriteLogic.java:138)
	at codecrafter47.bungeetablistplus.managers.TabViewManager.onServerConnected(TabViewManager.java:95)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at net.md_5.bungee.event.EventHandlerMethod.invoke(EventHandlerMethod.java:19)
	at net.md_5.bungee.event.EventBus.post(EventBus.java:49)
	at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:413)
	at net.md_5.bungee.ServerConnector.handleLogin(ServerConnector.java:203)
	at net.md_5.bungee.ServerConnector.handle(ServerConnector.java:196)
	at net.md_5.bungee.protocol.packet.Login.handle(Login.java:283)
	at net.md_5.bungee.netty.HandlerBoss.channelRead(HandlerBoss.java:124)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800)
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:509)
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:407)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at java.base/java.lang.Thread.run(Thread.java:840)

@sannielollie
Copy link

Same issue here, worked fine on 1.20.2

@PrinceBunBun981
Copy link
Contributor

Hey,

I've tested the latest Dev Build of BTLP (https://ci.codecrafter47.de/job/BungeeTabListPlus/lastSuccessfulBuild/) on Waterfall#556 and BungeeCord#1777 and am not encountering any errors.

Please try downloading the latest dev build, I know it shows as an older version than the version on Spigot, but trust me it is more up to date, just has the wrong number. :)

@ringo360
Copy link
Author

ringo360 commented Dec 7, 2023

Hmmmmmmmmm…
I'll try that.

@ringo360
Copy link
Author

ringo360 commented Dec 8, 2023

It works!
I tried and Successfully worked latest Dev Build.
thx <3

But I'm a little confused by the different version designations and would like to see something done about it. Other users will probably make the same mistake.

@ringo360 ringo360 closed this as completed Dec 8, 2023
@andfont
Copy link

andfont commented Dec 10, 2023

It doesn't work, this case closed badly, it is mentioned in:
#747

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

4 participants