<!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="https://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;">
    Re: WorkerThread exception occured .... InvocationTargetException / SocketTimeoutException
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/redCar">red Car</a> in <i>JBoss Remoting</i> - <a href="https://community.jboss.org/message/724828#724828">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hallo Ron,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>you are right, the new port for workerthread is created by ServerSocket.accept(). That I meant with prefered.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My very little test program can call for example the SFSB-method 24 times. In the server log I can see such lines:</p><p>2012-03-15 13:16:52,340 INFO&#160; [STDOUT] (WorkerThread#0[192.168.7.3:2435]) -------&gt; (86)ApplMeldMonitorBean.getCrossReferences ...</p><p>2012-03-15 13:16:53,340 INFO&#160; [STDOUT] (WorkerThread#0[192.168.7.3:2436]) -------&gt; (87)ApplMeldMonitorBean.getCrossReferences ...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>After some calls I can get this:</p><p>WorkerThread#1[192.168.7.3:<strong>2437</strong>] exception occurred during first invocation java.lang.reflect.InvocationTargetException</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>For example with netstat I can see, that <strong>2437</strong> is a used port. I am wondering that I could recognize that this port is used by my testprogram istself.</p><p>But at this time the program will be blocked for some time. For test I have activated another network card, because I hoped, that with special IP an only one jboss-app on this IP,</p><p>there should be no port problem anymore. But there is exactly the same problem.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, in the example the port <strong>2437</strong> blocks, and it is used by the pid itself. I don't understand this at the moment.</p><p>You wrote first, that it could be, that there can not be sent this header-information during the socket-port-creation. </p><p>Such thing should be impossible, it's crazy. The server and client are running on the same machine, no firewall or anything between.</p><p>Although the program is running further after the socket timeout exception. I can call the method again until the next exception.</p><p>And anyway, this problem I have not on my development machine, and not on some test machines, but on three customer machines.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Werner</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/724828#724828">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting at <a href="https://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>