aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Hughes (JIRA)" <>
Subject [jira] [Updated] (ARIES-976) BlueprintContainerImpl swallowing NPE prevents error being logged
Date Fri, 30 Nov 2012 09:19:58 GMT


Jeremy Hughes updated ARIES-976:

    Assignee: Jeremy Hughes
> BlueprintContainerImpl swallowing NPE prevents error being logged
> -----------------------------------------------------------------
>                 Key: ARIES-976
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>            Reporter: Jeremy Hughes
>            Assignee: Jeremy Hughes
> I'm seeing a timing issue in the case where a blueprint bundle (the client) has a service
reference to a service in a second bundle (the service). But the service bean is for a class
that can't be found. When the service bundle is processed first I get a helpful stacktrace
of ClassNotFoundException. In the case where the client bundle is processed first, the GRACE_PERIOD
event is sent then the service bundle is processed. After the ClassNotFoundException is thrown,
the service bundle blueprint container is cleaned up - in the catch (Throwable t) at the end
of BlueprintContainerImpl.doRun(). Eventually the BlueprintRepository.destroy() is called
which gets a null back from BlueprintRepository.getInstance(). BlueprintRepository.destroy()
passes that to BundleRecipe.destroy() which casts it and NPEs. The NPE gets swallowed by the
BlueprintContainerImpl.doRun() and I never see the error message holding the original ClassNotFoundException.
> I'll commit a fix later.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message