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

Players can't join when packetevents-bungeecord is loaded #1095

Open
LoliColleen opened this issue Dec 21, 2024 · 4 comments
Open

Players can't join when packetevents-bungeecord is loaded #1095

LoliColleen opened this issue Dec 21, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@LoliColleen
Copy link

Server:
XCord v1.63 (Waterfall-Bootstrap:1.20-R0.3-SNAPSHOT:c5fd43a:565)

Client:
1.21.1 Fabric

Code:

@Override
    public void onLoad() {
        PacketEvents.setAPI(BungeePacketEventsBuilder.build(this));
        PacketEvents.getAPI().load();
    }
dependencies {
    compileOnly fileTree('libs')
    compileOnly 'com.mojang:brigadier:1.0.18'
    compileOnly "net.md-5:bungeecord-api:1.21-R0.1-SNAPSHOT"
    compileOnly 'net.luckperms:api:5.4'
    shadow 'com.github.retrooper:packetevents-bungeecord:2.7.0'
    shadow "com.alkaidmc.alkaid:alkaid-bungeecord:5da8e5d-SNAPSHOT"

    // https://mvnrepository.com/artifact/com.huaban/jieba-analysis
    implementation 'com.huaban:jieba-analysis:1.0.2'
    implementation 'org.jetbrains:annotations:24.0.0'
}

Logs:

[01:28:41] [hades Pool Thread #0/INFO] [hades]: Creating new connection ...
[01:28:41] [epollEventLoopGroup-3-3/INFO]: [Kolleen|/192.168.1.29:46274] <-> ServerConnector [MainLobby#1] has connected
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: java.lang.NoSuchMethodException: aw.encode(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,java.util.List)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at java.base/java.lang.Class.getDeclaredMethod(Class.java:2848)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.github.retrooper.packetevents.injector.CustomPipelineUtil.callPacketEncodeByteBuf(CustomPipelineUtil.java:137)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.github.retrooper.packetevents.handlers.PacketEventsEncoder.recompress(PacketEventsEncoder.java:147)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.github.retrooper.packetevents.handlers.PacketEventsEncoder.read(PacketEventsEncoder.java:78)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.github.retrooper.packetevents.handlers.PacketEventsEncoder.write(PacketEventsEncoder.java:102)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.handler.codec.MessageToByteEncoder.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.handler.codec.MessageToByteEncoder.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at net.md_5.bungee.netty.ChannelWrapper.write(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at net.md_5.bungee.UserConnection$1.sendPacket(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at net.md_5.bungee.ServerConnector.cutThrough(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at net.md_5.bungee.ServerConnector.handle(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at net.md_5.bungee.protocol.packet.LoginSuccess.handle(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at net.md_5.bungee.netty.HandlerBoss.channelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at v.channelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at net.md_5.bungee.protocol.MinecraftDecoder.channelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.epoll.EpollEventLoop.processReady(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.channel.epoll.EpollEventLoop.run(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.util.internal.ThreadExecutorMap$2.run(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(Unknown Source)
[01:28:41] [epollEventLoopGroup-3-3/ERROR]: 	at java.base/java.lang.Thread.run(Thread.java:1583)
[01:28:41] [epollEventLoopGroup-3-3/INFO]: [Kolleen] disconnected with: NullPointerException : Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because "io.github.retrooper.packetevents.injector.CustomPipelineUtil.BUNGEE_PACKET_ENCODE_BYTEBUF" is null @ io.github.retrooper.packetevents.injector.CustomPipelineUtil:145
@LoliColleen LoliColleen added the bug Something isn't working label Dec 21, 2024
@LoliColleen LoliColleen changed the title Players can't join when packevents-bungeecord is loaded Players can't join when packetevents-bungeecord is loaded Dec 21, 2024
@booky10
Copy link
Collaborator

booky10 commented Dec 22, 2024

Have you reported this to XCord? We don't know how their compression is set up, packetevents can only be designed to work with open-source BungeeCord forks (e.g. Waterfall)

@LoliColleen
Copy link
Author

LoliColleen commented Dec 22, 2024

It still happens on waterfall-1.20-565.
But it doesnt happen on waterfall-1.21-582.

@booky10
Copy link
Collaborator

booky10 commented Dec 22, 2024

Are you using Waterfall or XCord?

@LoliColleen
Copy link
Author

Are you using Waterfall or XCord?

I m using XCord.
I mean packetevents have problem on Waterfall 1.20 and the latest XCord is forked from Waterfall 1.20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants