synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@wso2.com>
Subject Re: Fwd: [jira] Resolved: (HTTPCORE-60) Transport appears to be hanging because an unchecked exception caused the I/O dispatch thread to terminate
Date Fri, 23 Mar 2007 10:48:24 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ant / Oleg<br>
<br>
I can recreate this issue on both Windows and Linux and think its
caused by my code related to use of Pipes.. and I am actively looking
into this right now.. will get back to you on what I find.<br>
<br>
asankha<br>
<br>
ant elder wrote:
<blockquote
 cite="mid71e1b5740703230151o35238107hac1b6806a9bbe23d@mail.gmail.com"
 type="cite">I've tried on several JDKs now and _always_ get similar
intermittent I/O related errors. I can use JMeter directly against
Axis2-1.1.1 without any problems at all, so this does look like some
issue with the NIO transport. Be really good to hear from other Windows
users to see if this is just my specific environment or&nbsp; a more general
problem problem. <br>
  <br>
To recreate:<br>
  <br>
1) build Synapse server sample by running 'ant' in the
samples\axis2Server\src\SimpleStockQuoteService directory<br>
2) start the sample service by running
samples\axis2Server\axis2server.bat
  <br>
3) get the Synapse config&nbsp; (either 8 or 501) from <a
 href="http://people.apache.org/%7Eantelder/temp/">http://people.apache.org/~antelder/temp/</a>,
put in repository\conf\sample and start syanps: bin\synapse.bat
-sample=8
  <br>
4) get the JMeter config test1.jmx from <a
 href="http://people.apache.org/%7Eantelder/temp/">http://people.apache.org/~antelder/temp/</a>,
start Jmeter and File -&gt; Open and point to the test1.jmx file<br>
5) JMeter Run -&gt; Start and after not to long IO errors should appear
in the Syanpse console
  <br>
  <br>
&nbsp;&nbsp; ...ant <br>
  <br>
---------- Forwarded message ----------<br>
  <span class="gmail_quote">From: <b class="gmail_sendername">Asankha
C. Perera</b> &lt;<a href="mailto:asankha@wso2.com">asankha@wso2.com</a>&gt;<br>
Date: Mar 22, 2007 4:58 PM
  <br>
Subject: Re: [jira] Resolved: (HTTPCORE-60) Transport appears to be
hanging because an unchecked exception caused the I/O dispatch thread
to terminate<br>
To: HttpComponents Project &lt;<a
 href="mailto:httpcomponents-dev@jakarta.apache.org">
httpcomponents-dev@jakarta.apache.org</a>&gt;<br>
  <br>
  </span>
  <div bgcolor="#ffffff" text="#000000">Oleg/Ant <br>
  <br>
I am guessing this is something to do with Windows or the JDK you use..
But I am unable to test this week, so will try to my best to try this
sometime next week. As I said, on Linux I have run the system through
thousands of messages and multiple threads concurrently and have fixed
all the issues I came across.<br>
  <br>
So Oleg, I do not see this as a blocker for the <span id="st" name="st"
 class="st">HttpCore</span> release - but
I will use your latest snapshots in Synapse to check on this in future
if it occurs again<br>
  <br>
thanks<br>
asankha<br>
  <br>
Oleg Kalnichevski (JIRA) wrote:
  <blockquote
 cite="http://mid10931418.1174568912176.JavaMail.jira@brutus"
 type="cite">
    <div><span class="e" id="q_1117a963bccf7be7_1">
    <pre>     [ <a
 href="https://issues.apache.org/jira/browse/HTTPCORE-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://issues.apache.org/jira/browse/HTTPCORE-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
</a> ]

Oleg Kalnichevski resolved HTTPCORE-60.
---------------------------------------

    Resolution: Fixed

Anthony
It turned out ClosedChannelException is a checked I/O exception so it cannot kill the I/O
dispatch thread. So, apparently I was wrong in my initial assertion about the cause of the
Synapse I/O transport lockup. I tweaked HttpCore code a little and changed the IOSessionImpl
to catch all ChannelClosedException-s thrown by the underlying byte channel just in case.


Please review the changes and let me know if it is okay to proceed with the release

Oleg

  </pre>
    <blockquote type="cite">
      <pre>Transport appears to be hanging because an unchecked exception caused the
I/O dispatch thread to terminate
----------------------------------------------------------------------------------------------------------


                Key: HTTPCORE-60
                URL: <a
 href="https://issues.apache.org/jira/browse/HTTPCORE-60"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://issues.apache.org/jira/browse/HTTPCORE-60
</a>
            Project: HttpComponents Core
         Issue Type: Bug
   Affects Versions: 4.0-alpha4
           Reporter: ant elder
        Assigned To: Oleg Kalnichevski
            Fix For: 4.0-alpha4



See discussion on synapse-dev mailing list: <a
 href="http://www.nabble.com/Intermittent-IO-Errors-using-Synapse-tf3439957.html"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.nabble.com/Intermittent-IO-Errors-using-Synapse-tf3439957.html
</a>
The transport appears to be hanging because an unchecked exception
caused the I/O dispatch thread to terminate. I believe there are several
different types of problems (at least two) that we are seeing here.

[I/O reactor worker thread 5] ERROR ServerHandler - I/O Error : null
    </pre>
      <blockquote type="cite">
        <pre>java.nio.channels.ClosedChannelException
        at
sun.nio.ch.SocketChannelImpl.ensureReadOpen(SocketChannelImpl.java:112)
        at
sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:139)

      </pre>
      </blockquote>
    </blockquote>
    <pre>  </pre>
    </span></div>
  </blockquote>
  </div>
---------------------------------------------------------------------
To unsubscribe, e-mail: <a
 href="mailto:httpcomponents-dev-unsubscribe@jakarta.apache.org"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">httpcomponents-dev-unsubscribe@jakarta.apache.org</a>
For additional commands, e-mail: <a
 href="mailto:httpcomponents-dev-help@jakarta.apache.org"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">httpcomponents-dev-help@jakarta.apache.org</a>
</blockquote>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message