aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (ARIES-1637) Subsystem persistent cache is not successfully deleted on uninstall
Date Wed, 04 Jan 2017 18:52:58 GMT


ASF subversion and git services commented on ARIES-1637:

Commit 1777364 from in branch 'aries/trunk'
[ ]

[ARIES-1637] - Subsystem persistent cache is not successfully deleted on

> Subsystem persistent cache is not successfully deleted on uninstall
> -------------------------------------------------------------------
>                 Key: ARIES-1637
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>            Reporter: Thomas Watson
>            Assignee: Thomas Watson
> It is unclear the cause of this, but sometimes upon uninstalling a subsystem I find that
the subsystems cache on disk still will contain the DEPLOYMENT.MF file for the subsystem.
 On restart if the same subsystem is installed again you will see the exception below.  One
cause may be because the DEPLOYMENT.MF holds the state of the subsystem, it may be possible
that another thread is attempting to save the state in the DEPLOYMENT.MF file while the uninstall
command is trying to delete the cache folder for the subsystem.  On restart the DEPLOYMENT.MF
file has the header indicating that it is uninstalled:
> AriesSubsystem-State: UNINSTALLED
> One possible fix is to detect the uninstalled state while reading the subsystems cache
and discarding the ones that are uninstalled.
> org.osgi.service.subsystem.SubsystemException: java.lang.NullPointerException
>         at org.apache.aries.subsystem.core.internal.BasicSubsystem.getSubsystemManifest(
>         at org.apache.aries.subsystem.core.internal.BasicSubsystem.getSymbolicName(
>         at org.apache.aries.subsystem.core.internal.TargetRegion.contains(
>         at
>         at
>         at
>         at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(
>         at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(
>         at
>         at
>         at
>         at
>         at
>         at
>         at
>         at
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at
> Caused by: java.lang.NullPointerException
>         at org.apache.aries.subsystem.core.internal.BasicSubsystem.getSubsystemManifest(
>         ... 18 more

This message was sent by Atlassian JIRA

View raw message