[JBoss JIRA] (DROOLS-5438) DMN align FEEL behaviour when sum([])
by Maciej Swiderski (Jira)
[ https://issues.redhat.com/browse/DROOLS-5438?page=com.atlassian.jira.plug... ]
Maciej Swiderski edited comment on DROOLS-5438 at 8/20/20 11:04 AM:
--------------------------------------------------------------------
[~tari_manga] isn't this actually breaking the spec? In the screenshot you attached it states that list can be empty and that results in null outcome of the function. But right now the engine throws an exception and the decision is not evaluated at all which later on results with
{code:java}
2020-08-20 17:03:21,797 [main] ERROR FEEL ERROR while evaluating literal expression 'sum(for i in List of Conditions return Comorbidity... [string clipped after 50 chars, total length is 60]': The parameter 'list', in function sum(), cannot be null or empty.
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'C Score' as it depends on decision 'Comorbidity Score for Listed Conditions'
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'LACE Score' as it depends on decision 'C Score'
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'Risk of Re-Admission' as it depends on decision 'LACE Score' {code}
was (Author: swiderski.maciej):
[~tari_manga] is this actually breaking the spec? In the screenshot you attached it states that list can be empty and that results in null outcome of the function. But right now the engine throws an exception and the decision is not evaluated at all which later on results with
{code:java}
2020-08-20 17:03:21,797 [main] ERROR FEEL ERROR while evaluating literal expression 'sum(for i in List of Conditions return Comorbidity... [string clipped after 50 chars, total length is 60]': The parameter 'list', in function sum(), cannot be null or empty.
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'C Score' as it depends on decision 'Comorbidity Score for Listed Conditions'
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'LACE Score' as it depends on decision 'C Score'
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'Risk of Re-Admission' as it depends on decision 'LACE Score' {code}
> DMN align FEEL behaviour when sum([])
> --------------------------------------
>
> Key: DROOLS-5438
> URL: https://issues.redhat.com/browse/DROOLS-5438
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
> Attachments: image-2020-06-17-12-38-33-381.png
>
>
> from the DMN spec !image-2020-06-17-12-38-33-381.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5438) DMN align FEEL behaviour when sum([])
by Maciej Swiderski (Jira)
[ https://issues.redhat.com/browse/DROOLS-5438?page=com.atlassian.jira.plug... ]
Maciej Swiderski commented on DROOLS-5438:
------------------------------------------
[~tari_manga] is this actually breaking the spec? In the screenshot you attached it states that list can be empty and that results in null outcome of the function. But right now the engine throws an exception and the decision is not evaluated at all which later on results with
{code:java}
2020-08-20 17:03:21,797 [main] ERROR FEEL ERROR while evaluating literal expression 'sum(for i in List of Conditions return Comorbidity... [string clipped after 50 chars, total length is 60]': The parameter 'list', in function sum(), cannot be null or empty.
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'C Score' as it depends on decision 'Comorbidity Score for Listed Conditions'
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'LACE Score' as it depends on decision 'C Score'
2020-08-20 17:03:21,813 [main] ERROR Unable to evaluate decision 'Risk of Re-Admission' as it depends on decision 'LACE Score' {code}
> DMN align FEEL behaviour when sum([])
> --------------------------------------
>
> Key: DROOLS-5438
> URL: https://issues.redhat.com/browse/DROOLS-5438
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
> Attachments: image-2020-06-17-12-38-33-381.png
>
>
> from the DMN spec !image-2020-06-17-12-38-33-381.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5590) org.kie:kie-maven-plugin:7.43.0-SNAPSHOT:generateModel failed: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
by Ciprian Chiru (Jira)
Ciprian Chiru created DROOLS-5590:
-------------------------------------
Summary: org.kie:kie-maven-plugin:7.43.0-SNAPSHOT:generateModel failed: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
Key: DROOLS-5590
URL: https://issues.redhat.com/browse/DROOLS-5590
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.42.0.Final, 7.41.0.Final, 7.40.0.Final, 7.39.0.Final, 7.38.0.Final, 7.37.0.Final, 7.36.0.Final, 7.35.0.Final
Reporter: Ciprian Chiru
Assignee: Luca Molteni
When compiling the rules, _org.kie:kie-maven-plugin::generateModel_ fails with _sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl_
Given the rule below:
{code:java}
import java.util.Map;
import java.util.List;
global java.util.Set controlSet;
rule "will execute per each Measurement having ID color"
no-loop
when
$measurement: Measurement( id == "color", $colorVal : val )
$lst : List() from collect(Measurement())
$selectedList: List() from accumulate(Measurement($m: this) from $lst, collectList(Map.entry($m, $measurement.getListOfCodes())))
then
controlSet.add($colorVal);
end{code}
Fails with the following stack exception:
{code:java}
Caused by: java.lang.ArrayStoreException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
at java.util.stream.Nodes$FixedNodeBuilder.accept (Nodes.java:1230)
at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:195)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1654)
at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474)
at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:550)
at java.util.stream.AbstractPipeline.evaluateToArrayNode (AbstractPipeline.java:260)
at java.util.stream.ReferencePipeline.toArray (ReferencePipeline.java:517)
at org.drools.modelcompiler.builder.generator.DrlxParseUtil.returnTypeOfMethodCallExpr (DrlxParseUtil.java:186)
at org.drools.modelcompiler.builder.generator.ToMethodCall.setCursorForMethodCall (ToMethodCall.java:128)
at org.drools.modelcompiler.builder.generator.ToMethodCall.toMethodCallWithClassCheck (ToMethodCall.java:71)
at org.drools.modelcompiler.builder.generator.visitor.accumulate.AccumulateVisitor.methodCallExprParameter (AccumulateVisitor.java:262)
at org.drools.modelcompiler.builder.generator.visitor.accumulate.AccumulateVisitor.parseFirstParameter (AccumulateVisitor.java:206)
at org.drools.modelcompiler.builder.generator.visitor.accumulate.AccumulateVisitor.visit (AccumulateVisitor.java:186)
at org.drools.modelcompiler.builder.generator.visitor.accumulate.AccumulateVisitor.classicAccumulate (AccumulateVisitor.java:145)
at org.drools.modelcompiler.builder.generator.visitor.accumulate.AccumulateVisitor.visit (AccumulateVisitor.java:128)
at org.drools.modelcompiler.builder.generator.visitor.ModelGeneratorVisitor.visit (ModelGeneratorVisitor.java:139)
at org.drools.compiler.lang.descr.PatternDescr.accept (PatternDescr.java:288)
at org.drools.modelcompiler.builder.generator.visitor.AndVisitor.visit (AndVisitor.java:50)
at org.drools.modelcompiler.builder.generator.visitor.ModelGeneratorVisitor.visit (ModelGeneratorVisitor.java:86)
at org.drools.modelcompiler.builder.generator.ModelGenerator.processRule (ModelGenerator.java:186)
at org.drools.modelcompiler.builder.generator.ModelGenerator.generateModel (ModelGenerator.java:159)
at org.drools.modelcompiler.builder.ModelBuilderImpl.compileKnowledgePackages (ModelBuilderImpl.java:281)
at org.drools.modelcompiler.builder.ModelBuilderImpl.buildRules (ModelBuilderImpl.java:209)
at org.drools.modelcompiler.builder.ModelBuilderImpl.postBuild (ModelBuilderImpl.java:129)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build (CompositeKnowledgeBuilderImpl.java:111)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build (CompositeKnowledgeBuilderImpl.java:97)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages (AbstractKieProject.java:268)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages (AbstractKieProject.java:216)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify (AbstractKieProject.java:80)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject (KieBuilderImpl.java:279)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll (KieBuilderImpl.java:247)
at org.kie.maven.plugin.GenerateModelMojo.generateModel (GenerateModelMojo.java:146)
at org.kie.maven.plugin.GenerateModelMojo.execute (GenerateModelMojo.java:106)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137){code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFCORE-5092) Windows Service cannot be stopped when using custom JAVA_HOME path
by Lukas Vydra (Jira)
[ https://issues.redhat.com/browse/WFCORE-5092?page=com.atlassian.jira.plug... ]
Lukas Vydra commented on WFCORE-5092:
-------------------------------------
Hi, I have been unable to reproduce this exact behavior as you are describing it.
Are there any errors in stderr?
But still, I have investigated the propagation of NOPAUSE env variable and added passing NOPAUSE=Y from service.bat to jboss-cli.bat
> Windows Service cannot be stopped when using custom JAVA_HOME path
> ------------------------------------------------------------------
>
> Key: WFCORE-5092
> URL: https://issues.redhat.com/browse/WFCORE-5092
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Affects Versions: 11.0.0.Final
> Reporter: Walter Raaflaub
> Assignee: Lukas Vydra
> Priority: Major
>
> I am running keycloak in a Wildfly container as a Windows service on Windows Server 2019. The service starts up and works correctly; but it hangs when I try to stop it.
> There is no global JAVA_HOME environment variable defined on the server; I'm using a custom JAVA_HOME path that I have configured in standalone.conf.bat.
> While stopping, the service issues the following warning in stdout.log:
> {noformat}
> JAVA_HOME is not set. Unexpected results may occur.
> Set JAVA_HOME to the directory of your local JDK to avoid this message.
> Drcken Sie eine beliebige Taste . . .
> {noformat}
> (Drücken Sie eine beliebige Taste . . . = German vor "Press any key ...")
> It seems that when stopping the service, the JAVA_HOME setting is not correctly passed to the jboss-cli.bat script. The script seems to be waiting for user input, which is akward in a Windows service. That means that also the NOPAUSE setting is not passed correctly to the jboss-cli.bat script.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFCORE-5097) Add an option to the bootable JAR to display the Galleon config
by Jean Francois Denise (Jira)
Jean Francois Denise created WFCORE-5097:
--------------------------------------------
Summary: Add an option to the bootable JAR to display the Galleon config
Key: WFCORE-5097
URL: https://issues.redhat.com/browse/WFCORE-5097
Project: WildFly Core
Issue Type: Enhancement
Components: Bootable JAR
Reporter: Jean Francois Denise
Assignee: Jean Francois Denise
There is no way to retrieve the galleon configuration used to generate the bootable JAR. This can be helpful to understand the content of a server.
The wildfly-jar-maven-plugin, starting 2.0.0.Beta2 adds the provisioning.xml file that reflects the actual config at the root of the JAR. The option --display-galleon-config displays the content of this file.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13785) org.jboss.bom:jboss-eap-jakartaee8 should list jackson-datatype-*
by Eduardo Martins (Jira)
[ https://issues.redhat.com/browse/WFLY-13785?page=com.atlassian.jira.plugi... ]
Eduardo Martins moved JBEAP-20113 to WFLY-13785:
------------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-13785 (was: JBEAP-20113)
Issue Type: Enhancement (was: Bug)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: BOM
(was: BOM)
Affects Version/s: 20.0.1.Final
(was: 7.3.1.GA)
> org.jboss.bom:jboss-eap-jakartaee8 should list jackson-datatype-*
> -----------------------------------------------------------------
>
> Key: WFLY-13785
> URL: https://issues.redhat.com/browse/WFLY-13785
> Project: WildFly
> Issue Type: Enhancement
> Components: BOM
> Affects Versions: 20.0.1.Final
> Reporter: Eduardo Martins
> Assignee: Eduardo Martins
> Priority: Major
>
> The JakartaEE BOM should include com.fasterxml.jackson.datatype:jackson-datatype-jsr310 and com.fasterxml.jackson.datatype:jackson-datatype-jdk8.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months