When moving to OH2 I found that the logs are hardly of use for a non- Java programmer.
On the one hand I am receiving tons of Java Error which I do not understand anyway.
But if I have a bug in this infamous DSL still only documented via “Google”, the error messages are non meaningful for me.
e.g.
2016-11-27 09:08:01.283 [ERROR] [org.quartz.core.ErrorLogger ] - Job (DEFAULT.all.rules#Track Fernsehzeit#0 * * * * ? threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)[102:org.eclipse.smarthome.core.scheduler:0.9.0.201611241831]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[102:org.eclipse.smarthome.core.scheduler:0.9.0.201611241831]
Caused by: java.lang.NullPointerException
at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleContextHelper.getContext(RuleContextHelper.java:64)[126:org.eclipse.smarthome.model.rule.runtime:0.9.0.201611241831]
at org.eclipse.smarthome.model.rule.runtime.internal.engine.ExecuteRuleJob.execute(ExecuteRuleJob.java:60)[126:org.eclipse.smarthome.model.rule.runtime:0.9.0.201611241831]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[102:org.eclipse.smarthome.core.scheduler:0.9.0.201611241831]
... 1 more
So reading the above, I now know that there must be “something” wrong a specific rule.
At least it points me to the name of the related rule.
If this rule is longer than a few lines, debug is getting super frustating.
Is there a user mode in the karaf console setting which enables a “user log”?