[rules-users] NullPointerException when updating a fact

Stephen Masters stephen.masters at me.com
Tue Jul 30 06:07:37 EDT 2013


It may be worth looking at what exception is being thrown now. You need to ensure that none of those classes have static flags on them (or the Java won't compile), and the Message.message method needs to become a constructor instead of some kind of static factory, so that the RHS of your rule inserts a "new Message(...)". That's all I needed to do to get it working.


On 30 Jul 2013, at 10:31, schenka7 <eugen.berenstein at gmail.com> wrote:

> Hi Steve,
> 
> I've removed the classes from Main and put them each in its own file
> (FirstName.class, Value.class, ...). This is how I intended it to be in the
> first place. And it DOESN'T WORK!
> 
> 
> 
> --
> View this message in context: http://drools.46999.n3.nabble.com/NullPointerException-when-updating-a-fact-tp4025181p4025210.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list