Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Running the converter tool in the sling starter directory ( with -a ... to work around SLING-9429 ) I am getting the following NPE
pm2fm -i src/main/provisioning/ -o out -a "launchpad:felix.systempackages.calculate.uses=true" [main] INFO org.apache.sling.feature.modelconverter.Main - Use Provided Version Flag: 'false' [main] INFO org.apache.sling.feature.modelconverter.Main - Check Add Framework Properties Line: 'launchpad:felix.systempackages.calculate.uses=true' [main] INFO org.apache.sling.feature.modelconverter.Main - Pattern Group Matches: 'true', Count: '3' [main] INFO org.apache.sling.feature.modelconverter.Main - Model Name: 'launchpad', Prop Name: 'felix.systempackages.calculate.uses', Value: 'true' [main] INFO org.apache.sling.feature.modelconverter.Main - Excluded Bundles: 'null' [main] INFO org.apache.sling.feature.modelconverter.Main - Runmodes: 'null' [main] INFO org.apache.sling.feature.modelconverter.Main - Handle File: '/home/robert/sources/apache/sling/org-apache-sling-starter/src/main/provisioning/composum.txt' [main] INFO org.apache.sling.feature.modelconverter.ProvisioningToFeature - Assembling model... [main] INFO org.apache.sling.feature.modelconverter.ProvisioningToFeature - - reading model file:/home/robert/sources/apache/sling/org-apache-sling-starter/src/main/provisioning/composum.txt [main] INFO org.apache.sling.feature.modelconverter.ProvisioningToFeature - Check Artitfact Id: 'composum-sling-core-commons' if excluded by: 'null' [main] ERROR org.apache.sling.feature.modelconverter.Main - Failed to Convert java.lang.NullPointerException at org.apache.sling.feature.modelconverter.ProvisioningToFeature.buildFromFeature(ProvisioningToFeature.java:354) at org.apache.sling.feature.modelconverter.ProvisioningToFeature.buildFeatures(ProvisioningToFeature.java:541) at org.apache.sling.feature.modelconverter.ProvisioningToFeature.convert(ProvisioningToFeature.java:73) at org.apache.sling.feature.modelconverter.Main.run(Main.java:134) at picocli.CommandLine.execute(CommandLine.java:996) at picocli.CommandLine.access$900(CommandLine.java:142) at picocli.CommandLine$RunLast.handle(CommandLine.java:1199) at picocli.CommandLine$RunLast.handle(CommandLine.java:1167) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1075) at picocli.CommandLine.parseWithHandlers(CommandLine.java:1358) at picocli.CommandLine.run(CommandLine.java:1817) at picocli.CommandLine.run(CommandLine.java:1747) at org.apache.sling.feature.modelconverter.Main.main(Main.java:142)