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

Rob Godfrey commented on QPID-3880:
-----------------------------------

The NPE is a client side exception... is there also a race on the broker?  If 
so can you explain the issue?
                
> Test ChannelCloseOkTest#testWithoutExceptionListener occasionally fails
> -----------------------------------------------------------------------
>
>                 Key: QPID-3880
>                 URL: https://issues.apache.org/jira/browse/QPID-3880
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker, Java Tests
>    Affects Versions: 0.15
>            Reporter: Alex Rudyy
>         Attachments: 
> TEST-org.apache.qpid.test.unit.client.channelclose.ChannelCloseOkTest.testWithoutExceptionListener[1].out
>
>
> Test ChannelCloseOkTest#testWithoutExceptionListener occasionally fails with 
> the following error message and stack traces
> Error Message
> Error closing session: org.apache.qpid.AMQTimeoutException: Server did not 
> respond in a timely fashion [error code 408: Request Timeout]Stacktrace
> {noformat}
> javax.jms.JMSException: Error closing session: 
> org.apache.qpid.AMQTimeoutException: Server did not respond in a timely 
> fashion [error code 408: Request Timeout]
>       at org.apache.qpid.client.AMQSession.close(AMQSession.java:757)
>       at org.apache.qpid.client.AMQSession.close(AMQSession.java:719)
>       at 
> org.apache.qpid.client.AMQConnection.closeAllSessions(AMQConnection.java:949)
>       at org.apache.qpid.client.AMQConnection.doClose(AMQConnection.java:843)
>       at org.apache.qpid.client.AMQConnection.doClose(AMQConnection.java:832)
>       at org.apache.qpid.client.AMQConnection.doClose(AMQConnection.java:832)
>       at org.apache.qpid.client.AMQConnection.close(AMQConnection.java:816)
>       at org.apache.qpid.client.AMQConnection.close(AMQConnection.java:807)
>       at org.apache.qpid.client.AMQConnection.close(AMQConnection.java:802)
>       at 
> org.apache.qpid.test.unit.client.channelclose.ChannelCloseOkTest.closeConnection(ChannelCloseOkTest.java:130)
>       at 
> org.apache.qpid.test.unit.client.channelclose.ChannelCloseOkTest.tearDown(ChannelCloseOkTest.java:121)
>       at 
> org.apache.qpid.test.utils.QpidBrokerTestCase.runBare(QpidBrokerTestCase.java:237)
>       at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:138)
> Caused by: org.apache.qpid.AMQTimeoutException: Server did not respond in a 
> timely fashion [error code 408: Request Timeout]
>       at 
> org.apache.qpid.client.util.BlockingWaiter.block(BlockingWaiter.java:178)
>       at 
> org.apache.qpid.client.protocol.BlockingMethodFrameListener.blockForFrame(BlockingMethodFrameListener.java:122)
>       at 
> org.apache.qpid.client.protocol.AMQProtocolHandler.writeCommandFrameAndWaitForReply(AMQProtocolHandler.java:655)
>       at 
> org.apache.qpid.client.protocol.AMQProtocolHandler.syncWrite(AMQProtocolHandler.java:676)
>       at 
> org.apache.qpid.client.AMQSession_0_8.sendClose(AMQSession_0_8.java:152)
>       at org.apache.qpid.client.AMQSession.close(AMQSession.java:751)
> {noformat} 
> This test failure revield a race condition happened on broker shutdown whilst 
> receiving messages which caused a NullPointerException
> {noformat}
> IoReceiver - localhost/127.0.0.1:15672 2012-03-03 01:06:00,147 ERROR 
> [qpid.client.protocol.AMQProtocolHandler] Exception processing frame
> java.lang.NullPointerException
>       at 
> org.apache.qpid.client.protocol.AMQProtocolSession.deliverMessageToAMQSession(AMQProtocolSession.java:277)
>       at 
> org.apache.qpid.client.protocol.AMQProtocolSession.contentBodyReceived(AMQProtocolSession.java:259)
>       at org.apache.qpid.framing.ContentBody.handle(ContentBody.java:72)
>       at 
> org.apache.qpid.client.protocol.AMQProtocolHandler.received(AMQProtocolHandler.java:436)
>       at 
> org.apache.qpid.client.protocol.AMQProtocolHandler.received(AMQProtocolHandler.java:121)
>       at 
> org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:152)
>       at java.lang.Thread.run(Thread.java:619)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to