Michaël Mathieu created AS7-3799:
------------------------------------
Summary: Problem with a remote EJB: java.io.StreamCorruptedException: invalid
stream header: 0000000C
Key: AS7-3799
URL:
https://issues.jboss.org/browse/AS7-3799
Project: Application Server 7
Issue Type: Bug
Components: EJB
Affects Versions: 7.1.0.Final
Reporter: Michaël Mathieu
Assignee: jaikiran pai
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
properties.put(Context.PROVIDER_URL, "127.0.0.1:4447");
Context ctx = new InitialContext(properties);
ITestTransactionRemote beanEJB3 = (ITestTransactionRemote)
ctx.lookup("TestTransactionBean/remote");
That generates:
javax.naming.CommunicationException: Could not obtain connection to any of these urls:
127.0.0.1:4447 and discovery failed with error: javax.naming.CommunicationException:
Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
[Root exception is javax.naming.CommunicationException: Failed to retrieve stub from
server /127.0.0.1:4447 [Root exception is java.io.StreamCorruptedException: invalid stream
header: 0000000C]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sicpa.training.ejb.CallEJB.main(CallEJB.java:38)
Caused by: javax.naming.CommunicationException: Failed to retrieve stub from server
/127.0.0.1:4447 [Root exception is java.io.StreamCorruptedException: invalid stream
header: 0000000C]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:327)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
... 4 more
Caused by: java.io.StreamCorruptedException: invalid stream header: 0000000C
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:312)
... 5 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira