aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Watson (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ARIES-972) Subsystem install fails with NPE if no subsystem manifest is contained in an ESA
Date Fri, 04 Jan 2013 17:00:17 GMT

     [ https://issues.apache.org/jira/browse/ARIES-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Watson closed ARIES-972.
-------------------------------


Thanks for the fix, closing the issue.
                
> Subsystem install fails with NPE if no subsystem manifest is contained in an ESA
> --------------------------------------------------------------------------------
>
>                 Key: ARIES-972
>                 URL: https://issues.apache.org/jira/browse/ARIES-972
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>            Reporter: Thomas Watson
>            Assignee: John Ross
>
> The subsystem manifest file is optional for ESA files.  If an ESA is installed which
contains no subsystem manifest AND the subsystem was NOT installed using the subsystem: URI
(in order to specify the Subsystem-SymbolicName param) then the following NPE will be observed:
> Caused by: java.lang.NullPointerException
> 	at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
> 	at java.util.regex.Matcher.reset(Matcher.java:291)
> 	at java.util.regex.Matcher.<init>(Matcher.java:211)
> 	at java.util.regex.Pattern.matcher(Pattern.java:888)
> 	at org.apache.aries.subsystem.core.archive.AbstractHeader.<init>(AbstractHeader.java:55)
> 	at org.apache.aries.subsystem.core.archive.SymbolicNameHeader.<init>(SymbolicNameHeader.java:20)
> 	at org.apache.aries.subsystem.core.archive.SubsystemSymbolicNameHeader.<init>(SubsystemSymbolicNameHeader.java:21)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.computeSubsystemSymbolicNameHeader(RawSubsystemResource.java:383)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.addSubsystemSymbolicNameHeader(RawSubsystemResource.java:223)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.computeSubsystemManifestBeforeRequirements(RawSubsystemResource.java:374)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.<init>(RawSubsystemResource.java:110)
> 	at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:93)
> 	at org.apache.aries.subsystem.core.internal.InstallAction.createSubsystemResource(InstallAction.java:128)
> 	at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:62)
> 	... 61 more

--
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: http://www.atlassian.com/software/jira

Mime
View raw message