[
https://issues.jboss.org/browse/JBNAME-61?page=com.atlassian.jira.plugin....
]
Dennis Reed updated JBNAME-61:
------------------------------
Steps to Reproduce:
Start a JNDI server (such as the one embedded in JBoss AS).
Run the following from a standalone client:
System.setProperty ( "sun.io.serialization.extendedDebugInfo",
"true" );
Properties p = new Properties ();
p.put ( Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory" );
p.put ( Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"
);
p.put ( Context.PROVIDER_URL, "jnp://127.0.0.1:1099" );
p.put ( "jnp.disableDiscovery", "true" );
new InitialContext( p ).lookup("foo");
was:
System.setProperty ( "sun.io.serialization.extendedDebugInfo",
"true" );
Properties p = new Properties ();
p.put ( Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory" );
p.put ( Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"
);
p.put ( Context.PROVIDER_URL, "jnp://127.0.0.1:1099" );
p.put ( "jnp.disableDiscovery", "true" );
new InitialContext( p ).lookup("foo");
Remote JNDI lookup failure with
sun.io.serialization.extendedDebugInfo
----------------------------------------------------------------------
Key: JBNAME-61
URL:
https://issues.jboss.org/browse/JBNAME-61
Project: JBoss Naming
Issue Type: Bug
Components: jnp-client
Affects Versions: 5.0.3.GA
Reporter: Dennis Reed
Assignee: Dennis Reed
When the system property sun.io.serialization.extendedDebugInfo is set, a remote lookup
fails with the exception:
java.lang.UnsupportedOperationException
at org.jnp.interfaces.FastNamingProperties.toString(FastNamingProperties.java:175)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1387)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at javax.naming.CompoundName.writeObject(CompoundName.java:541)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira