Bug 1195125 - Reloading KJAR which contains DSL and RDSLR via KieScanner fails
Summary: Reloading KJAR which contains DSL and RDSLR via KieScanner fails
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.1.0
Assignee: Mario Fusco
QA Contact: Tibor Zimanyi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-23 07:44 UTC by Mario Fusco
Modified: 2020-03-27 18:34 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 18:34:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-718 0 Major Resolved Reloading KJAR which contains DSL and RDSLR via KieScanner fails. 2015-10-26 15:23:00 UTC

Description Mario Fusco 2015-02-23 07:44:18 UTC
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.

Comment 3 jvahala 2015-03-13 11:43:35 UTC
Mario, 

I've run 'mvn clean test' on your reproducer and got this exception: 

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.251 sec <<< FAILURE!
checkIncrementalCompilation(org.jboss.ddoyle.rules.RulesTest)  Time elapsed: 4.194 sec  <<< FAILURE!
java.lang.AssertionError: One rule should have fired. expected:<1> but was:<0>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:555)
	at org.jboss.ddoyle.rules.RulesTest.runTest(RulesTest.java:78)
	at org.jboss.ddoyle.rules.RulesTest.checkIncrementalCompilation(RulesTest.java:65)

do you know anything about it?

Comment 4 Mario Fusco 2015-03-13 17:00:09 UTC
I rerun that test against both master and 6.2.x branches and it works for me. Are you sure you updated the dependencies versions in the pom file?

Comment 5 Tibor Zimanyi 2015-03-16 16:33:27 UTC
Verified by running reproducer with dependencies changed to version 6.2.0.Final-redhat-2.


Note You need to log in before you can comment on or make changes to this bug.