You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Thomas Watson (JIRA)" <ji...@apache.org> on 2012/11/26 22:18:58 UTC
[jira] [Created] (ARIES-972) Subsystem install fails with NPE if no
subsystem manifest is contained in an ESA
Thomas Watson created ARIES-972:
-----------------------------------
Summary: 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
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
[jira] [Assigned] (ARIES-972) Subsystem install fails with NPE if
no subsystem manifest is contained in an ESA
Posted by "John Ross (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Ross reassigned ARIES-972:
-------------------------------
Assignee: John Ross
> 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
[jira] [Resolved] (ARIES-972) Subsystem install fails with NPE if
no subsystem manifest is contained in an ESA
Posted by "John Ross (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Ross resolved ARIES-972.
-----------------------------
Resolution: Fixed
Fixed in http://svn.apache.org/viewvc?view=revision&revision=1414213.
> 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
[jira] [Commented] (ARIES-972) Subsystem install fails with NPE if
no subsystem manifest is contained in an ESA
Posted by "John Ross (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504160#comment-13504160 ]
John Ross commented on ARIES-972:
---------------------------------
The specification does not require implementations to generate symbolic names, so the failure was intentional, although a more informative exception could have been used. The specification does allow implementations to generate them however, so a request is being made to add functionality that will generate a symbolic name in the case described above. The current proposal is that the generated name will follow the pattern of org.apache.aries.subsystem.generated.<subsystem_id>.
> 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
>
> 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