java.rmi.ConnectException: Attempt to sendMsg using a closed connection
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy0.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:341)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at com.abc.MyServer.initJMS(MyServer.java:250)
at com.abc.MyServer.MyServer.init(TradeFactoryServer.java:99)
at com.abc.MyServer.main(MyServer.java:612)
MyServer.java:250 looks like this:
QueueConnectionFactory factory = (QueueConnectionFactory) context.lookup(jmsFactory);
Doesn't happen all the time. The pattern is (usually) like this:
startWeblogic
startMyServer (everything is fine)
kill MyServer
startMyServer (get the exception)
startMyServer (get the exception)
startMyServer (get the exception)
. . .
wait a few hours
startMyServer (everything is fine)
kill MyServer
startMyServer (get the exception)
..etc.
"kill MyServer" could be Ctrl-C or exiting after calling queueConnection.stop();
queueReceiver.close();
queueSession.close();
queueConnection.close();
, it doesn't matter, the exception still happens
Could be a JMS problem, could be a JNDI problem, could be something else?
To make this even more fun, it happens on one machine's instance of WebLogic,
but not another's.
Any insights?
-Steve Barber
"Steve Barber" <sba...@randomwalk.com> wrote in message
news:3d80...@newsgroups.bea.com...