• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception in creating Weblogic JMS bridge to Glassfish

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

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@172.21.135.197:3700
<Aug 24, 2009 12:28:11 PM GMT+05:30> <Warning> <Connector> <BEA-190032> << eis/j ResourceAllocationException thrown by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): "javax.resource.ResourceException: Failed to start the connection ">


Exception in logs:

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)


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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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@172.21.135.197:3700
<Aug 24, 2009 12:28:11 PM GMT+05:30> <Warning> <Connector> <BEA-190032> << eis/j ResourceAllocationException thrown by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): "javax.resource.ResourceException: Failed to start the connection ">



Did you try specifying the system properties ?
 
Vivek Tandon
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried setting com.sun.appserv.iiop.endpoints but still i get the same exception. This exception is coming in appserv-rt.jar which is a glass fish jar.
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vivek Tandon wrote:I tried setting com.sun.appserv.iiop.endpoints but still i get the same exception. This exception is coming in appserv-rt.jar which is a glass fish jar.



After setting the system properties do you still see the warning message ? Have you tried setting the property using the -D syntax ?
 
Vivek Tandon
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After setting com.sun.appserv.iiop.endpoint using -D I will not get warning "WARNING: NAM1005 : No Endpoints selected. Please specify using system property com.sun.appserv.iiop.endpoints."

Below things will come in command window:

Aug 25, 2009 11:38:44 AM com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
Aug 25, 2009 11:38:44 AM com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: sumOfAllWeights = 10
Aug 25, 2009 11:40:47 AM com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> 172.21.135.197:3700
Aug 25, 2009 11:40:47 AM com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: corbaloc url ==> iiop:1.2@172.21.135.197:3700
<Aug 25, 2009 11:41:01 AM 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 ">
Aug 25, 2009 11:41:07 AM com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> 172.21.135.197:3700
Aug 25, 2009 11:41:07 AM com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: corbaloc url ==> iiop:1.2@172.21.135.197:3700
<Aug 25, 2009 11:41:08 AM GMT+05:30> <Warning> <Connector> <BEA-190032> << eis/j
ms/WLSConnectionFactoryJNDIXA > ResourceAllocationException thrown by resource a
dapter on call to ManagedConnectionFactory.createManagedConnection(): "javax.res
ource.ResourceException: Failed to start the connection ">

But still in the log I will be getting same null pointer exception
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is unclear to me from the exception stack you posted, as to why this problem is occurring. Do you have any other details that might give a clue to the problem ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic