Error with new StringBuilder()

Hi,

I have an error and I am not able to find my mistake:

2017-12-29 13:41:54.478 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Alarm ausfuehren': An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.script.actions.LogAction.logInfo(java.lang.String,java.lang.String,java.lang.Object[]) on instance: null
rule "Alarm ausfuehren"
when
	Item Alarm_ausgeloest received update ON
then
	val AlarmText = new StringBuilder()
	AlarmText.append("!!!\rFensterstatus: ")
	logInfo('ALARM', AlarmText)
end

Can someone please help.

At first sight you are missing a toString in the LogInfo. Should be:

logInfo(“ALARM”, AlarmText.toString)

1 Like

deleted