Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6781

SocketExceptions when using CompressingMarshaller/UnMarshaller

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-5.0.1.GA
    • Remoting
    • None

      Using compression with EJB3 produces lots of socket exceptions in the server log. The frequency of the exceptions seems to increase as the size of transferred data increases or as the speed of the connection decreases.

      2009-04-14 10:57:58,872 DEBUG [org.jboss.remoting.transport.socket.ServerSocketWrapper] (WorkerThread#0[127.0.0.1:2794]) ServerSocketWrapper[Socket[addr=/127.0.0.1,port=2794,localport=3873].f2a5fc] 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:115)
      at org.jboss.remoting.transport.socket.ServerSocketWrapper.close(ServerSocketWrapper.java:56)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:653)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)

      Steps to reproduce:

      1) Enable compression for EJB3:
      In jboss-5.0.1.GA\server\default\deploy\ejb3-connectors-jboss-beans.xml change the line

      <parameter>socket://${jboss.bind.address}:${port}</parameter>

      to

      <parameter>socket://${jboss.bind.address}:${port}/?marshaller=org.jboss.remoting.marshal.compress.CompressingMarshaller&unmarshaller=org.jboss.remoting.marshal.compress.CompressingUnMarshaller</parameter>

      2) Deploy echo.ear

      3) Run the client.jar

      The server.log should have plenty of socket write errors.

        1. sources.jar
          2 kB
        2. echo.ear
          2 kB
        3. client.jar
          3.48 MB

              rsigal@redhat.com Ronald Sigal
              rsmirnov_jira Rostyslav Smirnov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: