[JBoss JIRA] (DROOLS-4580) ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
by Martin Weiler (Jira)
[ https://issues.jboss.org/browse/DROOLS-4580?page=com.atlassian.jira.plugi... ]
Martin Weiler updated DROOLS-4580:
----------------------------------
Git Pull Request: https://github.com/kiegroup/drools/pull/2559
> ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
> ---------------------------------------------------------------------------------------
>
> Key: DROOLS-4580
> URL: https://issues.jboss.org/browse/DROOLS-4580
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.27.0.Final
> Reporter: Martin Weiler
> Assignee: Mario Fusco
> Priority: Major
>
> Building a rule base where two rules have identical constraints fails with a ClassCastException:
> {noformat}
> java.lang.ClassCastException: org.drools.core.rule.constraint.EvaluatorConstraint cannot be cast to org.drools.core.rule.constraint.MvelConstraint
> at org.drools.core.reteoo.builder.BuildUtils.mergeNodes(BuildUtils.java:176)
> at org.drools.core.reteoo.builder.BuildUtils.attachNode(BuildUtils.java:152)
> at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.buildJoinNode(GroupElementBuilder.java:143)
> at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:110)
> at org.drools.core.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:68)
> at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:167)
> at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:139)
> at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:110)
> at org.drools.core.impl.KnowledgeBaseImpl.internalAddRule(KnowledgeBaseImpl.java:1523)
> at org.drools.core.impl.KnowledgeBaseImpl.internalAddPackages(KnowledgeBaseImpl.java:913)
> at org.drools.core.impl.KnowledgeBaseImpl.lambda$addPackages$2(KnowledgeBaseImpl.java:715)
> at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:732)
> at org.drools.core.impl.KnowledgeBaseImpl.addPackages(KnowledgeBaseImpl.java:715)
> at org.drools.compiler.kie.builder.impl.AbstractKieModule.createKieBase(AbstractKieModule.java:215)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.createKieBase(KieContainerImpl.java:406)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:396)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:391)
> at org.kie.internal.utils.KieHelper.build(KieHelper.java:80)
> at org.drools.compiler.integrationtests.ExpirationTest.testEventSameContraint(ExpirationTest.java:595)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (DROOLS-4581) ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
by Martin Weiler (Jira)
Martin Weiler created DROOLS-4581:
-------------------------------------
Summary: ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
Key: DROOLS-4581
URL: https://issues.jboss.org/browse/DROOLS-4581
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.27.0.Final
Reporter: Martin Weiler
Assignee: Mario Fusco
Building a rule base where two rules have identical constraints fails with a ClassCastException:
{noformat}
java.lang.ClassCastException: org.drools.core.rule.constraint.EvaluatorConstraint cannot be cast to org.drools.core.rule.constraint.MvelConstraint
at org.drools.core.reteoo.builder.BuildUtils.mergeNodes(BuildUtils.java:176)
at org.drools.core.reteoo.builder.BuildUtils.attachNode(BuildUtils.java:152)
at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.buildJoinNode(GroupElementBuilder.java:143)
at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:110)
at org.drools.core.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:68)
at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:167)
at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:139)
at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:110)
at org.drools.core.impl.KnowledgeBaseImpl.internalAddRule(KnowledgeBaseImpl.java:1523)
at org.drools.core.impl.KnowledgeBaseImpl.internalAddPackages(KnowledgeBaseImpl.java:913)
at org.drools.core.impl.KnowledgeBaseImpl.lambda$addPackages$2(KnowledgeBaseImpl.java:715)
at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:732)
at org.drools.core.impl.KnowledgeBaseImpl.addPackages(KnowledgeBaseImpl.java:715)
at org.drools.compiler.kie.builder.impl.AbstractKieModule.createKieBase(AbstractKieModule.java:215)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.createKieBase(KieContainerImpl.java:406)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:396)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:391)
at org.kie.internal.utils.KieHelper.build(KieHelper.java:80)
at org.drools.compiler.integrationtests.ExpirationTest.testEventSameContraint(ExpirationTest.java:595)
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (DROOLS-4580) ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
by Martin Weiler (Jira)
[ https://issues.jboss.org/browse/DROOLS-4580?page=com.atlassian.jira.plugi... ]
Martin Weiler commented on DROOLS-4580:
---------------------------------------
Note: this worked in Drools 7.7.0 and earlier, before the changes from DROOLS-2455.
> ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
> ---------------------------------------------------------------------------------------
>
> Key: DROOLS-4580
> URL: https://issues.jboss.org/browse/DROOLS-4580
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.27.0.Final
> Reporter: Martin Weiler
> Assignee: Mario Fusco
> Priority: Major
>
> Building a rule base where two rules have identical constraints fails with a ClassCastException:
> {noformat}
> java.lang.ClassCastException: org.drools.core.rule.constraint.EvaluatorConstraint cannot be cast to org.drools.core.rule.constraint.MvelConstraint
> at org.drools.core.reteoo.builder.BuildUtils.mergeNodes(BuildUtils.java:176)
> at org.drools.core.reteoo.builder.BuildUtils.attachNode(BuildUtils.java:152)
> at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.buildJoinNode(GroupElementBuilder.java:143)
> at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:110)
> at org.drools.core.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:68)
> at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:167)
> at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:139)
> at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:110)
> at org.drools.core.impl.KnowledgeBaseImpl.internalAddRule(KnowledgeBaseImpl.java:1523)
> at org.drools.core.impl.KnowledgeBaseImpl.internalAddPackages(KnowledgeBaseImpl.java:913)
> at org.drools.core.impl.KnowledgeBaseImpl.lambda$addPackages$2(KnowledgeBaseImpl.java:715)
> at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:732)
> at org.drools.core.impl.KnowledgeBaseImpl.addPackages(KnowledgeBaseImpl.java:715)
> at org.drools.compiler.kie.builder.impl.AbstractKieModule.createKieBase(AbstractKieModule.java:215)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.createKieBase(KieContainerImpl.java:406)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:396)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:391)
> at org.kie.internal.utils.KieHelper.build(KieHelper.java:80)
> at org.drools.compiler.integrationtests.ExpirationTest.testEventSameContraint(ExpirationTest.java:595)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (DROOLS-4580) ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
by Martin Weiler (Jira)
Martin Weiler created DROOLS-4580:
-------------------------------------
Summary: ClassCastException at BuildUtils.mergeNodes with two rules having identical constraints
Key: DROOLS-4580
URL: https://issues.jboss.org/browse/DROOLS-4580
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.27.0.Final
Reporter: Martin Weiler
Assignee: Mario Fusco
Building a rule base where two rules have identical constraints fails with a ClassCastException:
{noformat}
java.lang.ClassCastException: org.drools.core.rule.constraint.EvaluatorConstraint cannot be cast to org.drools.core.rule.constraint.MvelConstraint
at org.drools.core.reteoo.builder.BuildUtils.mergeNodes(BuildUtils.java:176)
at org.drools.core.reteoo.builder.BuildUtils.attachNode(BuildUtils.java:152)
at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.buildJoinNode(GroupElementBuilder.java:143)
at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:110)
at org.drools.core.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:68)
at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:167)
at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:139)
at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:110)
at org.drools.core.impl.KnowledgeBaseImpl.internalAddRule(KnowledgeBaseImpl.java:1523)
at org.drools.core.impl.KnowledgeBaseImpl.internalAddPackages(KnowledgeBaseImpl.java:913)
at org.drools.core.impl.KnowledgeBaseImpl.lambda$addPackages$2(KnowledgeBaseImpl.java:715)
at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:732)
at org.drools.core.impl.KnowledgeBaseImpl.addPackages(KnowledgeBaseImpl.java:715)
at org.drools.compiler.kie.builder.impl.AbstractKieModule.createKieBase(AbstractKieModule.java:215)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.createKieBase(KieContainerImpl.java:406)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:396)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieBase(KieContainerImpl.java:391)
at org.kie.internal.utils.KieHelper.build(KieHelper.java:80)
at org.drools.compiler.integrationtests.ExpirationTest.testEventSameContraint(ExpirationTest.java:595)
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (WFCORE-4688) '-Xlog:gc' option is not supported on OpenJDK11 + OpenJ9
by James Perkins (Jira)
[ https://issues.jboss.org/browse/WFCORE-4688?page=com.atlassian.jira.plugi... ]
James Perkins moved JBEAP-17672 to WFCORE-4688:
-----------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-4688 (was: JBEAP-17672)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Scripts
(was: Scripts)
Affects Version/s: (was: 7.3.0.Beta)
> '-Xlog:gc' option is not supported on OpenJDK11 + OpenJ9
> --------------------------------------------------------
>
> Key: WFCORE-4688
> URL: https://issues.jboss.org/browse/WFCORE-4688
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Reporter: Jan Stourac
> Assignee: James Perkins
> Priority: Major
>
> With OpenJDK11 + OpenJ9, I can see following error during the server bootup:
> {code}
> JVMJ9VM085W Malformed option: '-Xlog:gc*:file=<JBOSS_HOME_PATH>/standalone/log/gc.log:time'
> {code}
> Based on the [discussion here|https://github.com/eclipse/openj9/issues/3999], the {{-Xlog:gc}} option is not supported in this JDK and it won't be.
> Relevant part of the startup script for standalone.sh in [upstream WildFly|https://github.com/wildfly/wildfly-core/blob/master/core-feature-...].
> This warning occurs only on OpenJDK11 + OpenJ9. This does not show up when using OpenJDK8 + OpenJ9 as different branch in script is used in that case ({{-verbose:gc -Xloggc:\"$JBOSS_LOG_DIR/gc.log\" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading}}).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (WFCORE-4687) StandaloneScriptTestCase fails on Eclipse OpenJ9
by James Perkins (Jira)
James Perkins created WFCORE-4687:
-------------------------------------
Summary: StandaloneScriptTestCase fails on Eclipse OpenJ9
Key: WFCORE-4687
URL: https://issues.jboss.org/browse/WFCORE-4687
Project: WildFly Core
Issue Type: Bug
Components: Scripts
Environment: java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 8.0.5.36 - pxa6480sr5fp36-20190510_01(SR5 FP36))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20190502_415899 (JIT enabled, AOT enabled)
OpenJ9 - 46e57f9
OMR - 06a046a
IBM - 0b909bf)
JCL - 20190409_01 based on Oracle jdk8u211-b25
Reporter: Richard Opalka
Assignee: James Perkins
Fix For: 10.0.0.Beta6
[INFO] Running org.wildfly.scripts.test.StandaloneScriptTestCase
[ERROR] Tests run: 10, Failures: 1, Errors: 0, Skipped: 8, Time elapsed: 20.724 s <<< FAILURE! - in org.wildfly.scripts.test.StandaloneScriptTestCase
[ERROR] testBashScript[1](org.wildfly.scripts.test.StandaloneScriptTestCase) Time elapsed: 3.729 s <<< FAILURE!
java.lang.AssertionError: Missing gc.log.0.current file in /home/opalka/git/redhat/wildfly-core/testsuite/scripts/target/wildfly-core/standalone/log
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.wildfly.scripts.test.StandaloneScriptTestCase.testScript(StandaloneScriptTestCase.java:135)
at org.wildfly.scripts.test.ScriptTestCase.executeTests(ScriptTestCase.java:257)
at org.wildfly.scripts.test.ScriptTestCase.testBashScript(ScriptTestCase.java:170)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (WFCORE-4687) StandaloneScriptTestCase fails on Eclipse OpenJ9
by James Perkins (Jira)
[ https://issues.jboss.org/browse/WFCORE-4687?page=com.atlassian.jira.plugi... ]
James Perkins updated WFCORE-4687:
----------------------------------
Environment: (was: java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 8.0.5.36 - pxa6480sr5fp36-20190510_01(SR5 FP36))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20190502_415899 (JIT enabled, AOT enabled)
OpenJ9 - 46e57f9
OMR - 06a046a
IBM - 0b909bf)
JCL - 20190409_01 based on Oracle jdk8u211-b25
)
> StandaloneScriptTestCase fails on Eclipse OpenJ9
> ------------------------------------------------
>
> Key: WFCORE-4687
> URL: https://issues.jboss.org/browse/WFCORE-4687
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Reporter: Richard Opalka
> Assignee: James Perkins
> Priority: Major
>
> [INFO] Running org.wildfly.scripts.test.StandaloneScriptTestCase
> [ERROR] Tests run: 10, Failures: 1, Errors: 0, Skipped: 8, Time elapsed: 20.724 s <<< FAILURE! - in org.wildfly.scripts.test.StandaloneScriptTestCase
> [ERROR] testBashScript[1](org.wildfly.scripts.test.StandaloneScriptTestCase) Time elapsed: 3.729 s <<< FAILURE!
> java.lang.AssertionError: Missing gc.log.0.current file in /home/opalka/git/redhat/wildfly-core/testsuite/scripts/target/wildfly-core/standalone/log
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.wildfly.scripts.test.StandaloneScriptTestCase.testScript(StandaloneScriptTestCase.java:135)
> at org.wildfly.scripts.test.ScriptTestCase.executeTests(ScriptTestCase.java:257)
> at org.wildfly.scripts.test.ScriptTestCase.testBashScript(ScriptTestCase.java:170)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (WFCORE-4687) StandaloneScriptTestCase fails on Eclipse OpenJ9
by James Perkins (Jira)
[ https://issues.jboss.org/browse/WFCORE-4687?page=com.atlassian.jira.plugi... ]
James Perkins updated WFCORE-4687:
----------------------------------
Git Pull Request: (was: https://github.com/wildfly/wildfly-core/pull/3928)
> StandaloneScriptTestCase fails on Eclipse OpenJ9
> ------------------------------------------------
>
> Key: WFCORE-4687
> URL: https://issues.jboss.org/browse/WFCORE-4687
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Reporter: Richard Opalka
> Assignee: James Perkins
> Priority: Major
>
> [INFO] Running org.wildfly.scripts.test.StandaloneScriptTestCase
> [ERROR] Tests run: 10, Failures: 1, Errors: 0, Skipped: 8, Time elapsed: 20.724 s <<< FAILURE! - in org.wildfly.scripts.test.StandaloneScriptTestCase
> [ERROR] testBashScript[1](org.wildfly.scripts.test.StandaloneScriptTestCase) Time elapsed: 3.729 s <<< FAILURE!
> java.lang.AssertionError: Missing gc.log.0.current file in /home/opalka/git/redhat/wildfly-core/testsuite/scripts/target/wildfly-core/standalone/log
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.wildfly.scripts.test.StandaloneScriptTestCase.testScript(StandaloneScriptTestCase.java:135)
> at org.wildfly.scripts.test.ScriptTestCase.executeTests(ScriptTestCase.java:257)
> at org.wildfly.scripts.test.ScriptTestCase.testBashScript(ScriptTestCase.java:170)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (WFCORE-4687) StandaloneScriptTestCase fails on Eclipse OpenJ9
by James Perkins (Jira)
[ https://issues.jboss.org/browse/WFCORE-4687?page=com.atlassian.jira.plugi... ]
James Perkins updated WFCORE-4687:
----------------------------------
Fix Version/s: (was: 10.0.0.Beta6)
> StandaloneScriptTestCase fails on Eclipse OpenJ9
> ------------------------------------------------
>
> Key: WFCORE-4687
> URL: https://issues.jboss.org/browse/WFCORE-4687
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Reporter: Richard Opalka
> Assignee: James Perkins
> Priority: Major
>
> [INFO] Running org.wildfly.scripts.test.StandaloneScriptTestCase
> [ERROR] Tests run: 10, Failures: 1, Errors: 0, Skipped: 8, Time elapsed: 20.724 s <<< FAILURE! - in org.wildfly.scripts.test.StandaloneScriptTestCase
> [ERROR] testBashScript[1](org.wildfly.scripts.test.StandaloneScriptTestCase) Time elapsed: 3.729 s <<< FAILURE!
> java.lang.AssertionError: Missing gc.log.0.current file in /home/opalka/git/redhat/wildfly-core/testsuite/scripts/target/wildfly-core/standalone/log
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.wildfly.scripts.test.StandaloneScriptTestCase.testScript(StandaloneScriptTestCase.java:135)
> at org.wildfly.scripts.test.ScriptTestCase.executeTests(ScriptTestCase.java:257)
> at org.wildfly.scripts.test.ScriptTestCase.testBashScript(ScriptTestCase.java:170)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months