-
Bug
-
Resolution: Done
-
Major
-
None
-
6.2.0.CR4
-
None
-
None
-
Mac OS X 10.10.2, Oracle HotSpot 1.7.0_71
When using the KieScanner to reload a KJAR with a DSL and RDSLR, reloading fails due to that the compiler is unable to find mappings for the language in the RDSLR.
This is the error I get in my reproducer:
2015-02-18 00:45:02,764 [ERROR] [main] [org.drools.compiler.kie.builder.impl.KieContainerImpl] ERROR Unable to update KieBase: KBase1 to release org.kie:scanner-test:1.0-SNAPSHOT
[7] No mapping entries for expanding: There is a SimpleFact
[7] Unable to expand: There is a SimpleFact
[8] No mapping entries for expanding: -with id "2"
[8] Unable to expand: -with id "2"
[10] No mapping entries for expanding: Print "Found a simple fact with id 2."
[10] Unable to expand: Print "Found a simple fact with id 2."
[7,7]: [ERR 102] Line 7:7 mismatched input 'is' in rule "bla"
Reproducer project can be found here: https://github.com/DuncanDoyle/brms-kjar-with-dsl-kiescanner
Just clone the repo and run 'mvn clean test'.
Note that the reproducer creates the first KJAR, runs test, and then creates the second KJAR. Compilation of the second KJAR fails. When you alter the test to only load the second KJAR, everything works fine.