synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isuru Udana Loku Narangoda (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNAPSE-1064) NullPointerException exception occurred while testing the JMS to HTTP scenarios with the high load
Date Mon, 26 Dec 2016 07:42:58 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15777800#comment-15777800
] 

Isuru Udana Loku Narangoda commented on SYNAPSE-1064:
-----------------------------------------------------

{code}
263          if (this.contentDecoder != null && (this.session.getEventMask() &
SelectionKey.OP_READ) > 0) {
264                handler.inputReady(this, this.contentDecoder);
265                if (this.contentDecoder.isCompleted()) {
266                    // Response entity received
267                    // Ready to receive a new response
268                    resetInput();
269                }
270            }
{code}

>From the above code snippet in DefaultNHttpClientConnection.java of HTTP Core NIO 4.3.3,
only possibility is between line 263 and 265, another thread has made the contentDecoder to
null. Looks like same connection is shared between multiple threads.


> NullPointerException exception occurred while testing the JMS to HTTP scenarios  with
the high load
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-1064
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-1064
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>            Reporter: prabath ariyarathna
>            Assignee: Hiranya Jayathilaka
>            Priority: Blocker
>
> 1. Occured following NullPointerException while testing the sample 250(JMS-HTTP)
> 2016-12-26 13:09:47,439 [-] [HTTP-PT-Sender I/O Dispatcher-4] ERROR TargetHandler Unexpected
exception encountered in TargetHandler
> java.lang.NullPointerException
> 	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
> 	at org.apache.http.impl.nio.DefaultHttpClientIODispatch.onInputReady(DefaultHttpClientIODispatch.java:165)
> 	at org.apache.http.impl.nio.DefaultHttpClientIODispatch.onInputReady(DefaultHttpClientIODispatch.java:51)
> 	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:113)
> 	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
> 	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
> 	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
> 	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
> 	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
> 	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
> 	at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message