[jboss-jira] [JBoss JIRA] Updated: (JBAS-4461) new InitialContext().rebind("x", null) throws NullPointerException

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Mon Jun 4 09:18:08 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4461?page=all ]

Carlo de Wolf updated JBAS-4461:
--------------------------------

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

> new InitialContext().rebind("x", null) throws NullPointerException
> ------------------------------------------------------------------
>
>                 Key: JBAS-4461
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4461
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Naming
>    Affects Versions: JBossAS-5.0.0.Beta2
>            Reporter: Carlo de Wolf
>         Assigned To: Scott M Stark
>            Priority: Critical
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list