[SJN-57] NotContextException error in GenericContext.createSubContext | |
| Status: | Closed |
| Project: | Simple-JNDI |
| Component/s: | |
| Affects Version/s: | 0.10 |
| Fix Version/s: | 0.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Robert M. Zigweid | Assignee: | 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 |