2 Replies Latest reply on Mar 26, 2013 9:17 PM by gojoke

    The [ Reattach request ] Error when sending a message.

    gojoke Newbie

      The following error occured in our system:

       

      * [New I/O server worker #1-1] 26-Mar 4:57:11,99 WARNING [HornetQPacketHandler]  Reattach request from /XXX.XX.XX.XX:XXXX failed as there is no confirmationWindowSize configured, which may be ok for your system

       

      How to solve this problem?

       

      Enviroment

      OS : CentOS5.5

      ・HornetQ : hornetq-2.2.14.Final

       

      Configation : hornetq-configuration.xml

      <configuration xmlns="urn:hornetq"

                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                     xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">

       

         <paging-directory>${data.dir:../data}/paging</paging-directory>

        

         <bindings-directory>${data.dir:../data}/bindings</bindings-directory>

        

         <journal-directory>${data.dir:../data}/journal</journal-directory>

        

         <journal-min-files>10</journal-min-files>

        

         <large-messages-directory>${data.dir:../data}/large-messages</large-messages-directory>

       

         <connection-ttl-override>86400000</connection-ttl-override>

        

         <connectors>

            <connector name="netty">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>

               <param key="host"  value="${hornetq.remoting.netty.host:0.0.0.0}"/>

               <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>

               <param key="use-nio" value="true" />

            </connector>

            <!--

            <connector name="netty-throughput">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>

               <param key="host"  value="${hornetq.remoting.netty.host:0.0.0.0}"/>

               <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>

               <param key="batch-delay" value="50"/>

            </connector>

            -->

         </connectors>

       

         <acceptors>

            <acceptor name="netty">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>

               <param key="host"  value="${hornetq.remoting.netty.host:0.0.0.0}"/>

               <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>

               <param key="use-nio" value="true" />

            </acceptor>

            <!--

            <acceptor name="netty-throughput">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>

               <param key="host"  value="${hornetq.remoting.netty.host:0.0.0.0}"/>

               <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>

               <param key="batch-delay" value="50"/>

               <param key="direct-deliver" value="false"/>

            </acceptor>

            -->

         </acceptors>

       

         <security-settings>

            <security-setting match="#">

               <permission type="createNonDurableQueue" roles="guest"/>

               <permission type="deleteNonDurableQueue" roles="guest"/>

               <permission type="createDurableQueue" roles="guest"/>

               <permission type="deleteDurableQueue" roles="guest"/>

               <permission type="consume" roles="guest"/>

               <permission type="send" roles="guest"/>

               <permission type="modify" roles="guest"/>

               <permission type="manage" roles="guest"/>

            </security-setting>

         </security-settings>

       

         <address-settings>

            <!--default for catch all-->

            <address-setting match="#">

               <dead-letter-address>jms.queue.DLQ</dead-letter-address>

               <expiry-address>jms.queue.ExpiryQueue</expiry-address>

               <redelivery-delay>0</redelivery-delay>

               <max-size-bytes>10485760</max-size-bytes>      

               <message-counter-history-day-limit>10</message-counter-history-day-limit>

               <address-full-policy>BLOCK</address-full-policy>

            </address-setting>

         </address-settings>

       

      </configuration>

       

      hornetq-jms.xml

          <connection-factory name="QueueConnectionFactory">

               <connectors>

               <connector-ref connector-name="netty"/>

             </connectors>

             <entries>

               <entry name="QueueConnectionFactory"/>

             </entries>

       

             <ha>true</ha>

            <!-- Pause 1 second between connect attempts -->

            <retry-interval>1000</retry-interval>

       

            <!-- Multiply subsequent reconnect pauses by this multiplier. This can be used to

            implement an exponential back-off. For our purposes we just set to 1.0 so each reconnect

            pause is the same length -->

            <retry-interval-multiplier>1.0</retry-interval-multiplier>

       

            <!-- Try reconnecting an unlimited number of times (-1 means "unlimited") -->

            <reconnect-attempts>-1</reconnect-attempts>

             <min-large-message-size>104857600</min-large-message-size>

         </connection-factory>