1.11.2 Minecraft 服务器在玩家尝试加入/ ping 服务器时崩溃。

huangapple go评论87阅读模式
英文:

1.11.2 Minecraft server crashes when player tries to join/ping server

问题

我正在尝试在本地机器上设置一个1.11.2版本的Minecraft服务器,但每当玩家尝试加入或ping服务器时,它都会崩溃。我还注意到,当它启动时,会出现一些我以前从未见过并且不太理解的警告。

启动文本:

[10:24:53] [Server thread/INFO]: 启动Minecraft服务器版本1.11.2
[10:24:53] [Server thread/INFO]: 正在加载属性
[10:24:53] [Server thread/INFO]: 默认游戏类型SURVIVAL
[10:24:53] [Server thread/INFO]: 生成密钥对
[10:24:54] [Server thread/INFO]:*:25565上启动Minecraft服务器
警告发生了非法的反射访问操作
警告非法的反射访问由io.netty.util.internal.PlatformDependent0 (file:/home/admin/Documents/Minecraft_Servers/captiveMinecraftII/server.jar) 对java.nio.Buffer.address字段进行了访问
警告请考虑向io.netty.util.internal.PlatformDependent0的维护者报告此问题
警告使用--illegal-access=warn以启用进一步非法的反射访问操作的警告
警告在将来的版本中将拒绝所有非法的访问操作
2020年8月4日上午10:24:54 io.netty.util.internal.PlatformDependent <clinit>
INFO: 您的平台未提供完整的低级API以可靠地访问直接缓冲区除非明确请求否则始终优先使用堆缓冲区以避免潜在的系统不稳定性
[10:24:54] [Server thread/INFO]: 使用epoll通道类型
[10:24:54] [Server thread/INFO]: 准备级别"world"
[10:24:54] [Server thread/INFO]: 为级别0准备启动区域
[10:24:55] [Server thread/INFO]: 准备生成区域31%
[10:24:56] [Server thread/INFO]: 完成2.004秒)!如需帮助请键入"help""?"

这是玩家尝试加入时的错误:

2020年8月4日上午10:26:20 io.netty.channel.DefaultChannelPipeline$TailContext exceptionCaught
警告触发了exceptionCaught()事件并且它到达了管道的末尾这通常意味着管道中的最后一个处理程序未处理异常
java.lang.RuntimeException: 无法访问缓冲区的地址
        at io.netty.channel.epoll.Native.read(Native Method)
        at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.doReadBytes(EpollSocketChannel.java:678)
        at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:714)
        at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe$3.run(EpollSocketChannel.java:755)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
        at java.base/java.lang.Thread.run(Thread.java:834)
英文:

I'm trying to set up a 1.11.2 Minecraft server on a local machine, but it crashes every time a player tries to join or ping the server. I've also noticed that when it starts, there are a couple of warnings that I've never seen before and don't really understand

Startup text:

[10:24:53] [Server thread/INFO]: Starting minecraft server version 1.11.2
[10:24:53] [Server thread/INFO]: Loading properties
[10:24:53] [Server thread/INFO]: Default game type: SURVIVAL
[10:24:53] [Server thread/INFO]: Generating keypair
[10:24:54] [Server thread/INFO]: Starting Minecraft server on *:25565
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/home/admin/Documents/Minecraft_Servers/captiveMinecraftII/server.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Aug. 04, 2020 10:24:54 A.M. io.netty.util.internal.PlatformDependent <clinit>
INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.
[10:24:54] [Server thread/INFO]: Using epoll channel type
[10:24:54] [Server thread/INFO]: Preparing level "world"
[10:24:54] [Server thread/INFO]: Preparing start region for level 0
[10:24:55] [Server thread/INFO]: Preparing spawn area: 31%
[10:24:56] [Server thread/INFO]: Done (2.004s)! For help, type "help" or "?"

This is the error when a player tries to join:

Aug. 04, 2020 10:26:20 A.M. io.netty.channel.DefaultChannelPipeline$TailContext exceptionCaught
WARNING: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.RuntimeException: Unable to access address of buffer
        at io.netty.channel.epoll.Native.read(Native Method)
        at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.doReadBytes(EpollSocketChannel.java:678)
        at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:714)
        at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe$3.run(EpollSocketChannel.java:755)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
        at java.base/java.lang.Thread.run(Thread.java:834)

答案1

得分: 0

打开server.properties文件,并将use-native-transport设置为false

英文:

Open the server.properties file and set use-native-transport to false

Source: https://www.spigotmc.org/threads/unable-to-access-address-of-buffer.311602/#post-2948116

huangapple
  • 本文由 发表于 2020年8月4日 22:30:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/63249089.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定