On Wed, May 12, 2004 at 12:13:46AM -0400, graham king wrote: > > Hi All, > > I'm having a hard time trying to figure this error code out. Let me know if you can > help... > > javax.naming.NamingException: Cannot instantiate an IntraVM InitialContext. > Exception: java.lang.NullPointerException null > at > org.openejb.client.LocalInitialContextFactory.getIntraVmContext(LocalInitialContextFactory.java:132) > at > org.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:69) > at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) > at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) > at javax.naming.InitialContext.init(InitialContext.java:219) > at javax.naming.InitialContext.<init>(InitialContext.java:195) > at com.thejanehuts.util.ServiceLocator.<init>(ServiceLocator.java:32) > at com.thejanehuts.util.ServiceLocator.getInstance(ServiceLocator.java:40) > > I've tried to set this one up like all the others, but, as it always seems, I've > created an error of which I do not understand.
Looks like the problem is coming from a null hashtable on the InitialContext constructor. So somewhere in your code there is probably new InitialContext(null) or new InitialContext(). Actually, wait. Maybe not. Is there a "Root Cause" part of that stack trace? Go ahead and post the whole stack trace as it will help me find the issue. -David
