Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.98k stars 211 forks source link

Failed to re-register a Channel to the new Selector. #299

Closed dayd21git closed 3 years ago

dayd21git commented 3 years ago
[20:50:31] [Netty Server IO #0/WARN]: Failed to re-register a Channel to the new Selector.
java.lang.ClassCastException: io.netty.channel.nio.SelectedSelectionKeySetSelector cannot be cast to java.nio.channels.spi.AbstractSelector
        at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:219) ~[?:1.8.0_275]
        at io.netty.channel.nio.NioEventLoop.rebuildSelector0(NioEventLoop.java:347) [minecraft_server.1.12.2.jar:?]
        at io.netty.channel.nio.NioEventLoop.rebuildSelector(NioEventLoop.java:318) [minecraft_server.1.12.2.jar:?]
        at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:769) [minecraft_server.1.12.2.jar:?]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:388) [minecraft_server.1.12.2.jar:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [minecraft_server.1.12.2.jar:?]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
[20:50:31] [Netty Server IO #0/INFO]: Migrated 0 channel(s) to the new Selector.

After the server starts, it gets the offline status. There is an error in the logs. Does this apply to you or not?

Luohuayu commented 3 years ago

Are you using the latest release?

dayd21git commented 3 years ago

Yes!

dayd21git commented 3 years ago

Any ideas?

Luohuayu commented 3 years ago

Can you upload the full log?

Luohuayu commented 3 years ago

It seems you are running minecraft_server.1.12.2.jar instead of CatServer

dayd21git commented 3 years ago

log1: https://drive.google.com/file/d/1HXlJ6F3ZzbsiynJVIemB1zzWPsmliGsH/view?usp=sharing log2: https://drive.google.com/file/d/1bVsApYzAq1VGAYa66wRW998EOhGY3MRU/view?usp=sharing start.sh: https://drive.google.com/file/d/14bb6MwoLNk8hMxsir2guaXghkGI46Wod/view?usp=sharing

Luohuayu commented 3 years ago

Try not to use javaagent, use java -jar server.jar to start

dayd21git commented 3 years ago

Hey! /home/jdk8u275/bin/java

dayd21git commented 3 years ago

it's line # java -javaagent:LaunchServer.jar -jar LaunchServer.jar; not used!

Luohuayu commented 3 years ago

Try to use the latest release now, the problem should be resolved.

dayd21git commented 3 years ago

Rly? Ok!