I found two feature models in the sxfm format that cannot be loaded with the FeatureModelManager.load() function as they throw the following errors:
embtoolkit:
ERROR: The feature 'EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM7TDMI-S' does not occur in the grammar!
de.ovgu.featureide.fm.core.io.UnsupportedModelException: The feature 'EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM7TDMI-S' does not occur in the grammar!
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:817)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:813)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:783)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleSingleConstraint(SXFMFormat.java:731)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleConstraints(SXFMFormat.java:704)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelStep(SXFMFormat.java:327)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:303)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.readDocument(SXFMFormat.java:288)
at de.ovgu.featureide.fm.core.io.xml.AXMLFormat.read(AXMLFormat.java:203)
at de.ovgu.featureide.fm.core.io.IPersistentFormat.read(IPersistentFormat.java:60)
at de.ovgu.featureide.fm.core.io.manager.SimpleFileHandler.parse(SimpleFileHandler.java:252)
at de.ovgu.featureide.fm.core.io.manager.AbstractIO.getFileHandler(AbstractIO.java:119)
at de.ovgu.featureide.fm.core.io.manager.AbstractIO.load(AbstractIO.java:89)
at de.ovgu.featureide.fm.core.io.manager.FeatureModelManager.load(FeatureModelManager.java:66)
FinancialServices01:
ERROR: The feature 'F_AtfEDJkBn0QpwIN6Ywe+VmaCDI5oqa/k' does not occur in the grammar!
de.ovgu.featureide.fm.core.io.UnsupportedModelException: The feature 'F_AtfEDJkBn0QpwIN6Ywe+VmaCDI5oqa/k' does not occur in the grammar!
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:817)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:813)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:783)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleSingleConstraint(SXFMFormat.java:731)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleConstraints(SXFMFormat.java:704)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelStep(SXFMFormat.java:327)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:303)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305)
at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.readDocument(SXFMFormat.java:288)
at de.ovgu.featureide.fm.core.io.xml.AXMLFormat.read(AXMLFormat.java:203)
at de.ovgu.featureide.fm.core.io.IPersistentFormat.read(IPersistentFormat.java:60)
at de.ovgu.featureide.fm.core.io.manager.SimpleFileHandler.parse(SimpleFileHandler.java:252)
at de.ovgu.featureide.fm.core.io.manager.AbstractIO.getFileHandler(AbstractIO.java:119)
at de.ovgu.featureide.fm.core.io.manager.AbstractIO.load(AbstractIO.java:89)
at de.ovgu.featureide.fm.core.io.manager.FeatureModelManager.load(FeatureModelManager.java:66)
Both of the features that cannot be found, occur as a feature name in the xml file.
In comparison both of the models with the same feature names in the FeatureIDE format do not cause any issues.
The feature models are attached in the zip file in both formats.
Prerequisitives
3.11.1
Issue description
I found two feature models in the sxfm format that cannot be loaded with the FeatureModelManager.load() function as they throw the following errors:
embtoolkit: ERROR: The feature 'EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM7TDMI-S' does not occur in the grammar! de.ovgu.featureide.fm.core.io.UnsupportedModelException: The feature 'EMBTK_ARCH_ARM_FAMILY_ARM7TDMI_ARM7TDMI-S' does not occur in the grammar! at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:817) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:813) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:783) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleSingleConstraint(SXFMFormat.java:731) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleConstraints(SXFMFormat.java:704) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelStep(SXFMFormat.java:327) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:303) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.readDocument(SXFMFormat.java:288) at de.ovgu.featureide.fm.core.io.xml.AXMLFormat.read(AXMLFormat.java:203) at de.ovgu.featureide.fm.core.io.IPersistentFormat.read(IPersistentFormat.java:60) at de.ovgu.featureide.fm.core.io.manager.SimpleFileHandler.parse(SimpleFileHandler.java:252) at de.ovgu.featureide.fm.core.io.manager.AbstractIO.getFileHandler(AbstractIO.java:119) at de.ovgu.featureide.fm.core.io.manager.AbstractIO.load(AbstractIO.java:89) at de.ovgu.featureide.fm.core.io.manager.FeatureModelManager.load(FeatureModelManager.java:66)
FinancialServices01: ERROR: The feature 'F_AtfEDJkBn0QpwIN6Ywe+VmaCDI5oqa/k' does not occur in the grammar! de.ovgu.featureide.fm.core.io.UnsupportedModelException: The feature 'F_AtfEDJkBn0QpwIN6Ywe+VmaCDI5oqa/k' does not occur in the grammar! at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:817) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildLeafNodes(SXFMFormat.java:813) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:800) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildPropNode(SXFMFormat.java:783) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleSingleConstraint(SXFMFormat.java:731) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.handleConstraints(SXFMFormat.java:704) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelStep(SXFMFormat.java:327) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:303) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.buildFModelRec(SXFMFormat.java:305) at de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat.readDocument(SXFMFormat.java:288) at de.ovgu.featureide.fm.core.io.xml.AXMLFormat.read(AXMLFormat.java:203) at de.ovgu.featureide.fm.core.io.IPersistentFormat.read(IPersistentFormat.java:60) at de.ovgu.featureide.fm.core.io.manager.SimpleFileHandler.parse(SimpleFileHandler.java:252) at de.ovgu.featureide.fm.core.io.manager.AbstractIO.getFileHandler(AbstractIO.java:119) at de.ovgu.featureide.fm.core.io.manager.AbstractIO.load(AbstractIO.java:89) at de.ovgu.featureide.fm.core.io.manager.FeatureModelManager.load(FeatureModelManager.java:66)
Both of the features that cannot be found, occur as a feature name in the xml file.
In comparison both of the models with the same feature names in the FeatureIDE format do not cause any issues. The feature models are attached in the zip file in both formats.
sxfm_featuremodels.zip