Matteo Mortari created DROOLS-5112:
--------------------------------------
Summary: DMN kie-server wrong cast message reported on FEEL failure
Key: DROOLS-5112
URL:
https://issues.redhat.com/browse/DROOLS-5112
Project: Drools
Issue Type: Bug
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Matteo Mortari
{code:java}
10:38:53,533 ERROR [org.kie.dmn.feel.runtime.functions.AbsFunction] (default task-26)
Error trying to call function abs.: java.lang.ClassCastException:
org.kie.server.services.prometheus.PrometheusMetricsDMNListener cannot be cast to
org.kie.dmn.api.feel.runtime.events.FEELEventListener
at java.lang.Iterable.forEach(Iterable.java:75)
at
org.kie.dmn.feel.lang.impl.FEELEventListenersManager.notifyListeners(FEELEventListenersManager.java:71)
at
org.kie.dmn.feel.lang.impl.FEELEventListenersManager.notifyListeners(FEELEventListenersManager.java:82)
at
org.kie.dmn.feel.lang.impl.EvaluationContextImpl.notifyEvt(EvaluationContextImpl.java:178)
at
org.kie.dmn.feel.runtime.functions.BaseFEELFunction.lambda$invokeReflectively$3(BaseFEELFunction.java:97)
at org.kie.dmn.feel.util.Either.cata(Either.java:70)
at
org.kie.dmn.feel.runtime.functions.BaseFEELFunction.invokeReflectively(BaseFEELFunction.java:96)
at
org.kie.dmn.feel.lang.ast.FunctionInvocationNode.invokeTheFunction(FunctionInvocationNode.java:112)
at
org.kie.dmn.feel.lang.ast.FunctionInvocationNode.evaluate(FunctionInvocationNode.java:90)
at
org.kie.dmn.feel.lang.impl.CompiledExpressionImpl.apply(CompiledExpressionImpl.java:47)
at
org.kie.dmn.feel.lang.impl.InterpretedExecutableExpression.apply(InterpretedExecutableExpression.java:38)
at
org.kie.dmn.feel.lang.impl.InterpretedExecutableExpression.apply(InterpretedExecutableExpression.java:24)
at
org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:114)
at
org.kie.dmn.feel.codegen.feel11.ProcessedExpression.apply(ProcessedExpression.java:22)
at org.kie.dmn.feel.lang.impl.FEELImpl.evaluate(FEELImpl.java:167)
at
org.kie.dmn.core.ast.DMNLiteralExpressionEvaluator.evaluate(DMNLiteralExpressionEvaluator.java:73)
at org.kie.dmn.core.impl.DMNRuntimeImpl.evaluateDecision(DMNRuntimeImpl.java:664)
at org.kie.dmn.core.impl.DMNRuntimeImpl.evaluateAll(DMNRuntimeImpl.java:163)
at
org.kie.dmn.core.internal.utils.DMNEvaluationUtils.evaluate(DMNEvaluationUtils.java:87)
at
org.kie.dmn.core.internal.utils.DMNEvaluationUtils.evaluate(DMNEvaluationUtils.java:51)
at
org.kie.server.services.dmn.ModelEvaluatorServiceBase.evaluateDecisions(ModelEvaluatorServiceBase.java:184)
at
org.kie.server.remote.rest.dmn.ModelEvaluatorResource.evaluateDecisions(ModelEvaluatorResource.java:108)
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)