[BUG REPORT] Rule Machine: Repeat Until with variable for Repeat Interval

@bcopeland, when using a variable for the repeat interval the rule throws an exception when executed:

2023-03-26 07:50:48.161 AM [error] (http://10.136.1.167/logs#) java.lang.NullPointerException: Cannot invoke method toInteger() on null object on line 3069 (method mainPage)

It does not delay at all, and after running the number of iterations specified it just sits on the "Until" condition forever. The rule is then irrecoverably broken.

This only happened when using a variable interval on the basic "Repeat Actions" which I ended with "Until". Using a variable interval on "Repeat While" seems to work fine.

This would probably be one for @bravenel.

Can you share a screenshot of the rule which causes the issue and also a screenshot of the logs (with logging turned on) showing the error and what happened before?

Please show this rule.

@bravenel, here is a part of the log showing where it stopped running:

Here is the current rule (slightly modified from the one that failed), and also NOW CHANGED to use "While" instead since it works (and also turned out to be more appropriate):

It doesn't help find the issue with logs from one rule and showing a different rule. I tried a rule based on your description and it had no errors. ??

I don't know what to tell you. I just cloned and modified the rule to put it back to the original form with the "Until" and it worked properly. I assure you that what I described was happening which you can see in the log - in fact I even restored from a backup (since the rule had become inaccessible) and the problem repeated (which required yet another restore). At that point, I changed the loop and the problem went away...

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.