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

Keith Wall commented on QPID-7001:
----------------------------------

This is related to the accepting channel and specifically that selection key's 
attachment.  The attachment object is coming back null.  We change the 
attachment in only three places only:  SelectorThread#addAcceptingSocket when 
the socket is first opened, when re-adding interest *after* processing the 
socket's accept backlog and when temporarily deregister interest just after 
being notified isAcceptable() before scheduling the backlog.  The latter two in 
SelectorThread.SelectionTask#processSelectionKeys().

Superficially the algorithm seems fine.  The only time we register attachment 
null is when are not interested, so we should never get into a situation where 
we are notified with a null attachment.  Whenever we register interest, we add 
the attachment.

I think we need to run with more logging so understand the issue better.











> [Java Broker] NullPointerException can be thrown from Port IO Thread
> --------------------------------------------------------------------
>
>                 Key: QPID-7001
>                 URL: https://issues.apache.org/jira/browse/QPID-7001
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: qpid-java-6.0, qpid-java-6.1
>            Reporter: Alex Rudyy
>         Attachments: 0001-WIP-Add-system-test.patch, test.log.tar.gz
>
>
> I run into the following issue in my tests:
> {noformat}
> ########################################################################
> #
> # Unhandled Exception java.lang.NullPointerException in Thread 
> IO-pool-Port-amqp-1
> #
> # Exiting
> #
> ########################################################################
> java.lang.NullPointerException
>  at 
> org.apache.qpid.server.transport.SelectorThread$SelectionTask$1.run(SelectorThread.java:190)
>  at 
> org.apache.qpid.server.transport.SelectorThread.run(SelectorThread.java:457)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to