1 Reply Latest reply on Feb 28, 2007 1:50 AM by Sunil Babu

    SSL on EJB3 not working for jboss4.0.5GA ?

    KiamFei Chin Newbie

      Hi all,
      I follow the instruction as url below on how to configure SSL on EJB3 for my jboss4.0.5GA.

      http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html_single/index.html

      my swing client is giving error as below :
      Caused by: java.io.EOFException: SSL peer shut down incorrectly

      while my jboss server throwing error as below :
      Caused by: java.io.StreamCorruptedException: invalid stream header: 80620103

      Anyone had the same experience ? how did you manage to work it around ? I have been spending 2 days on this and yet to solve it. :(

      thanks,
      kf

        • 1. Re: SSL on EJB3 not working for jboss4.0.5GA ?
          Sunil Babu Newbie

          I have the same problem after I tried to use SSL with jboss-4.0.5.GA. I am getting this exception from server

          00:32:35,114 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.(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.(ObjectInputStream.java:268)
          at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.(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.(ClientSocketWrapper.java:54)
          at org.jboss.remoting.transport.socket.ServerSocketWrapper.(ServerSocketWrapper.java:50)
          ... 9 more



          from client I am getting this exception



          Caused by: java.io.EOFException: SSL peer shut down incorrectly
          at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:321)
          at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
          ... 37 more