这种情况经常发生在我身上。 我们在开发环境中发现它,大多数时候我们关闭客户端进程而不关闭客户端连接。 一种复制它的简单方法,它只需几秒钟即可从远程主机打开30多个客户端连接,并终止客户端进程。 所以我想如果我有从每个应用服务器到HornetQ服务器的100个客户端连接,并且其中一个appserver崩溃,那么就不会再打开新的客户端连接了。
在我开始并停止许多客户端绑定后,新客户端无法连接到服务器。 我必须重启服务器....谢谢你的帮助..
在服务器端,日志:
2013-07-06 15:31:01 [WARN] org.hornetq.core.server (ManagementServiceImpl.java:426) - HQ222111:调用时发生异常 jms.server上的createTopic java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:601) 在org.hornetq.core.server.management.impl.ManagementServiceImpl.invokeOperation(ManagementServiceImpl.java:843) at org.hornetq.core.server.management.impl.ManagementServiceImpl.handleMessage(ManagementServiceImpl.java:418) at org.hornetq.core.server.impl.ServerSessionImpl.handleManagementMessage(ServerSessionImpl.java:1513) 在org.hornetq.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1274) 在org.hornetq.core.protocol.core.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:445) 在org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:631) 在org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:547) 在org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:523) at org.hornetq.core.remoting.server.impl.RemotingServiceImpl $ DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:564) 在org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:72) 在org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88) 在org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560) 在org.jboss.netty.channel.DefaultChannelPipeline $ DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:787) 在org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:281) 在org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169) 在org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134) 在org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) 在org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560) 在org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555) 在org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) 在org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) 在org.jboss.netty.channel.socket.oio.OioWorker.process(OioWorker.java:71) 在org.jboss.netty.channel.socket.oio.AbstractOioWorker.run(AbstractOioWorker.java:73) 在org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:51) 在org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) 在org.jboss.netty.util.internal.DeadLockProofWorker $ 1.run(DeadLockProofWorker.java:42) 在org.jboss.netty.util.VirtualExecutorService $ ChildExecutorRunnable.run(VirtualExecutorService.java:175) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)引起:java.lang.NullPointerException at org.hornetq.core.postoffice.impl.WildcardAddressManager.addBinding(WildcardAddressManager.java:112) 在org.hornetq.core.postoffice.impl.PostOfficeImpl.addBinding(PostOfficeImpl.java:453) 在org.hornetq.core.server.impl.HornetQServerImpl.createQueue(HornetQServerImpl.java:1850) 在org.hornetq.core.server.impl.HornetQServerImpl.deployQueue(HornetQServerImpl.java:1137) at org.hornetq.jms.server.impl.JMSServerManagerImpl.internalCreateTopic(JMSServerManagerImpl.java:1280) at org.hornetq.jms.server.impl.JMSServerManagerImpl.access $ 800(JMSServerManagerImpl.java:105) at org.hornetq.jms.server.impl.JMSServerManagerImpl $ 2.runException(JMSServerManagerImpl.java:650) at org.hornetq.jms.server.impl.JMSServerManagerImpl.runAfterActive(JMSServerManagerImpl.java:1832) at org.hornetq.jms.server.impl.JMSServerManagerImpl.createTopic(JMSServerManagerImpl.java:637) at org.hornetq.jms.management.impl.JMSServerControlImpl.createTopic(JMSServerControlImpl.java:481) at org.hornetq.jms.management.impl.JMSServerControlImpl.createTopic(JMSServerControlImpl.java:470) ... 33更多2013-07-06 15:31:01 [警告] org.hornetq.core.server(ServerSessionPacketHandler.java:541) - 向客户端发送意外的异常 显示java.lang.NullPointerException 在org.hornetq.core.postoffice.impl.WildcardAddressManager.addBinding(WildcardAddressManager.java:112)
客户端:
引起:javax.jms.JMSException 在org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:378) 在org.hornetq.core.client.impl.ClientSessionImpl.internalCreateQueue(ClientSessionImpl.java:1987) 在org.hornetq.core.client.impl.ClientSessionImpl.createTemporaryQueue(ClientSessionImpl.java:356) 在org.hornetq.core.client.impl.DelegatingSession.createTemporaryQueue(DelegatingSession.java:304) 在org.hornetq.jms.client.HornetQSession.createConsumer(HornetQSession.java:559) 在org.hornetq.jms.client.HornetQSession.createConsumer(HornetQSession.java:378) 在org.hornetq.jms.client.HornetQSession.createConsumer(HornetQSession.java:353) 在com.gamebean.toolkit.jms.hornetq.impl.MessageBridgeImpl.init(MessageBridgeImpl.java:89) ... 131更多引起:HornetQException [errorType = INTERNAL_ERROR message = null] ... 139更多