You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "tpolaske (via GitHub)" <gi...@apache.org> on 2026/10/09 13:04:13 UTC

[I] DMN 1.5/1.6: typeRef on throws UnsupportedOperationException in 10.2 (regression from 10.1) [incubator-kie]

tpolaske opened a new issue, #7182:
URL: https://github.com/apache/incubator-kie/issues/7182

   ### Describe the bug
   
     In 10.2.0, `org.kie.dmn.model.v1_5.TUnaryTests` (and v1_6) changed from extending `v1_5.TExpression` to `impl.AbstractTUnaryTests`. `AbstractTUnaryTests.setTypeRef()` throws `UnsupportedOperationException("Not on DMN v1.2")`.
   
     The DMN 1.5 and 1.6 schemas (including the XSDs shipped in `kie-dmn-validation-10.2.0`) define `tUnaryTests extends tExpression`, which carries an optional `typeRef`. So `<inputValues typeRef="string">` is valid, but it can no longer be unmarshalled.
   
     The KIE DMN editor (kie-tools 10.1) writes this attribute: changing an input clause's **Type** in the side panel creates `<inputValues typeRef="…"><text></text></inputValues>`. Models authored in the 10.1 editor stop loading on the 10.2 engine.
   
     **Steps to reproduce**
     1. Take any DMN 1.5 model with a decision table and add `typeRef="string"` to an input clause's `<inputValues>`.
     2. Build it with `DMNRuntimeBuilder.fromDefaults().buildConfiguration().fromResources(...)` on 10.2.0.
   
     **Expected:** The model builds (as on 10.1.0).
     **Actual:** The marshaller swallows the `UnsupportedOperationException`, `Definitions` comes back null, and the build fails later with
     `NullPointerException: "definitions" is null`.
   
     **Suggested fix:** Have v1_5/v1_6 `TUnaryTests` support `typeRef` again (override get/setTypeRef, or restore the `TExpression` parent), as the spec allows.
   
   ### Expected behavior
   
   _No response_
   
   ### Actual behavior
   
   _No response_
   
   ### How to Reproduce?
   
   _No response_
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   _No response_
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   _No response_


-- 
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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] DMN 1.5/1.6: typeRef on throws UnsupportedOperationException in 10.2 (regression from 10.1) [incubator-kie]

Posted by "gitgabrio (via GitHub)" <gi...@apache.org>.
gitgabrio commented on issue #7182:
URL: https://github.com/apache/incubator-kie/issues/7182#issuecomment-6125108085

   Thanks @tpolaske to report that!
   And thanks to @yesamer to fix it so fast!
   


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] DMN 1.5/1.6: typeRef on throws UnsupportedOperationException in 10.2 (regression from 10.1) [incubator-kie]

Posted by "tpolaske (via GitHub)" <gi...@apache.org>.
tpolaske commented on issue #7182:
URL: https://github.com/apache/incubator-kie/issues/7182#issuecomment-6082833387

   > 2\. Hi [@tpolaske](https://github.com/tpolaske),
   >         I'm having some difficulty understanding the nature of the issue.
   >         Is your DMN file based on DMN 1.5 or DMN 1.6?
   >         Could you please provide clear steps to reproduce the problem, including any relevant inputs, expected results, and actual results (and a reproducer, if possible)?
   >         Thanks!
   
     Hi @yesamer, thanks for taking a look!
   
     It affects both **DMN 1.5 and DMN 1.6**. I've attached a minimal reproducer (`inputValuesTypeRef_dmn15.dmn`). The only notable part is this input
     clause:
   
         <dmn:inputValues id="_B10" typeRef="string">
           <dmn:text></dmn:text>
         </dmn:inputValues>
   
     This exact shape is written by the KIE DMN editor (10.1): selecting an input column's **Type** in the side panel adds `typeRef` to `<inputValues>`. It's valid per the 1.5/1.6 XSD (`tUnaryTests extends tExpression`, which has an optional `typeRef`).
   
     **Steps to reproduce**
     1. Build the attached model with kie-dmn-core 10.2.0:
        ```java
        DMNRuntime runtime = DMNRuntimeBuilder.fromDefaults()
            .buildConfiguration()
            .fromResources(List.of(ResourceFactory.newClassPathResource("inputValuesTypeRef_dmn15.dmn")))
            .getOrElseThrow(RuntimeException::new);
     2. Evaluate decision Approval with input RiskCategory = "High".
   
     Expected (behavior on 10.1.0): the model builds and Approval = "Review".
   
     Actual (10.2.0): unmarshalling fails with UnsupportedOperationException: Not on DMN v1.2 from AbstractTUnaryTests.setTypeRef. The marshaller swallows it, Definitions comes back null, and the build then fails with NullPointerException: Cannot invoke "Definitions.getNamespace()" because "definitions" is null.
   
     If you remove typeRef="string" from <inputValues>, the same model builds and evaluates correctly on 10.2.0.
   
     Likely cause: in 10.2.0, v1_5.TUnaryTests / v1_6.TUnaryTests extend impl.AbstractTUnaryTests (previously TExpression), whose setTypeRef throws.
   


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] DMN 1.5/1.6: typeRef on throws UnsupportedOperationException in 10.2 (regression from 10.1) [incubator-kie]

Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on issue #7182:
URL: https://github.com/apache/incubator-kie/issues/7182#issuecomment-6081980388

   Hi @tpolaske,
   I'm having some difficulty understanding the nature of the issue.
   Is your DMN file based on DMN 1.5 or DMN 1.6?
   Could you please provide clear steps to reproduce the problem, including any relevant inputs, expected results, and actual results?
   Thanks!
   


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] DMN 1.5/1.6: typeRef on throws UnsupportedOperationException in 10.2 (regression from 10.1) [incubator-kie]

Posted by "tpolaske (via GitHub)" <gi...@apache.org>.
tpolaske commented on issue #7182:
URL: https://github.com/apache/incubator-kie/issues/7182#issuecomment-6088073461

   sorry forgot to add the attachment.  see this attached dmn in the zip
   [kieupgradeissue.dmn.zip](https://github.com/user-attachments/files/33265099/kieupgradeissue.dmn.zip)


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] DMN 1.5/1.6: typeRef on throws UnsupportedOperationException in 10.2 (regression from 10.1) [incubator-kie]

Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer closed issue #7182: DMN 1.5/1.6: typeRef on <inputValues> throws UnsupportedOperationException in 10.2 (regression from 10.1)
URL: https://github.com/apache/incubator-kie/issues/7182


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org