1 Reply Latest reply on Dec 12, 2003 2:24 AM by Adrian Brock

    Connection reset problem

    jav_aix Newbie

      I create 2 topic in destination, one is:

      <mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=SyncMessageTopic">
       <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
       <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
       <attribute name="SecurityConf">
       <security>
       <role name="guest" read="true" write="true"/>
       <role name="mcc" read="true" write="true" create="true"/>
       </security>
       </attribute>
       </mbean>
      anthor is:
      <mbean code="org.jboss.mq.server.jmx.Topic"
       name="jboss.mq.destination:service=Topic,name=RulesMessageTopic">
       <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
       <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
       <attribute name="SecurityConf">
       <security>
       <role name="guest" read="true" write="true"/>
       <role name="mcc" read="true" write="true" create="true"/>
       </security>
       </attribute>
       </mbean>

      when i publish a message to RulesMessageTopic destination, there have a exception like this:
      2003-12-12 15:35:27,000 WARN [org.jboss.mq.il.oil.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(ObjectInputStream.java:2313)
       at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
       at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
       at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
       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:534)


      I print my ObjectMessage's published to RulesMessageTopic info:
      Begain send a Sync Message to GUI client!
      Send Sync Message = org.jboss.mq.SpyObjectMessage {
      Header {
       jmsDestination : null
       jmsDeliveryMode : -1
       jmsExpiration : 0
       jmsPriority : -1
       jmsMessageID : null
       jmsTimeStamp : 0
       jmsCorrelationID: null
       jmsReplyTo : null
       jmsType : null
       jmsRedelivered : false
       jmsPropertiesReadWrite:true
       msgReadOnly : false
       producerClientId: ID:3
      }
      }
      End send Sync Message

      but when i publish a objectmessage to SyncMessageTopic detination, there
      didn't have any exception

        • 1. Connection reset problem
          Adrian Brock Master

          I create 2 topic in destination, one is:

          <mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=SyncMessageTopic">
           <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
           <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
           <attribute name="SecurityConf">
           <security>
           <role name="guest" read="true" write="true"/>
           <role name="mcc" read="true" write="true" create="true"/>
           </security>
           </attribute>
           </mbean>
          anthor is:
          <mbean code="org.jboss.mq.server.jmx.Topic"
           name="jboss.mq.destination:service=Topic,name=RulesMessageTopic">
           <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
           <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
           <attribute name="SecurityConf">
           <security>
           <role name="guest" read="true" write="true"/>
           <role name="mcc" read="true" write="true" create="true"/>
           </security>
           </attribute>
           </mbean>

          when i publish a message to RulesMessageTopic destination, there have a exception like this:
          2003-12-12 15:35:27,000 WARN [org.jboss.mq.il.oil.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(ObjectInputStream.java:2313)
           at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
           at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
           at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
           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:534)


          I print my ObjectMessage's published to RulesMessageTopic info:
          Begain send a Sync Message to GUI client!
          Send Sync Message = org.jboss.mq.SpyObjectMessage {
          Header {
           jmsDestination : null
           jmsDeliveryMode : -1
           jmsExpiration : 0
           jmsPriority : -1
           jmsMessageID : null
           jmsTimeStamp : 0
           jmsCorrelationID: null
           jmsReplyTo : null
           jmsType : null
           jmsRedelivered : false
           jmsPropertiesReadWrite:true
           msgReadOnly : false
           producerClientId: ID:3
          }
          }
          End send Sync Message

          but when i publish a objectmessage to SyncMessageTopic detination, there
          didn't have any exception