philipdnichols opened a new issue, #6468:
URL: https://github.com/apache/incubator-kie-drools/issues/6468
We've recently noticed that if you construct a DMN with a BKM that is
"freshly dragged" into the canvas, the KIE validator and the KIE runtime build
process crashes because of an NPE instead of reporting the actual issue.
```
ERROR [XNIO-1 task-3] : Validation of the DMN Model cannot be performed
because of some runtime exception 'Cannot invoke
"org.kie.dmn.model.api.FunctionDefinition.getExpression()" because the return
value of "org.kie.dmn.model.api.BusinessKnowledgeModel.getEncapsulatedLogic()"
is null'. - {acceptLanguage=en-US,en;q=0.9,es;q=0.8,
correlationId=bceb67fd-0d07-4f79-981a-4011a7a281fc,
decisionModel=1257e115-8218-492f-b168-8f259471254b, gwLanguage=en,
gwLocale=en-US, operation=DECISION_MODEL_VALIDATE_API,
packageId=7cb97fae-78eb-4f63-9279-13fa17a4bd6a, planet=phildesign, star=dvcrnx,
tenant=xapppltfrm}
2025-09-25T14:50:25,061 DEBUG [XNIO-1 task-3] : Validation of the DMN Model
cannot be performed because of some runtime exception 'Cannot invoke
"org.kie.dmn.model.api.FunctionDefinition.getExpression()" because the return
value of "org.kie.dmn.model.api.BusinessKnowledgeModel.getEncapsulatedLogic()"
is null'. - {acceptLanguage=en-US,en;q=0.9,es;q=0.8,
correlationId=bceb67fd-0d07-4f79-981a-4011a7a281fc,
decisionModel=1257e115-8218-492f-b168-8f259471254b, gwLanguage=en,
gwLocale=en-US, operation=DECISION_MODEL_VALIDATE_API,
packageId=7cb97fae-78eb-4f63-9279-13fa17a4bd6a, planet=phildesign, star=dvcrnx,
tenant=xapppltfrm}
java.lang.NullPointerException: Cannot invoke
"org.kie.dmn.model.api.FunctionDefinition.getExpression()" because the return
value of "org.kie.dmn.model.api.BusinessKnowledgeModel.getEncapsulatedLogic()"
is null
at
org.kie.dmn.core.compiler.BusinessKnowledgeModelCompiler.compileNode(BusinessKnowledgeModelCompiler.java:99)
at
org.kie.dmn.core.compiler.DMNCompilerImpl.processDrgElements(DMNCompilerImpl.java:383)
at
org.kie.dmn.core.compiler.DMNCompilerImpl.compile(DMNCompilerImpl.java:220)
at
org.kie.dmn.validation.DMNValidatorImpl$ValidatorBuilderImpl.validateDMNResources(DMNValidatorImpl.java:385)
at
org.kie.dmn.validation.DMNValidatorImpl$ValidatorBuilderImpl.processDMNResourcesAndValidate(DMNValidatorImpl.java:327)
at
org.kie.dmn.validation.DMNValidatorImpl$ValidatorBuilderImpl.theseModels(DMNValidatorImpl.java:319)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]