Closed fbodart closed 10 years ago
which issues did you observe? Any log statements available?
Hi, I'll update with logs as soon as i'll be Back home. Regards
Le 17 févr. 2014 à 21:46, "Thomas E.-E." notifications@github.com a écrit :
which issues did you observe? Any log statements available?
— Reply to this email directly or view it on GitHub.
This might be caused by the missing method pushNotification("Title", "Message", Priority) which was available in 1.3. Now you have to use pushNotification("API-Key", "Title", "Message", Priority) when you do not want to use the default priority
Hi , Here is the log of the error. Regards
Issue report OpenHab V1.4 and addn Prowl 1.4 (when replacing Prowl1.4 by prwl1.3.1 all is right)
rules :
import org.openhab.core.library.types.* import org.openhab.core.persistence.* import org.openhab.model.script.actions.*
/ Message via prowl / var Number Prowl_Priority=1 var String Prowl_Message = "Openhab[T]:" var String Prowl_Subject = " "
rule Startup when System started then Prowl_Message = "OpenHab starting" pushNotification(Prowl_Subject, Prowl_Message, Prowl_Priority) end
rule keepalive
when
Time cron "0 0 8 * * ?" or
Time cron "0 0 14 * * ?" or
Time cron "0 0 20 * * ?"
then
Prowl_Message = "Temperature interieure :" + Oregon_Salon_Temp.state + " C\n"
Prowl_Message = Prowl_Message + "Humidite interieure :" + Oregon_Salon_Hum.state + " %\n"
Prowl_Message = Prowl_Message + "Temperature exterieure :" + Oregon_Entree_Temp.state + " C\n"
Prowl_Message = Prowl_Message + "Humidite interieure :" + Oregon_Entree_Hum.state + " %\n"
pushNotification(Prowl_Subject, Prowl_Message, Prowl_Priority)
end
* First error *** 10:50:04.704 ERROR o.o.m.r.i.engine.RuleEngine[:267]- Error during the execution of startup rule 'Startup': Could not invoke method: org.openhab.action.prowl.internal.Prowl.pushNotification(java.lang.String,java.lang.String,java.lang.String) on instance: null
* Second error ***
10:50:12.653 ERROR o.o.m.r.i.e.ExecuteRuleJob[:57]- Error during the execution of rule keepalive java.lang.IllegalStateException: Could not invoke method: org.openhab.action.prowl.internal.Prowl.pushNotification(java.lang.String,java.lang.String,java.lang.String) on instance: null at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:738) at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._featureCallOperation(XbaseInterpreter.java:713) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) at org.openhab.model.script.interpreter.ScriptInterpreter.internalFeatureCallDispatch(ScriptInterpreter.java:69) at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._evaluateAbstractFeatureCall(XbaseInterpreter.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:218) at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._evaluateBlockExpression(XbaseInterpreter.java:321) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:218) at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.evaluate(XbaseInterpreter.java:204) at org.openhab.model.script.internal.engine.ScriptImpl.execute(ScriptImpl.java:59) at org.openhab.model.rule.internal.engine.ExecuteRuleJob.execute(ExecuteRuleJob.java:55) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:729) ... 26 common frames omitted
Juelicher is right. pushNotification 1.4 needs now Api-Key at first parameter. using pushNotification("API-Key", "Title", "Message", Priority) with prowl1.4 is right for me now. Issue could be close but this change wasn't notified anywhere. Regards
Hi,
I've installed OpenHab V1.4 with its addons ( i previousy used V1.3). Prowl 1.4 has some issue and doesn't send any message. I've replaced it with the V1.3 and all is fine now ( Openhab V1.4+Prowl V1.3).
Any Idea?
Regards.