[jboss-jira] [JBoss JIRA] (JBRULES-3499) MVEL failing on new added packages

Mauricio Salatino (JIRA) jira-events at lists.jboss.org
Wed May 9 10:45:18 EDT 2012


Mauricio Salatino created JBRULES-3499:
------------------------------------------

             Summary: MVEL failing on new added packages
                 Key: JBRULES-3499
                 URL: https://issues.jboss.org/browse/JBRULES-3499
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Mauricio Salatino
            Assignee: Mark Proctor
             Fix For: 5.4.0.Final, 5.5.0.Beta1
         Attachments: mvel-issue.zip

In this simple rule:
 when
        r: Request( amount > 500 )
        String( this == r.id ) from requests

For some reason MVEL is failing with the following exception:
Testcase: hello(com.salaboy.mvelissue.MvelTest):	Caused an ERROR
unable to invoke method: com.salaboy.mvelissue.Request.getId: target of method is null
java.lang.RuntimeException: unable to invoke method: com.salaboy.mvelissue.Request.getId: target of method is null
	at org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:66)

When a new set of rules is being added to the kbase and an activation is generated.
I've included a version of the failing rule working with a workaround, but both should work

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list