我们这边所遇到的问题的大致情况如下:
我们用的jboss版本是我们这边所遇到的问题的大致情况如下:
我们用的jboss版本是4.3.0.GA_CP03
分为外网系统 和 核心系统 ,外网系统的程序 跟JMS 用的是同一台服务器下的同一个JBOSS,核心系
统单独放在一台服务器的单独JBOSS下 ,两个JBOSS刚启动时 通信正常,当过一个小时后,再次通过JMS发送消
息时会报如下的错误:(我们在WINDOS下不出现这样的错误)
20:22:21,491 ERROR [ServerInvokerCallbackHandler] Error handling callback
org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing
socket connection for InvokerLocator [bisocket://10.1.8.14:282177557/callback?
callbackServerHost=10.1.8.14&callbackServerPort=282177557&callbackServerProtocol=bisocket&clientMa
xPoolSize=1&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&datatype=jms&guid=
a18e-pwcwbr-g50su7es-1-g50sugbn-
2u&isCallbackServer=true&onewayThreadPool=org.jboss.jms.server.remoting.DirectThreadPool&serverSoc
ketClass=org.jboss.jms.server.remoting.ServerSocketWrapper]
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport
(MicroSocketClientInvoker.java:579)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport
(BisocketClientInvoker.java:422)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.remoting.Client.invokeOneway(Client.java:598)
at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallback
(ServerInvokerCallbackHandler.java:826)
at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallbackOneway
(ServerInvokerCallbackHandler.java:697)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.performDelivery
(ServerSessionEndpoint.java:1446)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.handleDelivery
(ServerSessionEndpoint.java:1358)
at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:327)
at org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
at org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle
(MessagingQueue.java:583)
at org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle
(ClusterRoundRobinDistributor.java:79)
at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:610)
at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:506)
at org.jboss.messaging.core.impl.ChannelSupport.handle(ChannelSupport.java:238)
at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.routeInternal
(MessagingPostOffice.java:2212)
at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.route
(MessagingPostOffice.java:499)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage
当发现错误后,重新启动核心系统所在的JBOSS服务可继续获取连接,过一小时后问题再现。
------解决方案--------------------------------------------------------
应该是你的JMS配置文件的问题