Error: No signature of method: java.lang.Integer.size() is applicable for argument types: () values: [] Possible solutions: is(java.lang.Object), find(), use([Ljava.lang.Object;), div(java.lang.Character), find(groovy.lang.Closure), times(groovy.lang.Closure)
The job still runs fine but I can't edit it anymore I just keep getting this error. Any ideas.
Hubitat Elevation® Platform Version
2.2.4.153
Hardware Version
Rev C-5
Please use a screenshot to show logs, not copy paste. Is that the entire error message? Usually there is a line number. I may be able to help you get it fixed, but need to know more.
Sorry I thought text was better. This was the error on the screen but I went to the logs and pulled this out, does this help?
Yes, now I know what the issue is. I can help you fix it, although I'm not sure yet where the bug that causes it is.
Can you get into the hub from a computer instead of your phone? If so, please take a screenshot of the top part of the Application State from the App Status page (gear icon left of the app name in the App List).
Go into Rule Machine and Export that rule, it will download a file to your PC (need to use a computer, not your phone). Below is the simple edit to that file to fix the rule.
If you search in that file for this string:
"wait":
You will find that most of those are
"wait":null
There will be one that has "wait": followed by a number. Change that number to null like the others, and save the file. Next, import that rule back into Rule Machine. You can change the name of the rule when you import it. Please take a screenshot of the rule for me on your computer so I can figure out what is causing the bug. It's a Wait action, but something in particular about it.
Please take a backup of your hub before you do all of this just in case.
Bruce this is the same error you were trying to help me with this past weekend and I also saw someone else post the same error. My rule is still broken as I need to use my dev hub to restore an older backup to see the rule. Any chance of a solution to prevent this from happening?
I need to see the restored rule to find what it is about the Wait that is blowing up. Follow those instructions above....
@bravenel finally getting back to this, here is the restored rule, notice the blank line I highlighted where a wait for sunrise event was previously. This was the wait causing the rule to blow up.
Rule Screenshot
@bravenel that seems to have fixed it! Thank you!