Issue

When trying to sent a JMS message to a remote Weblogic Application Server the following Exception is raised:

2011-11-29 09:42:00,512[Thread-7]DEBUG RequestSender -Releasing resources
2011-11-29 09:42:00,512[Thread-7]DEBUG ChargerPinger -method : void pingPortalServer()
2011-11-29 09:42:00,518[Thread-7]ERROR PortalJMSSender -Error during portal queue lookup
java.net.ConnectException: t3://12.94.2.172:7501: Bootstrap to appdev1.sim-corp.com/12.94.2.172:7501 failed. It is likely that the remote side declared peer gone on this JVM
   at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:199)
   at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
   at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:296)
   at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
   at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
   at javax.naming.spi.NamingManager.getInitialContext(libgcj.so.7rh)
   at javax.naming.InitialContext.getDefaultInitCtx(libgcj.so.7rh)
   at javax.naming.InitialContext.getURLOrDefaultInitCtx(libgcj.so.7rh)
   at javax.naming.InitialContext.lookup(libgcj.so.7rh)
   at com.fizzy.PortalJMSSender.<init>(PortalJMSSender.java:65)

Solution

- Make sure that Remote weblogic server is up and running. Verify the host and port credentials are valid. At times even if the server is up but did go down, it may fail to connect, so restart your client app to reset the connection state.

Also make sure that JVM version of the client and destination the same or compatible else this error will occur.