IQSS / DataTaggingLibrary

Language tools for DataTags (Decision graph variant). Including the embeddable runtime engine
http://datatags.org
Apache License 2.0
8 stars 11 forks source link

Crash when loading certain models: #240

Closed michbarsinai closed 4 years ago

michbarsinai commented 4 years ago
java.lang.RuntimeException: Tag not found
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.findSlot(CompilationUnit.java:199)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$400(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:282)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstConsiderNode.accept(AstConsiderNode.java:37)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:278)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstConsiderNode.accept(AstConsiderNode.java:37)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:275)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstConsiderNode.accept(AstConsiderNode.java:37)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:372)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstCallNode.accept(AstCallNode.java:34)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:357)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstAskNode.accept(AstAskNode.java:38)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:275)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstConsiderNode.accept(AstConsiderNode.java:37)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:357)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstAskNode.accept(AstAskNode.java:38)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:426)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstPartNode.accept(AstPartNode.java:28)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.lambda$compile$9(CompilationUnit.java:168)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
    at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.compile(CompilationUnit.java:168)
    at edu.harvard.iq.policymodels.parser.decisiongraph.DecisionGraphCompiler.compile(DecisionGraphCompiler.java:100)
    at edu.harvard.iq.policymodels.parser.PolicyModelLoader.load(PolicyModelLoader.java:111)
    at edu.harvard.iq.policymodels.cli.commands.LoadPolicyModelCommand.execute(LoadPolicyModelCommand.java:72)
    at edu.harvard.iq.policymodels.cli.commands.ReloadModelCommand.execute(ReloadModelCommand.java:28)
    at edu.harvard.iq.policymodels.cli.CliRunner.promptUserForAnswer(CliRunner.java:244)
    at edu.harvard.iq.policymodels.cli.CliRunner.go(CliRunner.java:170)
    at edu.harvard.iq.policymodels.mains.PolicyModelCliRunner.main(PolicyModelCliRunner.java:36)