Archive

Archive for January, 2010

Avoid an MVEL Bug In Drools Snapshots

January 20th, 2010

If you’re working with Drools trunk snapshots, you may be tripping over a bug in MVEL that caused me to lose about a day. On the RHS (right-hand side, the consequence) of my rule I had the following:

Which resulted in this error: [Error: unable to access property (null parent): $obj]

However, if I call an accessor or otherwise do something with the object before passing it off to the constructor, it works fine:

Right now this appears to be a problem in MVEL, but I don’t know enough about the internals of Drools of MVEL to say for sure. Ideally this workaround will keep you moving forward.

nick Entry ,