This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[SJN-57] NotContextException error in GenericContext.createSubContext
Created: Mon, 14 Feb 2005 18:30:28 -0800 (PST)  Updated: Tue, 15 Feb 2005 01:34:21 -0800 (PST)

Status:Closed
Project:Simple-JNDI
Component/s:
Affects Version/s:0.10
Fix Version/s:0.11

Type:BugPriority: Major
Reporter:Robert M. ZigweidAssignee:Robert M. Zigweid
Resolution:Fixed 
Environment:


 Description   
Posting for Henri because he MAILED IT instead of posted it ;)

Found a bug with GenericContext. If I try to do: createSubcontext("path") it falls over with a NotContextException, because it's looking for the context at some point in its list of contexts and it's not there yet (I guess):

Creating: path
javax.naming.NotContextException
        at org.osjava.jndi.AbstractContext.getNameParser(AbstractContext.java:634)
        at org.osjava.jndi.AbstractContext.getNameParser(AbstractContext.java:641)
        at org.osjava.jndi.GenericContext.createSubcontext(GenericContext.java:160)
        at org.osjava.jndi.AbstractContext.createSubcontext(AbstractContext.java:605)
        at org.osjava.sj.loader.JndiLoader.load(JndiLoader.java:112)
        at org.osjava.sj.loader.JndiLoader.loadDirectory(JndiLoader.java:73)


Hen
Comment by tigran [ Mon, 14 Feb 2005 18:31:21 -0800 (PST) ]
Should have been assigned to me, oops.
Comment by tigran [ Tue, 15 Feb 2005 01:34:13 -0800 (PST) ]
I could not directly reproduce this error. I did find something related that was broken in GenericContext.createSubContext() however, that was fixed. There is now a test case for this issue.

Resolved r1569