You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/22 21:42:04 UTC
[jira] [Commented] (ARIES-1720) java.lang.NullPointerException
while processing OSGI-INF as a directory
[ https://issues.apache.org/jira/browse/ARIES-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16020246#comment-16020246 ]
ASF GitHub Bot commented on ARIES-1720:
---------------------------------------
GitHub user cvgaviao opened a pull request:
https://github.com/apache/aries/pull/73
ARIES-1720 - fixed NullPointerException
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cvgaviao/aries ARIES-1720
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/aries/pull/73.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #73
----
commit 57498972ab7cb935203a18e717a435ff0a5a2fab
Author: Cristiano Gavião <cv...@gmail.com>
Date: 2017-05-22T21:36:31Z
ARIES-1720 - fixed NullPointerException
----
> 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)