I have a weird problem regarding the rules. Since I started openHAB (on a raspberry pi) the last time, I’ve got a bunch of exceptions. E.g.:
[e.x.l.lazy.LazyLinkingResource] - resolution of uriFragment 'xtextLink_::0.2.4.2.0.0.0.7.7::0::/1' failed. java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.eclipse.emf.common.notify.Adapter;
[.x.c.types.util.TypeReferences] - Couldn't find JvmType for name 'org.openhab.model.script.lib.NumberExtensions' in context org.eclipse.xtext.xbase.resource.XbaseResource@1313a0c uri='my.rules' java.lang.NullPointerException: null
Everything was running ok before so there has not been any error within the rules. I later thought of maybe this comes from not loaded all items when the rules are invoked, so I did following:
- stopped openHAB
- removed the rules
- started openHAB
- waited until system has been started
- deployed rule after rule with a few seconds of delay
After this, I haven’t got any exception so far.
Did anyone experience a similiar problem? Is there a way to avoid the manuell deployment of the rules?