<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Issue (java.io.EOFException) related to clientLeasePeriod
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/abhatia">abhatia</a> in <i>JBoss Remoting</i> - <a href="http://community.jboss.org/message/608460#608460">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>We have migrated our application from JBoss-4.0.3SP1 to JBoss-5.1.0.GA. We are using ejb2 & messaging. The messaging is highly available part of the application. In our application, we have not touched/modified/overridden any functionality/implementation related to jboss messaging & remoting and rely on default implemntation/functionality provided by JBoss AS. We have only created multiple topics using org.jboss.jms.server.destination.TopicService.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Following exception appears on server side:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Application error detected : WorkerThread#2[127.0.0.1:2440] exception occurred during first invocation</p><p>java.io.EOFException</p><p>        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:693)</p><p>        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)</p><p>        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>On further analysis it has been found that </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>(here we are talking about <jboss_home>\server\<config>\deploy-hasingleton\<em><strong>messaging\remoting-bisocket-service.xml</strong></em>)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1) if clientLeasePeriod is set to 0 then exception disappears</p><p>2) if clientLeasePeriod is non-zero then </p><p>     a) if clientLeasePeriod > validatorPingPeriod </p><p>          and either clientLeasePeriod or validatorPingPeriod or both are not divisible by 10 </p><p>          then exception disappears</p><p>     b) if clientLeasePeriod > validatorPingPeriod and divisible by 10 </p><p>          then exception appears</p><p>     c) if clientLeasePeriod < validatorPingPeriod then exception appears (this situation is justifiable as explained above in this forum/discussion).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Please help me to understand the reason for the issue & the feasible solutions for the same. Right now we are able to temporarily fix it using scenario 2)a).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is our "<em><strong>messaging\remoting-bisocket-service.xml</strong></em>"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><!--</p><p>     Standard bisocket-based Remoting service deployment descriptor.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>     $Id: remoting-bisocket-service.xml,v 1.1.2.2 2011/02/23 03:16:14 abhatia Exp $</p><p> --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><server></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- Standard bisocket connector - the bisocket transport only opens connection from client->server</p><p>        so can be used with firewalls where only outgoing connections are allowed.</p><p>        For examples of HTTP and SSL transports see docs/examples --></p><p>   <mbean code="org.jboss.remoting.transport.Connector"</p><p>          name="jboss.messaging:service=Connector,transport=bisocket"</p><p>          display-name="Bisocket Transport Connector"></p><p>      <attribute name="Configuration"></p><p>         <config></p><p>            <invoker transport="bisocket"></p><p>            </p><p>               <!-- There should be no reason to change these parameters - warning!</p><p>                    Changing them may stop JBoss Messaging working correctly -->            </p><p>               <attribute name="marshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute></p><p>               <attribute name="unmarshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute></p><p>               <attribute name="dataType" isParam="true">jms</attribute></p><p>               <attribute name="socket.check_connection" isParam="true">false</attribute>               </p><p>               <attribute name="serverBindAddress">192.168.5.206</attribute></p><p>               <attribute name="serverBindPort">${jboss.messaging.connector.bisocket.port:4457}</attribute></p><p>               <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute></p><p>               <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute></p><p>           </p><p>               <attribute name="numberOfCallRetries" isParam="true">1</attribute></p><p>               <attribute name="pingFrequency" isParam="true">214748364</attribute></p><p>               <attribute name="pingWindowFactor" isParam="true">10</attribute></p><p>               <attribute name="onewayThreadPool">org.jboss.jms.server.remoting.DirectThreadPool</attribute>               </p><p>               <!-- End immutable parameters --></p><p>               </p><p>               <attribute name="stopLeaseOnFailure" isParam="true">true</attribute></p><p>               </p><p>               <!-- Periodicity of client pings. Server window by default is twice this figure -->                               </p><p>               <attribute name="clientLeasePeriod" isParam="true">123456</attribute></p><p>               <attribute name="validatorPingPeriod" isParam="true">98765</attribute></p><p>               <attribute name="validatorPingTimeout" isParam="true">5000</attribute></p><p>               <attribute name="registerCallbackListener">false</attribute></p><p>                          </p><p>                <attribute name="timeout" isParam="true">0</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>               <!-- Number of seconds to wait for a connection in the client pool to become free --></p><p>                <attribute name="connectionWait" isParam="true">10</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>               <!-- Max Number of connections in client pool. This should be significantly higher than</p><p>                    the max number of sessions/consumers you expect --></p><p>               <attribute name="JBM_clientMaxPoolSize" isParam="true">200</attribute></p><p>               </p><p>               <!-- The maximum time to wait before timing out on trying to write a message to socket for delivery --></p><p>               <attribute name="callbackTimeout">10000</attribute> </p><p>               </p><p>               <!-- Use these parameters to specify values for binding and connecting control connections to </p><p>                    work with your firewall/NAT configuration</p><p>               <attribute name="secondaryBindPort">xyz</attribute>                           </p><p>               <attribute name="secondaryConnectPort">abc</attribute>               </p><p>               --></p><p>                          </p><p>            </invoker></p><p>            <handlers></p><p>               <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler></p><p>            </handlers></p><p>         </config></p><p>      </attribute></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></server></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/608460#608460">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>