Hornetq无法创建连接

时间:2015-02-07 13:45:32

标签: java jms jboss7.x netty hornetq

我正在使用Hornetq服务器进行JMS通信。连接建立多次,但在某些情况下,我无法创建一个连接,提供消息“无法创建会话工厂”或中断的异常 堆栈跟踪如下,

Caused by: javax.jms.JMSException: Failed to create session factory
      [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:587)
      [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createQueueConnection(HornetQConnectionFactory.java:119)
      [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createQueueConnection(HornetQConnectionFactory.java:114)
      [java]     at com.aircell.abs.acpu.framework.AcpuGenericQueue.<init>(AcpuGenericQueue.java:79)
      [java]     at com.aircell.abs.acpu.framework.AcpuSendQueue.<init>(AcpuSendQueue.java:58)
      [java]     at com.aircell.abs.acpu.framework.AcpuSendQueue.replyMessage(AcpuSendQueue.java:100)
      [java]     at com.aircell.abs.acpu.networkcontrol.NetworkControlServiceImpl$QueueHandler.handleMessage(NetworkControlServiceImpl.java:167)
      [java]     ... 9 more
      [java] Caused by: org.hornetq.api.core.HornetQInterruptedException: java.lang.InterruptedException
      [java]     at org.hornetq.core.remoting.impl.netty.NettyConnection.write(NettyConnection.java:244)
      [java]     at org.hornetq.core.protocol.core.impl.ChannelImpl.send(ChannelImpl.java:267)
      [java]     at org.hornetq.core.protocol.core.impl.ChannelImpl.send(ChannelImpl.java:194)
      [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl$PingRunnable.send(ClientSessionFactoryImpl.java:1765)
      [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1369)
      [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:1069)
      [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:246)
      [java]     at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:828)
      [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:583)
      [java]     ... 15 more
      [java] Caused by: java.lang.InterruptedException
      [java]     at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1301)
      [java]     at java.util.concurrent.Semaphore.acquire(Semaphore.java:317)
      [java]     at org.hornetq.core.remoting.impl.netty.NettyConnection.write(NettyConnection.java:175)
      [java]     ... 23 more

0 个答案:

没有答案