[JBoss JIRA] (DROOLS-1724) DRL compilation error on a generic type property
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1724?page=com.atlassian.jira.plugi... ]
Mario Fusco commented on DROOLS-1724:
-------------------------------------
The fix is in mvel so I'll have to deploy a new release of it and make drools to use it. This will happen in drools 7.x but I think that drools 6.x will keep running on the old mvel. However when the new mvel release will be ready you could try to exclude the old one and add the new in your pom file (even if at the moment I cannot guarantee they will be 100% compatible),
> DRL compilation error on a generic type property
> ------------------------------------------------
>
> Key: DROOLS-1724
> URL: https://issues.jboss.org/browse/DROOLS-1724
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.5.0.Final
> Environment: drools 6.5.0.Final / java 1.8.0_131
> Reporter: Ryo Murai
> Assignee: Mario Fusco
> Fix For: 7.3.1.Final
>
>
> I got a DRL compilation error on accessing through a generic type property. Minimized object definition is below.
> {code:borderStyle=solid}
> public interface OrderLine<T extends Product> {
> T getProduct();
> }
> public interface Product {
> String getId();
> String getCategory();
> }
> // and I have concrete classes, ex. Book, BookOrderLine<Book>, DVD, DVDOrderLine<DVD>, ... etc
> {code}
> DRL(snippet) is here
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // compilation failed
> Product(
> id == $orderLine.product.id || category == $orderLine.product.category
> ) from discountProducts
> {code}
> This causes below exception.
> {panel}
> java.lang.RuntimeException: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules/checkorder-not-compiled.drl, line=15, column=0 text=Unable to Analyse Expression id == $orderLine.product.id || category == $orderLine.product.category:
> [Error: unable to resolve method using strict-mode: java.lang.Object.category()]
> [Near : {... Line.product.id || category == $orderLine.product.category ....}]
> ^
> [Line: 15, Column: 2]]]
> {panel}
> This is weird because it won't occur when the restriction has single condition like below. Drools could analyze this expression.
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // this is compiled, even if `Product(id == $orderLine.product.id)`
> Product(
> category == $orderLine.product.category
> ) from discountProducts
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (DROOLS-1724) DRL compilation error on a generic type property
by Ryo Murai (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1724?page=com.atlassian.jira.plugi... ]
Ryo Murai commented on DROOLS-1724:
-----------------------------------
Thank you for the immediate fix ! Is there any plan to include this fix in version 6.x releases ?
> DRL compilation error on a generic type property
> ------------------------------------------------
>
> Key: DROOLS-1724
> URL: https://issues.jboss.org/browse/DROOLS-1724
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.5.0.Final
> Environment: drools 6.5.0.Final / java 1.8.0_131
> Reporter: Ryo Murai
> Assignee: Mario Fusco
> Fix For: 7.3.1.Final
>
>
> I got a DRL compilation error on accessing through a generic type property. Minimized object definition is below.
> {code:borderStyle=solid}
> public interface OrderLine<T extends Product> {
> T getProduct();
> }
> public interface Product {
> String getId();
> String getCategory();
> }
> // and I have concrete classes, ex. Book, BookOrderLine<Book>, DVD, DVDOrderLine<DVD>, ... etc
> {code}
> DRL(snippet) is here
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // compilation failed
> Product(
> id == $orderLine.product.id || category == $orderLine.product.category
> ) from discountProducts
> {code}
> This causes below exception.
> {panel}
> java.lang.RuntimeException: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules/checkorder-not-compiled.drl, line=15, column=0 text=Unable to Analyse Expression id == $orderLine.product.id || category == $orderLine.product.category:
> [Error: unable to resolve method using strict-mode: java.lang.Object.category()]
> [Near : {... Line.product.id || category == $orderLine.product.category ....}]
> ^
> [Line: 15, Column: 2]]]
> {panel}
> This is weird because it won't occur when the restriction has single condition like below. Drools could analyze this expression.
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // this is compiled, even if `Product(id == $orderLine.product.id)`
> Product(
> category == $orderLine.product.category
> ) from discountProducts
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (WFCORE-3271) Remove ignored test from HandlerOperationsTestCase
by Nikoleta Žiaková (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3271?page=com.atlassian.jira.plugi... ]
Nikoleta Žiaková moved JBEAP-13097 to WFCORE-3271:
--------------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-3271 (was: JBEAP-13097)
Issue Type: Task (was: Bug)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Logging
(was: Logging)
Affects Version/s: (was: 7.1.0.CR1)
> Remove ignored test from HandlerOperationsTestCase
> --------------------------------------------------
>
> Key: WFCORE-3271
> URL: https://issues.jboss.org/browse/WFCORE-3271
> Project: WildFly Core
> Issue Type: Task
> Components: Logging
> Reporter: Nikoleta Žiaková
> Assignee: Nikoleta Žiaková
> Priority: Minor
>
> JIRA WFCORE-479 to update and unignore {{testFormats()}} has been rejected. Agreed with [~jamezp] to remove this test.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (WFCORE-3268) module defined in jboss-deployment-structure.xml with fails to parse when annotations=true
by Brad Maxwell (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3268?page=com.atlassian.jira.plugi... ]
Brad Maxwell updated WFCORE-3268:
---------------------------------
Attachment: application-exception-using-dynamic-module.ear
> module defined in jboss-deployment-structure.xml with fails to parse when annotations=true
> ------------------------------------------------------------------------------------------
>
> Key: WFCORE-3268
> URL: https://issues.jboss.org/browse/WFCORE-3268
> Project: WildFly Core
> Issue Type: Bug
> Components: Server
> Affects Versions: 3.0.2.CR1
> Reporter: Brad Maxwell
> Assignee: Brad Maxwell
> Attachments: application-exception-using-dynamic-module.ear
>
>
> {code}
> 21:15:06,004 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "application-exception-using-dynamic-module.ear")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [
> "jboss.deployment.subunit.\"application-exception-using-dynamic-module.ear\".\"application-exception-client-singleton.jar\".PARSE is missing [jboss.module.service.\"deployment.application-exception-api\".main]",
> "jboss.deployment.subunit.\"application-exception-using-dynamic-module.ear\".\"application-exception-ejb.jar\".PARSE is missing [jboss.module.service.\"deployment.application-exception-api\".main]"
> ]}
> 21:15:06,027 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "application-exception-using-dynamic-module.ear" (runtime-name : "application-exception-using-dynamic-module.ear")
> 21:15:06,028 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
> WFLYCTL0184: New missing/unsatisfied dependencies:
> service jboss.module.service."deployment.application-exception-api".main (missing) dependents: [service jboss.deployment.subunit."application-exception-using-dynamic-module.ear"."application-exception-ejb.jar".PARSE, service jboss.deployment.subunit."application-exception-using-dynamic-module.ear"."application-exception-client-singleton.jar".PARSE]
> {code}
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
> <module name="deployment.application-exception-api">
> <resources>
> <resource-root path="application-exception-api.jar"/>
> </resources>
> <dependencies>
> <module name="javaee.api" export="true"/>
> <module name="javax.api" export="true"/>
> </dependencies>
> </module>
> <sub-deployment name="application-exception-ejb.jar">
> <dependencies>
> <module name="deployment.application-exception-api" annotations="true" meta-inf="export"/>
> </dependencies>
> </sub-deployment>
> </jboss-deployment-structure>
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months