Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 28034 invoked from network); 29 Nov 2010 14:14:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 14:14:01 -0000 Received: (qmail 54809 invoked by uid 500); 29 Nov 2010 14:14:00 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 54718 invoked by uid 500); 29 Nov 2010 14:14:00 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 54708 invoked by uid 99); 29 Nov 2010 14:13:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 14:13:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 14:13:59 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oATEDc1j020090 for ; Mon, 29 Nov 2010 14:13:38 GMT Message-ID: <4501491.16681291040018656.JavaMail.jira@thor> Date: Mon, 29 Nov 2010 09:13:38 -0500 (EST) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Subject: [jira] Commented: (HTTPCORE-243) NPE in DefaultClientIOEventDispatch#inputReady In-Reply-To: <10702711.6271290950475188.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCORE-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964760#action_12964760 ] Oleg Kalnichevski commented on HTTPCORE-243: -------------------------------------------- Synchronisation code in the IOSessionImpl changed quite a bit and this must have trigged some kind of race condition in HttpCore / NHTTP stack, which was previously undetected. The usual delights of the non-blocking I/O model. I think all that needs to be done to fix the problem is to tweak the Synapse code to retain the 'http.connection' attribute in the session context. Oleg > NPE in DefaultClientIOEventDispatch#inputReady > ---------------------------------------------- > > Key: HTTPCORE-243 > URL: https://issues.apache.org/jira/browse/HTTPCORE-243 > Project: HttpComponents HttpCore > Issue Type: Bug > Components: HttpCore NIO > Affects Versions: 4.1 > Environment: Linux 2.6.18-6-amd64, Java 6 Update 21, 32bit > Reporter: Eric Hubert > Attachments: synapse_session_wire.log > > > While using Synapse 1.2 with httpcore-nio 4.1 the following exceptions occurs > WARN 2010-11-27 23:55:07,737 [http-Sender I/O dispatcher-1][][] org.apache.synapse.transport.nhttp.HttpCoreNIOSender 'System may be unstable: IOReactor encountered a runtime exception : null' > java.lang.NullPointerException > at org.apache.http.impl.nio.DefaultClientIOEventDispatch.inputReady(DefaultClientIOEventDispatch.java:148) > at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:161) > at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:335) > at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) > at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:275) > at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) > at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:542) > at java.lang.Thread.run(Thread.java:619) > FATAL 2010-11-27 23:55:08,678 [HttpCoreNIOSender][][] org.apache.synapse.transport.nhttp.HttpCoreNIOSender 'Encountered an I/O error: I/O dispatch worker terminated abnormally' > org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally > at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:324) > at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.executeClientEngine(HttpCoreNIOSender.java:188) > at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.access$000(HttpCoreNIOSender.java:77) > at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$3.run(HttpCoreNIOSender.java:209) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.lang.NullPointerException > at org.apache.http.impl.nio.DefaultClientIOEventDispatch.inputReady(DefaultClientIOEventDispatch.java:148) > at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:161) > at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:335) > at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) > at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:275) > at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) > at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:542) > ... 1 more > I will give my best to provide a wire log later on. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org