Replies: 3 comments
-
今天同样遇到了,啥原因? |
Beta Was this translation helpful? Give feedback.
0 replies
-
执行 sh ./mqbroker -n localhost:9876 --enable-proxy -pc ../conf/rmq-proxy.json ;其中,rmq-proxy.json需要指定 namesrvAddr中如:{ "namesrvAddr": "localhost:9876"} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1、环境
macpro 10.14.2
jdk 1.8.0_391
rocketmq5.1及以上版本
2、问题
在启动 sh ./mqnamesrv 可以正常运行
在启动 sh ./mqbroker -n localhost:9876 --enable-proxy 报错,报错信息如下。
Exception in thread "main" java.lang.UnsatisfiedLinkError: failed to load the required native library at io.netty.handler.ssl.OpenSsl.ensureAvailability(OpenSsl.java:487) at io.netty.handler.ssl.ReferenceCountedOpenSslContext.<init>(ReferenceCountedOpenSslContext.java:208) at io.netty.handler.ssl.OpenSslContext.<init>(OpenSslContext.java:45) at io.netty.handler.ssl.OpenSslServerContext.<init>(OpenSslServerContext.java:349) at io.netty.handler.ssl.OpenSslServerContext.<init>(OpenSslServerContext.java:336) at io.netty.handler.ssl.SslContext.newServerContextInternal(SslContext.java:473) at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:606) at org.apache.rocketmq.proxy.remoting.MultiProtocolTlsHelper.buildSslContext(MultiProtocolTlsHelper.java:97) at org.apache.rocketmq.proxy.remoting.MultiProtocolRemotingServer.loadSslContext(MultiProtocolRemotingServer.java:69) at org.apache.rocketmq.remoting.netty.NettyRemotingServer.<init>(NettyRemotingServer.java:126) at org.apache.rocketmq.proxy.remoting.MultiProtocolRemotingServer.<init>(MultiProtocolRemotingServer.java:51) at org.apache.rocketmq.proxy.remoting.RemotingProtocolServer.<init>(RemotingProtocolServer.java:117) at org.apache.rocketmq.proxy.ProxyStartup.main(ProxyStartup.java:87) Caused by: java.lang.IllegalArgumentException: Failed to load any of the given libraries: [netty_tcnative_osx_x86_64, netty_tcnative_x86_64, netty_tcnative] at io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:104) at io.netty.handler.ssl.OpenSsl.loadTcNative(OpenSsl.java:596) at io.netty.handler.ssl.OpenSsl.<clinit>(OpenSsl.java:136) at org.apache.rocketmq.remoting.netty.TlsHelper.buildSslContext(TlsHelper.java:97) at org.apache.rocketmq.remoting.netty.NettyRemotingServer.loadSslContext(NettyRemotingServer.java:166) at org.apache.rocketmq.remoting.netty.NettyRemotingServer.<init>(NettyRemotingServer.java:126) at org.apache.rocketmq.broker.BrokerController.initializeRemotingServer(BrokerController.java:422) at org.apache.rocketmq.broker.BrokerController.initialize(BrokerController.java:793) at org.apache.rocketmq.broker.BrokerStartup.createBrokerController(BrokerStartup.java:240) at org.apache.rocketmq.proxy.ProxyStartup.createBrokerController(ProxyStartup.java:216) at org.apache.rocketmq.proxy.ProxyStartup.createMessagingProcessor(ProxyStartup.java:174) at org.apache.rocketmq.proxy.ProxyStartup.main(ProxyStartup.java:76) Suppressed: java.lang.UnsatisfiedLinkError: /private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib: dlopen(/private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib, 1): no suitable image found. Did find: /private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib: cannot load 'libnetty_tcnative_osx_x86_6414678062708309309450.dylib' (load command 0x80000034 is unknown) /private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib: cannot load 'libnetty_tcnative_osx_x86_6414678062708309309450.dylib' (load command 0x80000034 is unknown) at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2432) at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2489) at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2689) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2619) at java.base/java.lang.Runtime.load0(Runtime.java:765) at java.base/java.lang.System.load(System.java:1848) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:36) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:344) at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:200) at io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:96) ... 11 more Suppressed: java.lang.UnsatisfiedLinkError: /private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib: dlopen(/private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib, 1): no suitable image found. Did find: /private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib: cannot load 'libnetty_tcnative_osx_x86_6414678062708309309450.dylib' (load command 0x80000034 is unknown) /private/var/folders/3l/_r6sj60518d_bd4hvrdx5vhm0000gn/T/libnetty_tcnative_osx_x86_6414678062708309309450.dylib: cannot load 'libnetty_tcnative_osx_x86_6414678062708309309450.dylib' (load command 0x80000034 is unknown) at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2432) at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2489) at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2689) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2619) at java.base/java.lang.Runtime.load0(Runtime.java:765) at java.base/java.lang.System.load(System.java:1848) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:36) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:378) at java.base/java.security.AccessController.doPrivileged(Native Method) at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:370) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:336) ... 13 more Suppressed: java.lang.UnsatisfiedLinkError: no netty_tcnative_osx_x86_64 in java.library.path: [/Users/fangxin/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2662) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827) at java.base/java.lang.System.loadLibrary(System.java:1884) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:344) at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136) ... 12 more Suppressed: java.lang.UnsatisfiedLinkError: no netty_tcnative_osx_x86_64 in java.library.path: [/Users/fangxin/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2662) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827) at java.base/java.lang.System.loadLibrary(System.java:1884) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:378) at java.base/java.security.AccessController.doPrivileged(Native Method) at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:370) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:336) ... 13 more Suppressed: java.lang.UnsatisfiedLinkError: could not load a native library: netty_tcnative_x86_64 at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:221) at io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:96) ... 11 more Caused by: java.io.FileNotFoundException: META-INF/native/libnetty_tcnative_x86_64.jnilib at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:165) ... 12 more Suppressed: java.lang.UnsatisfiedLinkError: no netty_tcnative_x86_64 in java.library.path: [/Users/fangxin/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2662) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827) at java.base/java.lang.System.loadLibrary(System.java:1884) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:344) at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136) ... 12 more Suppressed: java.lang.UnsatisfiedLinkError: no netty_tcnative_x86_64 in java.library.path: [/Users/fangxin/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2662) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827) at java.base/java.lang.System.loadLibrary(System.java:1884) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:378) at java.base/java.security.AccessController.doPrivileged(Native Method) at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:370) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:336) ... 13 more Suppressed: java.lang.UnsatisfiedLinkError: could not load a native library: netty_tcnative at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:221) at io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:96) ... 11 more Caused by: java.io.FileNotFoundException: META-INF/native/libnetty_tcnative.jnilib at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:165) ... 12 more Suppressed: java.lang.UnsatisfiedLinkError: no netty_tcnative in java.library.path: [/Users/fangxin/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2662) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827) at java.base/java.lang.System.loadLibrary(System.java:1884) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:344) at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136) ... 12 more Suppressed: java.lang.UnsatisfiedLinkError: no netty_tcnative in java.library.path: [/Users/fangxin/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2662) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827) at java.base/java.lang.System.loadLibrary(System.java:1884) at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:378) at java.base/java.security.AccessController.doPrivileged(Native Method) at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:370) at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:336) ... 13 more
如果是去除 --enable-proxy 可以正常启动,加上 --enable-proxy 参数就会报错。
或者单独运行 sh ./mqproxy -n 127.0.0.1:9876 也是会报上面错误
Beta Was this translation helpful? Give feedback.
All reactions