users@glassfish.java.net

Exception in creating Weblogic JMS bridge to Glassfish

From: <glassfish_at_javadesktop.org>
Date: Mon, 24 Aug 2009 21:19:16 PDT

Hi,

I am trying to make a JMS bridge from Weblogic 9.2 queue to Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs) queue. I am getting a null pointer exception when weblogic is trying to connect to glassfish and I am not able to find the reason. The Java Version is 1.5.0_03. Below are the logs I am getting.

Logs in command window:

[i]Aug 24, 2009 12:27:14 PM com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
WARNING: NAM1005 : No Endpoints selected. Please specify using system property com.sun.appserv.iiop.endpoints.
Aug 24, 2009 12:27:16 PM com.sun.appserv.naming.RoundRobinPolicy getEndpointForProviderURL
WARNING: NAM1001: No Endpoints selected in com.sun.appserv.iiop.endpoints property. Using JNDI Provider URL iiop://172.21.135.197:3700 instead
Aug 24, 2009 12:27:56 PM com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
Aug 24, 2009 12:27:56 PM com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: sumOfAllWeights = 10
Aug 24, 2009 12:28:02 PM com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i ] ==> 172.21.135.197:3700
Aug 24, 2009 12:28:02 PM com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: corbaloc url ==> iiop:1.2_at_172.21.135.197:3700
<Aug 24, 2009 12:28:11 PM GMT+05:30> <Warning> <Connector> <BEA-190032> << eis/jms/WLSConnectionFactoryJNDIXA > ResourceAllocationException thrown by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): "javax.resource.ResourceException: Failed to start the connection ">[/i]

Exception in logs:

[i]Exception:java.lang.NullPointerException
                at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:385)
                at javax.naming.InitialContext.lookup(InitialContext.java:351)
                at weblogic.jms.adapter.JMSBaseConnection.startInternal(JMSBaseConnection.java:261)
                at weblogic.jms.adapter.JMSBaseConnection.start(JMSBaseConnection.java:240)
                at weblogic.jms.adapter.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:190)
                at weblogic.connector.security.layer.AdapterLayer.createManagedConnection(AdapterLayer.java:802)
                at weblogic.connector.outbound.ConnectionFactory.createResource(ConnectionFactory.java:91)
                at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1096)
                at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:346)
                at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:294)
                at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:277)
                at weblogic.connector.outbound.ConnectionPool.reserveResource(ConnectionPool.java:606)
                at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:271)
                at weblogic.connector.outbound.ConnectionManagerImpl.getConnectionInfo(ConnectionManagerImpl.java:352)
                at weblogic.connector.outbound.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:307)
                at weblogic.connector.outbound.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:115)
                at weblogic.jms.adapter.JMSBaseConnectionFactory.getTargetConnection(JMSBaseConnectionFactory.java:123)
                at weblogic.jms.bridge.internal.MessagingBridge.getConnections(MessagingBridge.java:860)
                at weblogic.jms.bridge.internal.MessagingBridge.run(MessagingBridge.java:1051)
                at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
                at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
                at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)[/i]

We have included following jars in the weblogic CLASSPATH (in the same order):
appserv-rt.jar
javaee.jar
imqjmsra.jar
rt.jar
appserv-deployment-client.jar
appserv-ext.jar
appserv-admin.jar

Connection settings:
Connection URL: iiop://localhost:3700
Initial Context Factory: com.sun.appserv.naming.S1ASCtxFactory

If anyone know what is the problem please help me.

Thanks,
Vivek
[Message sent by forum member 'vivektandon' (vivektandon007_at_yahoo.co.in)]

http://forums.java.net/jive/thread.jspa?messageID=361812