aspose file tools*
The moose likes Websphere and the fly likes lookup failing with NPE in clustered environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "lookup failing with NPE in clustered environment" Watch "lookup failing with NPE in clustered environment" New topic
Author

lookup failing with NPE in clustered environment

Zico Gupta
Greenhorn

Joined: Apr 27, 2011
Posts: 10
Hello,
In a clustered environment, NullPointer Exception is getting thrown whenever a specific ejb look up happens. This problem disappears after websphere restart. Following is the stack trace :

javax.naming.NamingException: Error during resolve [Root exception is java.lang.NullPointerException]
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1980)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1883)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1566)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1363)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
.....

The websphere version is 6.1 and ejb is 2.1. This problem is happening only when the system tries to invoke the bean for the first time after installation. Could any one please help to find out the problem?

In the ibm-ejb-jar-ext.xmi, a flag startEJBAtApplicationStart is used and set to true. Is that causing this NPE?


Thanks & Regards,
Zico
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: lookup failing with NPE in clustered environment
 
Similar Threads
EJB application runs as WebSphere Application client, fails as JavaApplication
In which jar the CurrentFactory is found?
Websphere 6.1.0.0 Lookup
J2EE Client not able to look up EJB
lookup exception while deploying application in websphere