[jboss-jira] [JBoss JIRA] (DROOLS-4542) Executable model compilation fails with map modification in action

Hiroko Miura (Jira) issues at jboss.org
Wed Sep 18 00:52:00 EDT 2019


     [ https://issues.jboss.org/browse/DROOLS-4542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiroko Miura updated DROOLS-4542:
---------------------------------
    Environment: 
- 7.24.0.Final and later version
- building executable model 
- dialect "mvel"

  was:
- 7.24.0.Final and later version
- building executable model 



> Executable model compilation fails with map modification in action
> ------------------------------------------------------------------
>
>                 Key: DROOLS-4542
>                 URL: https://issues.jboss.org/browse/DROOLS-4542
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine, executable model
>    Affects Versions: 7.24.0.Final, 7.27.0.Final
>         Environment: - 7.24.0.Final and later version
> - building executable model 
> - dialect "mvel"
>            Reporter: Hiroko Miura
>            Assignee: Mario Fusco
>            Priority: Major
>              Labels: support
>         Attachments: generateModel-build-error.zip
>
>
> The following expression on update of Map in RHS causes an error when building executable model.
> * Pattern1
> {noformat}
>               m.mapVal["rule1"] = "value1";
> {noformat}
> * Error1 (NPE)
> {noformat}
> [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel (default-generateModel) on project build-error: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel failed.: NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel (default-generateModel) on project build-error: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel failed.
> {noformat}
> or
> * Pattern2
> {noformat}
>               m.getMapVal().put( "rule2", "value2" );
> {noformat}
> * Error2
> {noformat}
> [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel (default-generateModel) on project build-error: A type incompatibility occurred while executing org.kie:kie-maven-plugin:7.24.0.Final:generateModel: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
> {noformat}
> This does not happen with 7.23.0.Final.



--
This message was sent by Atlassian Jira
(v7.13.5#713005)


More information about the jboss-jira mailing list