[
http://jira.jboss.com/jira/browse/JBRULES-1030?page=all ]
Edson Tirelli closed JBRULES-1030.
----------------------------------
Resolution: Done
Fixed and added unit test. For now we are raising a generic RuntimeDroolsException with a
specific message stating the field that was not found for the given class. Example:
Caused by: org.drools.RuntimeDroolsException: Field/method 'xyz' not found for
class 'org.drools.util.asm.TestBean'
In the future, if needed we can replace that for a specifc exception class.
Thanks for reporting.
NPE Building Rule with inexistent field
---------------------------------------
Key: JBRULES-1030
URL:
http://jira.jboss.com/jira/browse/JBRULES-1030
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.0.GA
Reporter: Yuri de Wit
Assigned To: Edson Tirelli
Fix For: 4.0.1
Create a rule that references a field that does not exist. The code at line 105 of
package org.drools.base.ClassFieldExtractorFactory is not checking for nulls.
The problem is that there is no error message and no way to know what the problem is
except using the trial and error method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira