[Bug Report] Rule 5.1 Paste Error for Conditional Action

Not sure if this is the best place to put a bug, Ive re-reated the same error now twice in Rule Machine but copying and then trying to paste the snippet in the same rule

  • Copy the entire action block
  • Paste
  • Error screen

An unexpected error has occurred trying to load the app. Check Logs for more information.

Error Page

Error: No signature of method: java.util.ArrayList.replace() is applicable for argument types: (java.lang.String, org.codehaus.groovy.runtime.GStringImpl) values: [#, 11] Possible solutions: reverse(), replaceAll(java.util.function.UnaryOperator)

Log

app:6512022-06-10 08:24:25.184 pm errorgroovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.replace() is applicable for argument types: (java.lang.String, org.codehaus.groovy.runtime.GStringImpl) values: [#, 11]
Possible solutions: reverse(), replaceAll(java.util.function.UnaryOperator) on line 2875 (method selectActions)

app:2892022-06-10 08:21:20.898 pm errorgroovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.replace() is applicable for argument types: (java.lang.String, org.codehaus.groovy.runtime.GStringImpl) values: [#, 8]
Possible solutions: reverse(), replaceAll(java.util.function.UnaryOperator) on line 2875 (method selectActions)

Was also able to get the error with just the action block as follows (and copying)

Ping 192.158.2.25
IF (Variable pingStatus(0) = '100') THEN
END-IF

Could you post a screenshot of the Logs when you do this? It will show more information about the error.

the copy/paste was the logs. Maybe I missed some.
Let me recreate and update

Yeah, that was all

I reduced it down to just copy/paste the condition. If I had to guess, I think it has something to do with copying the string variable

Thanks, I will look into it. Are you on 2.3.2?

yep - I think I ran the update earlier this afternoon

Screen Shot 2022-06-10 at 10.07.49 PM

I found this bug. Fix will be in the next release.

4 Likes