Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1720

java.lang.NullPointerException while processing OSGI-INF as a directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • subsystem-1.0.1
    • subsystem-2.0.10
    • Subsystem
    • None

    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:

      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)

      for (IFile file : directory.listFiles()) {
                  if (file.isFile()) {
                      addResource(file, file.convertNested(), manifest, result);
                  } else {
      -->                addResource(file, file.convert(), manifest, result);
                  }
      		}
      

      Attachments

        Issue Links

          Activity

            People

              cschneider Christian Schneider
              cvgaviao Cristiano GaviĆ£o
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: