[JBoss JIRA] (DROOLS-1072) Generate warning or error when Ruletemplate files specified in kmodule.xml does not exist
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-1072?page=com.atlassian.jira.plugi... ]
Mario Fusco updated DROOLS-1072:
--------------------------------
Sprint: 2019 Week 20-22 (was: 2019 Week 17-19)
> Generate warning or error when Ruletemplate files specified in kmodule.xml does not exist
> -----------------------------------------------------------------------------------------
>
> Key: DROOLS-1072
> URL: https://issues.jboss.org/browse/DROOLS-1072
> Project: Drools
> Issue Type: Enhancement
> Components: decision tables
> Affects Versions: 6.4.0.Beta2
> Reporter: Alex Vincent
> Assignee: Mario Fusco
> Priority: Major
>
> When you specify a ruletemplate for a given kbase in the kmodule.xml, it does not generate a warning or an error if the template or dtable does not exist.
> For instance the following kmodule.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
> <kbase name="KBase1" packages="process, rules, decisiontables, ruletemplates">
> <ruleTemplate dtable="decisiontables/dt_duplicate_facts.xls"
> template="ruletemplates/tpl_duplicate_facts.drt"
> row="2" col="2"/>
> <ruleTemplate dtable="doesnotexist/dt_duplicate_facts.xls"
> template="doesnotexist/tpl_duplicate_facts.drt"
> row="2" col="2"/>
> <ksession name="KSession1"/>
> </kbase>
> </kmodule>
> This does not generate an error or warning even with trace log level. The user should be notified that these files don't exist (doesnotexist/dt_duplicate_facts.xls and doesnotexist/tpl_duplicate_facts.drt).
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3198) kie maven plugin fails to build kjar if kmodule contains a ruleTemplate
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-3198?page=com.atlassian.jira.plugi... ]
Mario Fusco updated DROOLS-3198:
--------------------------------
Sprint: 2019 Week 20-22 (was: 2019 Week 17-19)
> kie maven plugin fails to build kjar if kmodule contains a ruleTemplate
> -----------------------------------------------------------------------
>
> Key: DROOLS-3198
> URL: https://issues.jboss.org/browse/DROOLS-3198
> Project: Drools
> Issue Type: Bug
> Components: tools
> Affects Versions: 7.8.0.Final
> Reporter: Webster Homer
> Assignee: Mario Fusco
> Priority: Major
>
> If I have a maven pom that uses the kie maven plugin org.kie:kie-maven-plugin to build the kljar for deployment, and the project kjar has a ruleTemplate:
> <ruleTemplate dtable="rules/business/TermSearchQFRules.xls"
> template="rules/business/templates/TermSearchQF.drt"
> row="2" col="1"/>
> The build will fail with an error:
> ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.8.0.Final:build (default-build) on project ba-search-kjar: Execution default-build of goal org.kie:kie-maven-plugin:7.8.0.Final:build failed: No RuleTable cells in spreadsheet. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.kie:kie-maven-plugin:7.8.0.Final:build (default-build) on project ba-search-kjar: Execution default-build of goal org.kie:kie-maven-plugin:7.8.0.Final:build failed: No RuleTable cells in spreadsheet.
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-build of goal org.kie:kie-maven-plugin:7.8.0.Final:build failed: No RuleTable cells in spreadsheet.
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: org.drools.template.parser.DecisionTableParseException: No RuleTable cells in spreadsheet.
> This is because the plugin doesn't understand the rule template, and treats the xls file as a decision table spreadsheet rather than a template spreadsheet.
> The kie-maven-plugin is a useful tool that compiles the kjar are build time rather than load time, and gives good diagnostics.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3720) [DMN Designer] Included Models - Set the data types count in the IncludedModel entity
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-3720?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-3720:
--------------------------------
Description:
When a model is imported, set the data types count in the {{IncludedModel}} entity.
h3. Acceptance criteria
- Zero data types count (/)
- Non Zero data types count
- Data Types count updated in the original model
was:
When a model is imported, set the data types count in the {{IncludedModel}} entity.
h3. Acceptance criteria
- Zero data types count
- Non Zero data types count
- Data Types count updated in the original model
> [DMN Designer] Included Models - Set the data types count in the IncludedModel entity
> -------------------------------------------------------------------------------------
>
> Key: DROOLS-3720
> URL: https://issues.jboss.org/browse/DROOLS-3720
> Project: Drools
> Issue Type: Enhancement
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Guilherme Gomes
> Priority: Major
> Labels: drools-tools
>
> When a model is imported, set the data types count in the {{IncludedModel}} entity.
> h3. Acceptance criteria
> - Zero data types count (/)
> - Non Zero data types count
> - Data Types count updated in the original model
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3721) [DMN Designer] Included Models - Set the DRG elements count in the IncludedModel entity
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-3721?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-3721:
--------------------------------
Description:
When a model is imported, set the DRG elements count in the {{IncludedModel}} entity.
h3. Acceptance criteria
- Zero elements count (/)
- Non Zero elements count
- Elements count updated in the original model
was:
When a model is imported, set the DRG elements count in the {{IncludedModel}} entity.
h3. Acceptance criteria
- Zero elements count
- Non Zero elements count
- Elements count updated in the original model
> [DMN Designer] Included Models - Set the DRG elements count in the IncludedModel entity
> ---------------------------------------------------------------------------------------
>
> Key: DROOLS-3721
> URL: https://issues.jboss.org/browse/DROOLS-3721
> Project: Drools
> Issue Type: Enhancement
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Guilherme Gomes
> Priority: Major
> Labels: drools-tools
>
> When a model is imported, set the DRG elements count in the {{IncludedModel}} entity.
> h3. Acceptance criteria
> - Zero elements count (/)
> - Non Zero elements count
> - Elements count updated in the original model
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3997) [DMN Designer] Included Model Name marhsalling issues
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-3997?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-3997:
--------------------------------
Description:
There is issue in marshalling, if the included model name contains *whitespace* character. In such case xml editor is opened instead of the dmn editor. See the attached picture and steps to reproduce for more details.
Issue spotted during review of DROOLS-3720 and DROOLS-3721. However it is probably not related.
was:There is issue in marshalling, if the included model name contains *whitespace* character. In such case xml editor is opened instead of the dmn editor. See the attached picture and steps to reproduce for more details.
> [DMN Designer] Included Model Name marhsalling issues
> -----------------------------------------------------
>
> Key: DROOLS-3997
> URL: https://issues.jboss.org/browse/DROOLS-3997
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Affects Versions: 7.22.0.Final
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Major
> Labels: drools-tools
> Attachments: Screenshot from 2019-05-10 08-20-54.png, Screenshot from 2019-05-10 08-28-42.png
>
>
> There is issue in marshalling, if the included model name contains *whitespace* character. In such case xml editor is opened instead of the dmn editor. See the attached picture and steps to reproduce for more details.
> Issue spotted during review of DROOLS-3720 and DROOLS-3721. However it is probably not related.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3997) [DMN Designer] Included Model Name marhsalling issues
by Jozef Marko (Jira)
Jozef Marko created DROOLS-3997:
-----------------------------------
Summary: [DMN Designer] Included Model Name marhsalling issues
Key: DROOLS-3997
URL: https://issues.jboss.org/browse/DROOLS-3997
Project: Drools
Issue Type: Bug
Components: DMN Editor
Affects Versions: 7.22.0.Final
Reporter: Jozef Marko
Assignee: Michael Anstis
Attachments: Screenshot from 2019-05-10 08-20-54.png, Screenshot from 2019-05-10 08-28-42.png
There is issue in marshalling, if the included model name contains *whitespace* character. In such case xml editor is opened instead of the dmn editor. See the attached picture and steps to reproduce for more details.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3991) java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
by Anuradha Prabhala (Jira)
[ https://issues.jboss.org/browse/DROOLS-3991?page=com.atlassian.jira.plugi... ]
Anuradha Prabhala commented on DROOLS-3991:
-------------------------------------------
In my wildlfly server, Business Central is already set up.. so i guess the relevant jar files are being picked up from there even for the other 2 web applications. Neverthless, KieServicesImpl should be able to create a new KieContainer if request is from a different class loader
> java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
> ----------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-3991
> URL: https://issues.jboss.org/browse/DROOLS-3991
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.15.0.Final
> Reporter: Anuradha Prabhala
> Assignee: Maciej Swiderski
> Priority: Critical
>
> I deployed 2 war files in wildfly 14. Both of them are drools projects that are trying to execute some rules. The problem is that only one of the war file is able to execute drools rule. The other fails with the below Internal Server Error:
> Caused by: java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
> at org.drools.compiler.kie.builder.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:107)
> at org.drools.compiler.kie.builder.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:79)
> at org.drools.examples.helloworld.HelloWorldExample.drools(HelloWorldExample.java:49)
> at com.sample.rest.MessageRestService.Testdrools(MessageRestService.java:26)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3991) java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
by Anuradha Prabhala (Jira)
[ https://issues.jboss.org/browse/DROOLS-3991?page=com.atlassian.jira.plugi... ]
Anuradha Prabhala commented on DROOLS-3991:
-------------------------------------------
This error happens at Line No 107 of KieServicesImpl.java. The drools system is always using the same KieServicesImpl.java instance.
Basically if one web project started a Kie Container based on it's class path, as the same KieServicesImpl instance is being used, it always dectects that a Kie Container is already created previously, when a second web application is trying to use drools system
> java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
> ----------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-3991
> URL: https://issues.jboss.org/browse/DROOLS-3991
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.15.0.Final
> Reporter: Anuradha Prabhala
> Assignee: Maciej Swiderski
> Priority: Critical
>
> I deployed 2 war files in wildfly 14. Both of them are drools projects that are trying to execute some rules. The problem is that only one of the war file is able to execute drools rule. The other fails with the below Internal Server Error:
> Caused by: java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
> at org.drools.compiler.kie.builder.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:107)
> at org.drools.compiler.kie.builder.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:79)
> at org.drools.examples.helloworld.HelloWorldExample.drools(HelloWorldExample.java:49)
> at com.sample.rest.MessageRestService.Testdrools(MessageRestService.java:26)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3721) [DMN Designer] Included Models - Set the DRG elements count in the IncludedModel entity
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-3721?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-3721:
--------------------------------
Description:
When a model is imported, set the DRG elements count in the {{IncludedModel}} entity.
h3. Acceptance criteria
- Zero elements count
- Non Zero elements count
- Elements count updated in the original model
was:When a model is imported, set the DRG elements count in the {{IncludedModel}} entity.
> [DMN Designer] Included Models - Set the DRG elements count in the IncludedModel entity
> ---------------------------------------------------------------------------------------
>
> Key: DROOLS-3721
> URL: https://issues.jboss.org/browse/DROOLS-3721
> Project: Drools
> Issue Type: Enhancement
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Guilherme Gomes
> Priority: Major
> Labels: drools-tools
>
> When a model is imported, set the DRG elements count in the {{IncludedModel}} entity.
> h3. Acceptance criteria
> - Zero elements count
> - Non Zero elements count
> - Elements count updated in the original model
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3720) [DMN Designer] Included Models - Set the data types count in the IncludedModel entity
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-3720?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-3720:
--------------------------------
Description:
When a model is imported, set the data types count in the {{IncludedModel}} entity.
h3. Acceptance criteria
- Zero data types count
- Non Zero data types count
- Data Types count updated in the original model
was:When a model is imported, set the data types count in the {{IncludedModel}} entity.
> [DMN Designer] Included Models - Set the data types count in the IncludedModel entity
> -------------------------------------------------------------------------------------
>
> Key: DROOLS-3720
> URL: https://issues.jboss.org/browse/DROOLS-3720
> Project: Drools
> Issue Type: Enhancement
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Guilherme Gomes
> Priority: Major
> Labels: drools-tools
>
> When a model is imported, set the data types count in the {{IncludedModel}} entity.
> h3. Acceptance criteria
> - Zero data types count
> - Non Zero data types count
> - Data Types count updated in the original model
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months