使用公司服务器做mq测试,需要连代理,连代理后,编译器出现错误
网上搜索说关掉防火墙,但是没用
java.lang.IllegalStateException: failed to create a child event loop
at com.alibaba.rocketmq.shade.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:68)
at com.alibaba.rocketmq.shade.io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:49)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:68)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:63)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:54)
at com.alibaba.rocketmq.remoting.netty.NettyRemotingClient.<init>(NettyRemotingClient.java:103)
at com.alibaba.rocketmq.client.impl.MQClientAPIImpl.<init>(MQClientAPIImpl.java:92)
at com.alibaba.rocketmq.client.impl.factory.MQClientInstance.<init>(MQClientInstance.java:109)
at com.alibaba.rocketmq.client.impl.MQClientManager.getAndCreateMQClientInstance(MQClientManager.java:54)
at com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.start(DefaultMQProducerImpl.java:130)
at com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.start(DefaultMQProducerImpl.java:116)
at com.alibaba.rocketmq.client.producer.DefaultMQProducer.start(DefaultMQProducer.java:73)
at T.main(T.java:27)
Caused by: com.alibaba.rocketmq.shade.io.netty.channel.ChannelException: failed to open a new selector
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:143)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:134)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:94)
at com.alibaba.rocketmq.shade.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:64)
... 12 more
Caused by: java.io.IOException: Unable to establish loopback connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)
at java.security.AccessController.doPrivileged(Native Method)
at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:171)
at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
at java.nio.channels.Pipe.open(Pipe.java:155)
at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)
at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:141)
... 15 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)
... 23 more
网上搜索说关掉防火墙,但是没用
java.lang.IllegalStateException: failed to create a child event loop
at com.alibaba.rocketmq.shade.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:68)
at com.alibaba.rocketmq.shade.io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:49)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:68)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:63)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:54)
at com.alibaba.rocketmq.remoting.netty.NettyRemotingClient.<init>(NettyRemotingClient.java:103)
at com.alibaba.rocketmq.client.impl.MQClientAPIImpl.<init>(MQClientAPIImpl.java:92)
at com.alibaba.rocketmq.client.impl.factory.MQClientInstance.<init>(MQClientInstance.java:109)
at com.alibaba.rocketmq.client.impl.MQClientManager.getAndCreateMQClientInstance(MQClientManager.java:54)
at com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.start(DefaultMQProducerImpl.java:130)
at com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.start(DefaultMQProducerImpl.java:116)
at com.alibaba.rocketmq.client.producer.DefaultMQProducer.start(DefaultMQProducer.java:73)
at T.main(T.java:27)
Caused by: com.alibaba.rocketmq.shade.io.netty.channel.ChannelException: failed to open a new selector
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:143)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:134)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:94)
at com.alibaba.rocketmq.shade.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:64)
... 12 more
Caused by: java.io.IOException: Unable to establish loopback connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)
at java.security.AccessController.doPrivileged(Native Method)
at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:171)
at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
at java.nio.channels.Pipe.open(Pipe.java:155)
at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)
at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at com.alibaba.rocketmq.shade.io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:141)
... 15 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)
... 23 more
0 个回复