Robert Munteanu created SLING-9430:
--------------------------------------
Summary: Feature model converter fails if no bundle excludes are
specified
Key: SLING-9430
URL: https://issues.apache.org/jira/browse/SLING-9430
Project: Sling
Issue Type: Bug
Components: Feature Model
Reporter: Robert Munteanu
Fix For: Feature Model Converter 1.0.16
Running the converter tool in the sling starter directory ( with {{-a ...}} to
work around SLING-9429 ) I am getting the following NPE
{noformat}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){noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)