[jboss-user] [Remoting] - Failed to accept socket connection

buttmanizer do-not-reply at jboss.com
Tue Sep 19 05:43:03 EDT 2006


I'm using jboss4.0.4.GA
i added this in my $jboss_home/server/$my_server/deploy/ejb3.deployer/META-INF/jboss-service.xml

  | <mbean code="org.jboss.remoting.transport.Connector"
  |           xmbean-dd="org/jboss/remoting/transport/Connector.xml"
  |           name="jboss.remoting:type=Connector,transport=socket3843,handler=ejb3">
  |       <depends>jboss.aop:service=AspectDeployer</depends>
  |       <attribute name="InvokerLocator">sslsocket://0.0.0.0:3843</attribute>
  |       <attribute name="Configuration">
  |          <handlers>
  |             <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
  |          </handlers>
  |       </attribute>
  |    </mbean>
  | 

I have an StatefulBean w/ the ff. annotations:

  | @Stateful
  | @Local({RoleLDAO.class})
  | @Remote({RoleRDAO.class})
  | @RemoteBindings({
  |       @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="RoleSFDAOActionSSL"),
  |       @RemoteBinding(jndiBinding="RoleSFDAOAction")
  | })
  | 

I made a keystore, certificate, truststore for the cleient and server as descrived in http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/transport.html

I have a client program with this code:

  | RoleDAO roleDAO = (RoleDAO) context.lookup("RoleSFDAOActionSSL");
  | 
  |   | 
  |   | i got this server error
  |   | 
  |   |   | 17:35:14,231 ERROR [SSLSocketServerInvoker] Failed to accept socket connection
  |   |   | java.lang.reflect.InvocationTargetException
  |   |   |         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  |   |   |         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  |   |   |         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  |   |   |         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  |   |   |         at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:184)
  |   |   |         at org.jboss.remoting.transport.socket.ServerThread.<init>(ServerThread.java:86)
  |   |   |         at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:426)
  |   |   |         at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:388)
  |   |   |         at java.lang.Thread.run(Thread.java:595)
  |   |   | Caused by: java.io.StreamCorruptedException: invalid stream header
  |   |   |         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
  |   |   |         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
  |   |   |         at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:73)
  |   |   |         at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:52)
  |   |   |         at org.jboss.remoting.transport.socket.ServerSocketWrapper.createInputStream(ServerSocketWrapper.java:56)
  |   |   |         at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)
  |   |   |         at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:54)
  |   |   |         at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:50)
  |   |   |         ... 9 more
  |   |   | 
  |   |   | 
  |   | 
  |   | 
  |   | Please help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972519#3972519

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972519



More information about the jboss-user mailing list