facebook

Exception while getting InitialContext

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #277549 Reply

    Nehal Vaidya
    Member

    Hello, I am using MyEclipse 4.0 with Weblogic 8.1 sp3. I am getting the following exception when I try to get the initial context to access the stateless session EJBs deployed to the Weblogic server. This does not happen when teh code is deployed to my Linux servers. I am able to run the client which can get the initialcontext and call the EJB.

    java.lang.NullPointerException
    at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGenerator.java:792)
    at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:765)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:810)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:481)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:444)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:350)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:313)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    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.ntrs.aln.events.EventReportManager.getTriggerServices(EventReportManager.java:371)
    at com.ntrs.aln.events.EventReportManager.run(EventReportManager.java:203)
    ————— nested within: ——————
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.jndi.internal.ServerNamingNode_813_WLStub ] – with nested exception:
    [java.lang.NullPointerException]
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:814)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:481)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:444)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:350)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:313)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    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.ntrs.aln.events.EventReportManager.getTriggerServices(EventReportManager.java:371)
    at com.ntrs.aln.events.EventReportManager.run(EventReportManager.java:203)
    java.lang.NullPointerException
    at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGenerator.java:792)
    at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:765)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:810)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:481)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:444)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:350)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:313)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    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.ntrs.aln.events.EventReportManager.getTriggerServices(EventReportManager.java:371)
    at com.ntrs.aln.events.EventReportManager.run(EventReportManager.java:203)
    ————— nested within: ——————
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.jndi.internal.ServerNamingNode_813_WLStub ] – with nested exception:
    [java.lang.NullPointerException]
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:814)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:481)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:444)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:350)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:313)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    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.ntrs.aln.events.EventReportManager.getTriggerServices(EventReportManager.java:371)
    at com.ntrs.aln.events.EventReportManager.run(EventReportManager.java:203)

    #277555 Reply

    Loyal Water
    Member

    Are you able to start the Weblogic server without errors through MyEclipse ?

    #277556 Reply

    Nehal Vaidya
    Member

    Yes, the weblogic server comes up fine with all the EJBs deployed. I am able to access my deployed app through the browser client. IT is only when I try to access the EJB via a standalone client that I am getting the error. Please let me know if you need additional information…

    #277658 Reply

    Loyal Water
    Member

    This message has not been recovered.

    #278734 Reply

    Nehal Vaidya
    Member

    Does anybody else out there have this issue. I am able to locate the EJBs deployed on my app server if I run my standalone app (which accesses the deployed EJB) outside of MyEclipse)

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Exception while getting InitialContext

You must be logged in to post in the forum log in