Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4461

new InitialContext().rebind("x", null) throws NullPointerException

    XMLWordPrintable

    Details

    • Workaround Description:
      Hide

      Name realName = getInitialContext().getNameParser(name).parse(name);
      ((NamingContext) getInitialContext().lookup("")).getNaming().rebind(realName, null, null);

      Show
      Name realName = getInitialContext().getNameParser(name).parse(name); ((NamingContext) getInitialContext().lookup("")).getNaming().rebind(realName, null, null);

      Description

      String name = "DeepEnvEntryTest";
      getInitialContext().rebind(name, null);

      java.lang.NullPointerException
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:505)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:480)
      at javax.naming.InitialContext.rebind(InitialContext.java:367)
      at org.jboss.ejb3.test.ejbthreeXXX.unit.DeepEnvEntryTestCase.test0(DeepEnvEntryTestCase.java:51)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                starksm64 Scott Stark
                Reporter:
                wolfc Carlo de Wolf
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: