You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robert Greig (JIRA)" <qp...@incubator.apache.org> on 2007/09/21 13:10:50 UTC

[jira] Commented: (QPID-606) NPE from several systests occasionally

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

Robert Greig commented on QPID-606:
-----------------------------------

Turned out be quite a nasty issue. Systests use the in-VM broker in many cases and the problem was that earlier tests still had sessions that were closing (on separate MINA threads) when other tests were starting up. The tests that were closing tried to unregister a session from an MBean and in doing so tried to look up the application registry.

There was no synchronisation on the application registry creation, so this led to race conditions where the closing thread tried to create new app registries and the test main thread also did the same.

Fixed by adding synchronisation to the ApplicationRegistry.getInstance().

svn rev 578058 on M2.1 branch.

> NPE from several systests occasionally
> --------------------------------------
>
>                 Key: QPID-606
>                 URL: https://issues.apache.org/jira/browse/QPID-606
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: M2
>         Environment: Any
>            Reporter: Robert Greig
>            Assignee: Robert Greig
>
> Random tests in systests fail with NPEs, e.g. AMQBrokerMBeanTest.
>  Test set: org.apache.qpid.server.AMQBrokerManagerMBeanTest
> > -------------------------------------------------------------------------------
> > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006
> > sec <<< FAILURE!
> > testExchangeOperations(org.apache.qpid.server.AMQBrokerManagerMBeanTest)
> >  Time elapsed: 0.003 sec  <<< ERROR!
> > java.lang.NullPointerException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.