You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
系统:CentsOS 7,JDK8
描述:把jmqtt-distribution/target/jmqtt拷贝VM, 运行jmqtt-distribution/target/jmqtt/jmqttstart,出现以下异常,但是可以启动,请问怎么修改这个呢?在MAC中没有此异常。
Unable to load the library 'netty_transport_native_epoll_x86_64', trying other loading mechanism.
java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll_x86_64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:369)
at java.security.AccessController.doPrivileged(Native Method)
at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:361)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:339)
at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136)
at io.netty.channel.epoll.Native.loadNativeLibrary(Native.java:219)
at io.netty.channel.epoll.Native.(Native.java:57)
at io.netty.channel.epoll.Epoll.(Epoll.java:39)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at top.hserver.core.server.util.EpollUtil.check(EpollUtil.java:10)
at top.hserver.core.server.HServer.run(HServer.java:51)
at top.hserver.HServerApplication.startServer(HServerApplication.java:156)
at top.hserver.HServerApplication.run(HServerApplication.java:75)
at org.jmqtt.manage.HttpServer.start(HttpServer.java:17)
at org.jmqtt.broker.BrokerController.start(BrokerController.java:242)
at org.jmqtt.broker.BrokerStartup.start(BrokerStartup.java:62)
at org.jmqtt.broker.BrokerStartup.main(BrokerStartup.java:22)
2020-12-29 15:06:59.475 DEBUG PID:[ 30499] 线程名: [ main] i.n.util.internal.NativeLibraryLoader [ 140] : netty_transport_native_epoll_x86_64 cannot be loaded from java.library.path, now trying export to -Dio.netty.native.workdir: /tmp
java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll_x86_64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:349)
at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136)
at io.netty.channel.epoll.Native.loadNativeLibrary(Native.java:219)
at io.netty.channel.epoll.Native.(Native.java:57)
at io.netty.channel.epoll.Epoll.(Epoll.java:39)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at top.hserver.core.server.util.EpollUtil.check(EpollUtil.java:10)
at top.hserver.core.server.HServer.run(HServer.java:51)
at top.hserver.HServerApplication.startServer(HServerApplication.java:156)
at top.hserver.HServerApplication.run(HServerApplication.java:75)
at org.jmqtt.manage.HttpServer.start(HttpServer.java:17)
at org.jmqtt.broker.BrokerController.start(BrokerController.java:242)
at org.jmqtt.broker.BrokerStartup.start(BrokerStartup.java:62)
at org.jmqtt.broker.BrokerStartup.main(BrokerStartup.java:22)
Suppressed: java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll_x86_64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:369)
at java.security.AccessController.doPrivileged(Native Method)
at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:361)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:339)
... 14 common frames omitted
2020-12-29 15:06:59.483 DEBUG PID:[ 30499] 线程名: [ main] i.n.util.internal.NativeLibraryLoader [ 340] : Successfully loaded the library /tmp/libnetty_transport_native_epoll_x86_645207355296361753854.so
2020-12-29 15:06:59.492 INFO PID:[ 30499] 线程名: [ main] top.hserver.core.server.HServer [ 67] : HServer 启动完成
The text was updated successfully, but these errors were encountered:
系统:CentsOS 7,JDK8
描述:把jmqtt-distribution/target/jmqtt拷贝VM, 运行jmqtt-distribution/target/jmqtt/jmqttstart,出现以下异常,但是可以启动,请问怎么修改这个呢?在MAC中没有此异常。
Unable to load the library 'netty_transport_native_epoll_x86_64', trying other loading mechanism.
java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll_x86_64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:369)
at java.security.AccessController.doPrivileged(Native Method)
at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:361)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:339)
at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136)
at io.netty.channel.epoll.Native.loadNativeLibrary(Native.java:219)
at io.netty.channel.epoll.Native.(Native.java:57)
at io.netty.channel.epoll.Epoll.(Epoll.java:39)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at top.hserver.core.server.util.EpollUtil.check(EpollUtil.java:10)
at top.hserver.core.server.HServer.run(HServer.java:51)
at top.hserver.HServerApplication.startServer(HServerApplication.java:156)
at top.hserver.HServerApplication.run(HServerApplication.java:75)
at org.jmqtt.manage.HttpServer.start(HttpServer.java:17)
at org.jmqtt.broker.BrokerController.start(BrokerController.java:242)
at org.jmqtt.broker.BrokerStartup.start(BrokerStartup.java:62)
at org.jmqtt.broker.BrokerStartup.main(BrokerStartup.java:22)
2020-12-29 15:06:59.475 DEBUG PID:[ 30499] 线程名: [ main] i.n.util.internal.NativeLibraryLoader [ 140] : netty_transport_native_epoll_x86_64 cannot be loaded from java.library.path, now trying export to -Dio.netty.native.workdir: /tmp
java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll_x86_64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:349)
at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136)
at io.netty.channel.epoll.Native.loadNativeLibrary(Native.java:219)
at io.netty.channel.epoll.Native.(Native.java:57)
at io.netty.channel.epoll.Epoll.(Epoll.java:39)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at top.hserver.core.server.util.EpollUtil.check(EpollUtil.java:10)
at top.hserver.core.server.HServer.run(HServer.java:51)
at top.hserver.HServerApplication.startServer(HServerApplication.java:156)
at top.hserver.HServerApplication.run(HServerApplication.java:75)
at org.jmqtt.manage.HttpServer.start(HttpServer.java:17)
at org.jmqtt.broker.BrokerController.start(BrokerController.java:242)
at org.jmqtt.broker.BrokerStartup.start(BrokerStartup.java:62)
at org.jmqtt.broker.BrokerStartup.main(BrokerStartup.java:22)
Suppressed: java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll_x86_64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:369)
at java.security.AccessController.doPrivileged(Native Method)
at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:361)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:339)
... 14 common frames omitted
2020-12-29 15:06:59.483 DEBUG PID:[ 30499] 线程名: [ main] i.n.util.internal.NativeLibraryLoader [ 340] : Successfully loaded the library /tmp/libnetty_transport_native_epoll_x86_645207355296361753854.so
2020-12-29 15:06:59.492 INFO PID:[ 30499] 线程名: [ main] top.hserver.core.server.HServer [ 67] : HServer 启动完成
The text was updated successfully, but these errors were encountered: