[jboss-jira] [JBoss JIRA] (DROOLS-718) Reloading KJAR which contains DSL and RDSLR via KieScanner fails.

Duncan Doyle (JIRA) issues at jboss.org
Tue Feb 17 19:04:49 EST 2015


Duncan Doyle created DROOLS-718:
-----------------------------------

             Summary: Reloading KJAR which contains DSL and RDSLR via KieScanner fails.
                 Key: DROOLS-718
                 URL: https://issues.jboss.org/browse/DROOLS-718
             Project: Drools
          Issue Type: Bug
    Affects Versions: 6.2.0.CR4
         Environment: Mac OS X 10.10.2, Oracle HotSpot 1.7.0_71
            Reporter: Duncan Doyle
            Assignee: Mark Proctor


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.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list