[
http://jira.jboss.com/jira/browse/JBAS-1484?page=comments#action_12315506 ]
Jens Schumann commented on JBAS-1484:
-------------------------------------
Still can't reproduce it with a simple test application ( because I don't have
access to the sources causing the issue).
If have tracked down the code placing the CompoundName to the ProperyMap. Its a
simple new InitialContext() with a ProviderURL of jnp://host:port. Value is a
CompoundName() is ""
at org.jboss.util.property.PropertyMap.put(PropertyMap.java:162)
at
org.jnp.interfaces.NamingContext.parseNameForScheme(NamingContext.java:378)
at
org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:41)
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)
> ClassCastException while creating JNDI SubContext
> -------------------------------------------------
>
> Key: JBAS-1484
> URL: http://jira.jboss.com/jira/browse/JBAS-1484
> Project: JBoss Application Server
> Type: Bug
> Components: Naming
> Versions: JBossAS-4.0.1 Final
> Reporter: Jens Schumann
>
>
> Creating a subcontext from a servlet failes with a ClassCastExeception.
> java.lang.ClassCastException
> at org.jboss.util.property.PropertyMap.remove(PropertyMap.java:198)
> at org.jnp.interfaces.NamingContext.getEnv(NamingContext.java:1299)
> at
> org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:867)
> at
> org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:858)
> at
> javax.naming.InitialContext.createSubcontext(InitialContext.java:413)
> The debugger shows a CompoundName instance for the value jnp.parsedName
> instead of a String. I was unable to create a testcase because I don't know
> how to place the CompoundName instance this far.
> Will examine the issue more closely.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development