0 Replies Latest reply on Jun 22, 2005 8:00 PM by Will Bradley


    Will Bradley Newbie

      I am trying to get an application that simply listens to a socket on the JBoss remoting to work, it works with the sample client. however if i try to telnet to the port it doesn't work. it throws a java.io.StreamCorruptedException seen on line 4 below. We are attempting to get more flexibility with JBoss Remoting. Is there a better way that would accept pretty much any generic stream regardless of "stream header"?

      [java] Starting remoting server with locator uri of: socket://localhost:5400
      [java] Invocation request is: Do something
      [java] Invocation request is: Do something
      [java] (socket.ServerThread 307 ) Failed to initialize
      [java] java.io.StreamCorruptedException: invalid stream header
      [java] at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
      [java] at java.io.ObjectInputStream.(ObjectInputStream.java:253)
      [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:303)
      [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:147)