[
https://issues.apache.org/jira/browse/ARIES-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cristiano Gavião updated ARIES-1720:
------------------------------------
Description:
Depends on which tool and the way was used to created a .esa file, the OSGI-INF
can be seen by RawSubsystemResource as a normal directory entry and then be
processed by its computeResources() method.
This method will throw an java.lang.NullPointerException:
{quote}
08:38:33.903||DEBUG|File "OSGI-INF" in subsystem with location
"org.c8tech.runtime.esa.kernel-1493206713882" will be ignored because it is not
recognized as a supported
resource|o.a.a.s.c.i.RawSubsystemResource||o.a.a.s.c.i.RawSubsystemResource@496[Start
Level: Equinox Container: b3c76716-7e67-4fbd-aadb-6d5936b057d9]
java.lang.NullPointerException: null
at
org.apache.aries.subsystem.core.internal.BundleResource.computeManifest(BundleResource.java:62)
at
org.apache.aries.subsystem.core.internal.BundleResource.<init>(BundleResource.java:73)
at
org.apache.aries.subsystem.core.internal.RawSubsystemResource.addResource(RawSubsystemResource.java:492)
at
org.apache.aries.subsystem.core.internal.RawSubsystemResource.computeResources(RawSubsystemResource.java:459)
at
org.apache.aries.subsystem.core.internal.RawSubsystemResource.<init>(RawSubsystemResource.java:134)
at
org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:91)
at
org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:60)
at
org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:677)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:730)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:304)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:1)
{quote}
{code}
for (IFile file : directory.listFiles()) {
if (file.isFile()) {
addResource(file, file.convertNested(), manifest, result);
} else {
--> addResource(file, file.convert(), manifest, result);
}
}
{code}
was:
Depends on which tool and the way was used to created a .esa file, the OSGI-INF
can be seen by RawSubsystemResource as a normal directory entry and then be
processed by its computeResources() method.
This method will throw an java.lang.NullPointerException:
{quote}
08:38:33.903||DEBUG|File "OSGI-INF" in subsystem with location
"org.c8tech.runtime.esa.kernel-1493206713882" will be ignored because it is not
recognized as a supported
resource|o.a.a.s.c.i.RawSubsystemResource||o.a.a.s.c.i.RawSubsystemResource@496[Start
Level: Equinox Container: b3c76716-7e67-4fbd-aadb-6d5936b057d9]
java.lang.NullPointerException: null
at
org.apache.aries.subsystem.core.internal.BundleResource.computeManifest(BundleResource.java:62)
at
org.apache.aries.subsystem.core.internal.BundleResource.<init>(BundleResource.java:73)
at
org.apache.aries.subsystem.core.internal.RawSubsystemResource.addResource(RawSubsystemResource.java:492)
at
org.apache.aries.subsystem.core.internal.RawSubsystemResource.computeResources(RawSubsystemResource.java:459)
at
org.apache.aries.subsystem.core.internal.RawSubsystemResource.<init>(RawSubsystemResource.java:134)
at
org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:91)
at
org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:60)
at
org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:677)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:730)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:304)
at
org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:1)
{quote}
{code}
for (IFile file : directory.listFiles()) {
if (file.isFile()) {
addResource(file, file.convertNested(), manifest, result);
} else {
addResource(file, file.convert(), manifest, result);
}
}
{code}
> java.lang.NullPointerException while processing OSGI-INF as a directory
> -----------------------------------------------------------------------
>
> Key: ARIES-1720
> URL: https://issues.apache.org/jira/browse/ARIES-1720
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Affects Versions: subsystem-1.0.1
> Reporter: Cristiano Gavião
>
> Depends on which tool and the way was used to created a .esa file, the
> OSGI-INF can be seen by RawSubsystemResource as a normal directory entry and
> then be processed by its computeResources() method.
> This method will throw an java.lang.NullPointerException:
> {quote}
> 08:38:33.903||DEBUG|File "OSGI-INF" in subsystem with location
> "org.c8tech.runtime.esa.kernel-1493206713882" will be ignored because it is
> not recognized as a supported
> resource|o.a.a.s.c.i.RawSubsystemResource||o.a.a.s.c.i.RawSubsystemResource@496[Start
> Level: Equinox Container: b3c76716-7e67-4fbd-aadb-6d5936b057d9]
> java.lang.NullPointerException: null
> at
> org.apache.aries.subsystem.core.internal.BundleResource.computeManifest(BundleResource.java:62)
> at
> org.apache.aries.subsystem.core.internal.BundleResource.<init>(BundleResource.java:73)
> at
> org.apache.aries.subsystem.core.internal.RawSubsystemResource.addResource(RawSubsystemResource.java:492)
> at
> org.apache.aries.subsystem.core.internal.RawSubsystemResource.computeResources(RawSubsystemResource.java:459)
> at
> org.apache.aries.subsystem.core.internal.RawSubsystemResource.<init>(RawSubsystemResource.java:134)
> at
> org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:91)
> at
> org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:60)
> at
> org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:677)
> at
> org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:730)
> at
> org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:304)
> at
> org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:1)
> {quote}
> {code}
> for (IFile file : directory.listFiles()) {
> if (file.isFile()) {
> addResource(file, file.convertNested(), manifest, result);
> } else {
> --> addResource(file, file.convert(), manifest, result);
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)