Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

NullPointer during JNDI lookup

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am getting a NullPointer from a particular lookup which is puzziling me. The same code is working on our development server but failing on
acceptance testing server. It worked fine till couple of days back and apparently nothing (that I know of) changed in between. Can somebody tell me what could
go wrong ? There is one more thing I want to understand. Going by the stack trace, is it correct to assume that the weblogic server is trying to
"load" the class ( the object of which I am trying to lookup ?).. If correct why should it try to load now? I am sure the class should have been
loaded allready? Or is it that this code is yet to find that the class is already loaded and would not to load it again ...
How expensive is a jndi call (on to a remote jndi server from my application) compared to a database call ? Is the connection to jndi server
persistent or made for each lookup or binding call?
Can somebody help me in understanding these issues.
Thank you for your time and patience.
Nagarjun

Here is the stack trace.
java.lang.NullPointerException
at
weblogic.utils.classloaders.ServletClassFinder.<init>(ServletClassFinder.java:31)
at
weblogic.j2ee.ApplicationManager.getFinder(ApplicationManager.java:262)
at
weblogic.j2ee.ApplicationManager.loadFromNetwork(ApplicationManager.java:241)
at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:175)
at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:90)
at
weblogic.common.internal.WLObjectInputStream.resolveClass(WLObjectInputStream.java:49)
at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.java:191)
at
weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:182)
at
weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:169)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
at
weblogic.rmi.internal.BasicRemoteRef.unmarshalReturn(BasicRemoteRef.java:230)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:254)
at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:220)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy6.lookup(Unknown Source)
at
weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at
com.mycom.myp.security.manager.MYPSecurityManagerImpl.staticGetObject(MYPSecurityManagerImpl.java:67)
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic