I have the following rule in Rule Machine, and it appears to be working exactly as I expect it to (all actions are performs just as I intend). BUT -- when I look at the logs, every execution of this rule ends with "java.lang.NullPointerException: null on line 6893 (method allHandler)". Here is the rule in question ...
It uses two local variables ... and they also work as expected ...
I tried upgrading to the latest version of code, but that did not help. I also tried rebooting my HE, but that did not help. Is there a troubleshooting method for this type of error?
Just in case ... here is an example of the full log of this rule being executed...
Which version of Rule is this? (Rule-4.1, Rule 5.0) ...
Rule 5.0 - I wasn't aware I could select
I will look into it. It doesn't appear that it causes any problem with your rule, but still, it shouldn't be throwing that error.
Correct -- the rule operates exactly as I expect it to. But, of course, every execution results in a log error, whether the rule is logging or not.
OK -- I've been messing around in that rule. I've change several key aspects (including what local variables I am working with). The new version is as shown below.
BUT ....
I can't tell you what change caused this ... but the NullPointer problem seems to have disappeared .... at least for the last time I watched it run!! I'll write again if this is temporary. But ... my latest log has no error message in it!! Woohoo. Wish I could help you make the product better by telling you specifically which change resolved this ...
1 Like