1 Reply Latest reply on Nov 12, 2003 4:48 AM by steinarrune

    Help: Connection failure (1).

    steinarrune

      Hi

      JBOSS 3.2.1:
      I am getting the OILServerILService error from JBoss server when the network is failing (if I unplug the cable it appears shortly after). I think perhaps it is realted to JMS pinging and that it perhaps resolves the hostname differently when the netowkr is detached. I have tried the hostname argument in run.bat without success.

      How can I solve it?

      Error is show below

      11:39:31,343 WARN [OILServerILService] Connection failure (1).
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
      :2133)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
      InputStream.java:2316)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
      am.java:2383)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
      .java:2455)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt
      ream.java:2604)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.
      java:205)
      at java.lang.Thread.run(Thread.java:536)
      11:39:31,343 WARN [OILServerILService] Connection failure (1).
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
      :2133)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
      InputStream.java:2316)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
      am.java:2383)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
      .java:2455)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt
      ream.java:2604)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.
      java:205)
      at java.lang.Thread.run(Thread.java:536)
      11:40:11,921 WARN [Connection] Connection failure:
      org.jboss.mq.SpyJMSException: Connection Failed; - nested throwable: (java.net.S
      ocketException: Connection reset by peer: socket write error)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:718)

        • 1. 3856694
          steinarrune

          I had to extend the ejb-jar.xml by

          <role-name>bankCustomer</role-name>

          <ejb-name>CustomerBean</ejb-name>
          <method-intf>LocalHome</method-intf>
          <method-name>*</method-name>


          <ejb-name>CustomerBean</ejb-name>
          <method-intf>Local</method-intf>
          <method-name>*</method-name>



          <ejb-name>TxBean</ejb-name>
          <method-intf>LocalHome</method-intf>
          <method-name>*</method-name>



          <ejb-name>TxBean</ejb-name>
          <method-intf>Local</method-intf>
          <method-name>*</method-name>