2 Replies Latest reply on Sep 21, 2007 7:38 AM by b_rv21

    Unable to get remote interface for bean[jboss 4.2.1]

    b_rv21

      I have setup jboss 4.2.1
      On this , I have setup latest libraries for jboss messaging 1.4.0 CR2, jboss transactions 4.2.3 and jbossws 2.0.1

      After these changes, I am able to start server without problems
      I have a bean deployed

      I am able to lookup home interface successfully from remote client
      But when I try to get remote interface(create call), I get a marshall exception[OptionalDataException]

      Following is the error message on the server side


      java.io.EOFException
      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(Se
      rverThread.java:526)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.j
      ava:369)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.jav
      a:165)

      I replaced the jboss-remoting jar in ..../server/default/lib with an older version as mentioned in an other post. But, the server starts with a lot of exceptions when doing so..

      Please help..

        • 1. Re: Unable to get remote interface for bean[jboss 4.2.1]
          b_rv21

          Hi,
          I have got over this problem(but stuck with another)
          I copied the Jboss remoting jars(Jboss remoting 2.2.0GA)
          When I try getting remote interface by .create, ejbCreate is getting called. There is no EOFException on the server side

          Instead, I am getting this error in server.log


          2007-09-21 12:04:34,179 DEBUG [org.jboss.remoting.transport.socket.ServerSocketWrapper] unable to writing CLOSING byte
          java.net.SocketException: Software caused connection abort: socket write error
          at java.net.SocketOutputStream.socketWrite0(Native Method)
          at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
          at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
          at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
          at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
          at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1631)
          at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:666)
          at org.jboss.remoting.transport.socket.ServerSocketWrapper.close(ServerSocketWrapper.java:57)
          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:475)
          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:159)
          2007-09-21 12:04:34,179 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] unable to close output stream



          Client encounters MarshallException


          Please help..

          • 2. Re: Unable to get remote interface for bean[jboss 4.2.1]
            b_rv21

            I was able to solve this problem
            My ejb was compiled on jdk1.4 and put in jboss4.2.1 which uses jdk1.5
            My client code was compiled on jdk1.4

            What I did was...

            1) compiled ejb classes on jdk1.5 and deployed into jboss
            2) compiled client code on jdk1.5 and invoked the bean


            IT WORKED!!