<!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;">
    Standalone JMS - connection dropped
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/demichev">Denis Demichev</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/624096#624096">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello All,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Trying to utilize JBoss 5.1.0 JMS server in our project. This is a standalone server without any clustering capabilities.</p><p>Running it as: run.bat -c default -b DTCJDBWFXJM1</p><p>The application with JBoss client tries to connect to the server and works pretty fine for 40-45 minutes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>After that I see an error message (see below) and the application is using fail-over functionality to reconnect to server again and it does.</p><p>I.e. the problem is resolved just by re-connecting again. I cannot say that this could be reproduced with some specific steps, but </p><p>rather I see it sporadically happens under stress.</p><p>Unfortunately I cannot add any additional information from the server logs as soon as there's nothing unusual there - just a standard boot process.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>One more note that potentially can give someone a clue. From time to time under stress again I see that JBoss just stops responding and delivering JMS messages to JMS clients, I'm not sure if that is cause by GC (stop the world?) - I'm using just a set of standard out-of-the-box configuration files with 5-7 JMS queues (all durable).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Would appreciate ideas on why this happens and how to workaround. Although this is not a big issue in DEV environment, potentialy It could be quite annoying to support people who receive e-mails every time some exception occurrs.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here's Exception stacktrace:</p><p>org.jboss.jms.exception.MessagingNetworkFailureException</p><p>&#160;&#160;&#160; at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:240)</p><p>&#160;&#160;&#160; at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:205)</p><p>&#160;&#160;&#160; at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)</p><p>&#160;&#160;&#160; at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$createSessionDelegate$aop(ClientConnectionDelegate.java:186)</p><p>&#160;&#160;&#160; at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeTarget(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)</p><p>......</p><p>Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisocket://DTCJDBWFXJM1:4457/?JBM_clientMaxPoolSize=200&amp;clientLeasePeriod=10000&amp;clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&amp;connectionWait=10&amp;dataType=jms&amp;marshaller=org.jboss.jms.wireformat.JMSWireFormat&amp;numberOfCallRetries=1&amp;pingFrequency=214748364&amp;pingWindowFactor=10&amp;socket.check_connection=false&amp;stopLeaseOnFailure=true&amp;timeout=0&amp;unmarshaller=org.jboss.jms.wireformat.JMSWireFormat&amp;validatorPingPeriod=10000&amp;validatorPingTimeout=5000]</p><p>&#160;&#160;&#160; at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:776)</p><p>&#160;&#160;&#160; at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:426)</p><p>&#160;&#160;&#160; at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)</p><p>.....</p><p>Caused by: java.net.ConnectException: Connection refused: connect</p><p>&#160;&#160;&#160; at java.net.PlainSocketImpl.socketConnect(Native Method)</p><p>&#160;&#160;&#160; at java.net.PlainSocketImpl.doConnect(Unknown Source)</p><p>&#160;&#160;&#160; at java.net.PlainSocketImpl.connectToAddress(Unknown Source)</p><p>&#160;&#160;&#160; at java.net.PlainSocketImpl.connect(Unknown Source)</p><p>&#160;&#160;&#160; at java.net.SocksSocketImpl.connect(Unknown Source)</p><p>&#160;&#160;&#160; at java.net.Socket.connect(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.remoting.transport.socket.SocketClientInvoker$1.run(SocketClientInvoker.java:299)</p><p>&#160;&#160;&#160; at java.security.AccessController.doPrivileged(Native Method)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks!</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/624096#624096">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>