Seite 1 von 2

Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 10. Aug 2018 09:29
von exotoxin
Wie im Titel beschrieben bekomme ich meine MySensors nicht zum laufen.
Die Kommunikation über RS485 Funktioniert. Ich sehe auf dem Raspi und dem Arduino Daten die hin und her geschickt werden.
Ich kenn mich mit Java überhaupt nicht aus. Hat jemand einen Rat? Wäre schön wenn das läuft. Würde ungern auf fertige Systeme zurückgreifen müssen.
Leider steht im Log (Sobald ich einen Sensor anlege):



2018-08-10 09:09:46.394 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.dispose()' on 'org.openhab.binding.mysensors.handler.MySensorsThingHandler@1232352': null

java.lang.NullPointerException: null

at org.openhab.binding.mysensors.handler.MySensorsThingHandler.dispose(MySensorsThingHandler.java:85) [206:org.openhab.binding.mysensors:2.2.0.201710190834]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-10 09:09:46.402 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occurred while disposing handler of thing 'mysensors:motion:385c69ce': null

java.lang.NullPointerException: null

at org.openhab.binding.mysensors.handler.MySensorsThingHandler.dispose(MySensorsThingHandler.java:85) [206:org.openhab.binding.mysensors:2.2.0.201710190834]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

==> /var/log/openhab2/events.log <==

2018-08-10 09:09:46.423 [hingStatusInfoChangedEvent] - 'mysensors:motion:385c69ce' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

==> /var/log/openhab2/openhab.log <==

2018-08-10 09:10:37.869 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.mysensors.handler.MySensorsThingHandler@be7180': null

java.lang.NullPointerException: null

at org.openhab.binding.mysensors.handler.MySensorsThingHandler.getBridgeHandler(MySensorsThingHandler.java:261) [206:org.openhab.binding.mysensors:2.2.0.201710190834]

at org.openhab.binding.mysensors.handler.MySensorsThingHandler.initialize(MySensorsThingHandler.java:75) [206:org.openhab.binding.mysensors:2.2.0.201710190834]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

==> /var/log/openhab2/events.log <==

2018-08-10 09:10:37.874 [hingStatusInfoChangedEvent] - 'mysensors:motion:a81549e7' changed from UNINITIALIZED to INITIALIZING

==> /var/log/openhab2/openhab.log <==

2018-08-10 09:10:37.877 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occurred while initializing handler of thing 'mysensors:motion:a81549e7': null

java.lang.NullPointerException: null

at org.openhab.binding.mysensors.handler.MySensorsThingHandler.getBridgeHandler(MySensorsThingHandler.java:261) [206:org.openhab.binding.mysensors:2.2.0.201710190834]

at org.openhab.binding.mysensors.handler.MySensorsThingHandler.initialize(MySensorsThingHandler.java:75) [206:org.openhab.binding.mysensors:2.2.0.201710190834]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [101:org.eclipse.smarthome.core:0.10.0.oh230]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

==> /var/log/openhab2/events.log <==

2018-08-10 09:10:37.896 [hingStatusInfoChangedEvent] - 'mysensors:motion:a81549e7' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR)

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 10. Aug 2018 12:43
von udo1toni
Wie hast Du das Binding installiert? über den Marketplace? Wie sieht Deine Konfiguration aus? sicher, dass da kein Fehler drin ist? schon mal openHAB neu gestartet?

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 10. Aug 2018 14:12
von exotoxin
Installiert habe ich das wie es auf der MySensors Seite beschrieben ist.
Welche Konfiguration? Habe Node_ID 10 und Child_ID 1 eingetragen. Sobald ich das dann speicher steht das aus meinem ersten Beitrag im Log.
Langsam glaube ich das da irgendetwas mit Benutzerrechten nicht hin haut.

Mit java kann ich nicht auf den UART (GPIO) zugreifen. Mit minicom kann ich aber lesen.

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 10. Aug 2018 22:31
von udo1toni
Also ich sehe da mindestens noch eine Bridge in der entweder eine IP oder aber ein serieller Port anzugeben ist. Außerdem lese ich beim drüber schauen etwas von Mosquitto, keine Ahnung, wie das dann mit Mysensors zusammen hängt.
Ansonsten kannst Du Mysensors wie erwähnt auch über den Market installieren (den musst Du ebenfalls vorher installieren, dann wird MySensors umgehend als installierbares Binding angezeigt. Eventuell funktioniert ide Version vom Marketplace besser.

Schau Dir mal https://github.com/tobof/openhab2-addon ... figuration an, das ist das Repository des Bindings.

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 12. Aug 2018 19:38
von exotoxin
So bin etwas weiter gekommen denke ich. Jetzt bekomme ich aber ne andere Meldung.

2018-08-12 19:35:44.336 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.mysensors-2.3.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [208]

Another singleton bundle selected: osgi.identity; type="osgi.bundle"; version:Version="2.4.0.201806211605"; osgi.identity="org.openhab.binding.mysensors"; singleton:="true"

at org.eclipse.osgi.container.Module.start(Module.java:444) [?:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) [?:?]

at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [9:org.apache.felix.fileinstall:3.6.4]

at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [9:org.apache.felix.fileinstall:3.6.4]

at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [9:org.apache.felix.fileinstall:3.6.4]

at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [9:org.apache.felix.fileinstall:3.6.4]

at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [9:org.apache.felix.fileinstall:3.6.4]

at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [9:org.apache.felix.fileinstall:3.6.4]

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 12. Aug 2018 19:44
von udo1toni
Du hast sowohl die manuell installierte Version als auch die Version über Marketplace drin, du musst die manuell installierte Version erst deinstallieren. Im Zweifel wird es aber nicht reichen, einfach die Datei aus /usr/share/openhab2/addons/ zu entfernen. Vermutlich musst Du über die Karaf Konsole das Bundle entfernen.

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 12. Aug 2018 20:14
von exotoxin
Ok noch etwas weiter gekommen. Aber jetzt weis ich gar nicht mehr weiter.

2018-08-12 20:12:55.552 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-12 20:12:55.656 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.io.IOException: Underlying input stream returned zero bytes

at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:288) [?:?]

at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) [?:?]

at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) [?:?]

at java.io.InputStreamReader.read(InputStreamReader.java:184) [?:?]

at java.io.BufferedReader.fill(BufferedReader.java:161) [?:?]

at java.io.BufferedReader.readLine(BufferedReader.java:324) [?:?]

at java.io.BufferedReader.readLine(BufferedReader.java:389) [?:?]

at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:328) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-12 20:12:55.660 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-12 20:12:55.680 [INFO ] [col.serial.MySensorsSerialConnection] - Connection request disconnection...

2018-08-12 20:12:55.682 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: false

2018-08-12 20:12:55.685 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!

2018-08-12 20:12:55.687 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Stopping Writer thread

2018-08-12 20:12:55.694 [DEBUG] [rsAbstractConnection$MySensorsReader] - Stopping Reader thread

2018-08-12 20:12:55.694 [WARN ] [rsAbstractConnection$MySensorsWriter] - Interrupted MySensorsWriter

2018-08-12 20:12:55.768 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.io.IOException: Underlying input stream returned zero bytes

at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:288) [?:?]

at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) [?:?]

at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) [?:?]

at java.io.InputStreamReader.read(InputStreamReader.java:184) [?:?]

at java.io.BufferedReader.fill(BufferedReader.java:161) [?:?]

at java.io.BufferedReader.readLine(BufferedReader.java:324) [?:?]

at java.io.BufferedReader.readLine(BufferedReader.java:389) [?:?]

at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:328) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-12 20:12:55.773 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-12 20:12:58.772 [DEBUG] [ensors.handler.MySensorsThingHandler] - MySensors Bridge Status updated to OFFLINE for device: mysensors:motion:ef8bc9e4

2018-08-12 20:12:58.773 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [10]

2018-08-12 20:12:58.784 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyAMA0 [baudRate:9600]

==> /var/log/openhab2/events.log <==

2018-08-12 20:12:58.789 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)

2018-08-12 20:12:58.798 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from ONLINE to OFFLINE

==> /var/log/openhab2/openhab.log <==

2018-08-12 20:12:58.798 [DEBUG] [col.serial.MySensorsSerialConnection] - Serial port event listener started

==> /var/log/openhab2/events.log <==

2018-08-12 20:12:58.807 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE (BRIDGE_OFFLINE)

==> /var/log/openhab2/openhab.log <==

2018-08-12 20:12:58.801 [DEBUG] [col.serial.MySensorsSerialConnection] - Successfully connected to serial port.

==> /var/log/openhab2/events.log <==

2018-08-12 20:12:58.814 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE

==> /var/log/openhab2/openhab.log <==

2018-08-12 20:12:58.821 [WARN ] [col.serial.MySensorsSerialConnection] - Skipping I_VERSION connection test, not recommended...

2018-08-12 20:12:58.829 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [10]

2018-08-12 20:12:58.835 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.

2018-08-12 20:12:58.832 [DEBUG] [ensors.handler.MySensorsThingHandler] - MySensors Bridge Status updated to ONLINE for device: mysensors:motion:ef8bc9e4

2018-08-12 20:12:58.841 [DEBUG] [ensors.handler.MySensorsThingHandler] - Event listener for node 10-1 not registered yet, registering...

==> /var/log/openhab2/events.log <==

2018-08-12 20:12:58.846 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from OFFLINE to ONLINE

2018-08-12 20:12:58.853 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE to ONLINE

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 13. Aug 2018 10:44
von udo1toni
Als ozumindest der letzte Teil sieht doch gut aus? In dem Zusammenhang... Auch wenn es sich um log-Dateien handelt, wäre es besser, die als Code zu kennzeichnen (Vollständiger Editor -> Knopf mit dem Slash, oder alternativ vorne das Wort code in eckigen Klammern [] hinten noch einmal das gleiche, nur mit einem Slash vor dem Wort, also so: [/code]). Damit wird der Text dann genau so umgebrochen, wie im Original, es werden keine Zeichen ersetzt und es wird eine Schriftart mit fixer Laufweite verwendet.
Bitte das Log nicht zeilenweise auseinanderpflücken, die zeitlichen Zusammenhänge lassen sich auch so gut erkennen...

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 13. Aug 2018 14:42
von exotoxin
Heute den Raspberry nochmal gestartet und den Log vom Start an kopiert. Jemand einen Plan was hier falsch läuft?

Code: Alles auswählen

2018-08-13 14:31:30.673 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder

2018-08-13 14:31:34.245 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.178.43:8080

2018-08-13 14:31:34.292 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.178.43:8443

2018-08-13 14:31:57.837 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007

==> /var/log/openhab2/events.log <==

2018-08-13 14:31:59.524 [.ItemChannelLinkAddedEvent] - Link 'MySensorsMessage_MySensorsMessage-mysensors:mySensorsMessage:2acf3289:mySensorsMessage' has been added.

2018-08-13 14:31:59.533 [.ItemChannelLinkAddedEvent] - Link 'Motion_TrippedStatus-mysensors:motion:c5674f00:tripped' has been added.

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:32:04.132 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app

2018-08-13 14:32:06.278 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui

2018-08-13 14:32:06.532 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

2018-08-13 14:32:06.575 [DEBUG] [org.openhab.binding.mysensors       ] - BundleEvent STARTING - org.openhab.binding.mysensors

2018-08-13 14:32:06.585 [DEBUG] [org.openhab.binding.mysensors       ] - BundleEvent STARTED - org.openhab.binding.mysensors

2018-08-13 14:32:06.640 [DEBUG] [org.openhab.binding.mysensors       ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=315, service.bundleid=197, service.scope=bundle, component.name=org.openhab.binding.mysensors.factory.MySensorsHandlerFactory, component.id=191} - org.openhab.binding.mysensors

==> /var/log/openhab2/events.log <==

2018-08-13 14:32:07.795 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:32:07.822 [ERROR] [org.openhab.binding.mysensors       ] - FrameworkEvent ERROR - org.openhab.binding.mysensors

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [208]

  Another singleton bundle selected: osgi.identity; type="osgi.bundle"; version:Version="2.4.0.201806211605"; osgi.identity="org.openhab.binding.mysensors"; singleton:="true"

	at org.eclipse.osgi.container.Module.start(Module.java:444) [?:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634) [?:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1614) [?:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585) [?:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528) [?:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [?:?]

	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]

	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]

==> /var/log/openhab2/events.log <==

2018-08-13 14:32:08.075 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from UNINITIALIZED to INITIALIZING

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:32:08.100 [DEBUG] [nsors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge

2018-08-13 14:32:08.313 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Cache file: given_ids.cached exist.

2018-08-13 14:32:08.323 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Cache (given_ids) content: [10]

2018-08-13 14:32:08.427 [DEBUG] [col.serial.MySensorsSerialConnection] - Enabling connection watchdog

2018-08-13 14:32:08.458 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyAMA0 [baudRate:9600]

2018-08-13 14:32:08.465 [DEBUG] [org.openhab.binding.mysensors       ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=325, service.bundleid=197, service.scope=singleton} - org.openhab.binding.mysensors

2018-08-13 14:32:08.511 [DEBUG] [.discovery.MySensorsDiscoveryService] - Starting MySensors discovery scan

2018-08-13 14:32:08.516 [DEBUG] [nsors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge DONE!

2018-08-13 14:32:08.659 [DEBUG] [col.serial.MySensorsSerialConnection] - Serial port event listener started

2018-08-13 14:32:08.663 [DEBUG] [col.serial.MySensorsSerialConnection] - Successfully connected to serial port.

2018-08-13 14:32:08.714 [WARN ] [col.serial.MySensorsSerialConnection] - Skipping I_VERSION connection test, not recommended...

==> /var/log/openhab2/events.log <==

2018-08-13 14:32:08.815 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from INITIALIZING to ONLINE

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:32:08.843 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [10]

2018-08-13 14:32:08.853 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.

==> /var/log/openhab2/events.log <==

2018-08-13 14:32:08.871 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:32:08.879 [DEBUG] [ensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=10, childId=1, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}

2018-08-13 14:32:08.993 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Merging child map: {} with: {1=MySensorsChild [childId=1, nodeValue={V_VAR2=MySensorsVariableVVar2 [value=null], V_TRIPPED=MySensorsVariableVTripped [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_ARMED=MySensorsVariableVArmed [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR5=MySensorsVariableVVar5 [value=null]}]}

2018-08-13 14:32:09.002 [DEBUG] [ensors.handler.MySensorsThingHandler] - Event listener for node 10-1 not registered yet, registering...

==> /var/log/openhab2/events.log <==

2018-08-13 14:32:09.025 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from INITIALIZING to ONLINE

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:32:12.111 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.mysensors-2.3.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [208]

  Another singleton bundle selected: osgi.identity; type="osgi.bundle"; version:Version="2.4.0.201806211605"; osgi.identity="org.openhab.binding.mysensors"; singleton:="true"

	at org.eclipse.osgi.container.Module.start(Module.java:444) [?:?]

	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) [?:?]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [9:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [9:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [9:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [9:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [9:org.apache.felix.fileinstall:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [9:org.apache.felix.fileinstall:3.6.4]


Und das kommt dabei raus wenn ich den Arduino Sensor starte.

Code: Alles auswählen

2018-08-13 14:38:41.669 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:41.690 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:41.696 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: X

2018-08-13 14:38:41.700 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:41.706 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:41.710 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:43.705 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:43.709 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:43.815 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.io.IOException: Underlying input stream returned zero bytes

	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:288) [?:?]

	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) [?:?]

	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) [?:?]

	at java.io.InputStreamReader.read(InputStreamReader.java:184) [?:?]

	at java.io.BufferedReader.fill(BufferedReader.java:161) [?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:324) [?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:389) [?:?]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:328) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:47.771 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:47.775 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:47.780 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:47.784 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: X

2018-08-13 14:38:47.788 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:47.793 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:47.797 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:47.801 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:47.806 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:48.865 [INFO ] [col.serial.MySensorsSerialConnection] - Connection request disconnection...

2018-08-13 14:38:48.869 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: false

2018-08-13 14:38:48.875 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!

2018-08-13 14:38:48.878 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Stopping Writer thread

2018-08-13 14:38:48.886 [DEBUG] [rsAbstractConnection$MySensorsReader] - Stopping Reader thread

2018-08-13 14:38:48.885 [WARN ] [rsAbstractConnection$MySensorsWriter] - Interrupted MySensorsWriter

2018-08-13 14:38:48.894 [WARN ] [rsAbstractConnection$MySensorsReader] - Interrupted MySensorsReader

==> /var/log/openhab2/events.log <==

2018-08-13 14:38:51.924 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:38:51.928 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [10]

2018-08-13 14:38:51.935 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyAMA0 [baudRate:9600]

==> /var/log/openhab2/events.log <==

2018-08-13 14:38:51.935 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from ONLINE to OFFLINE

2018-08-13 14:38:51.943 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE (BRIDGE_OFFLINE)

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:38:51.949 [DEBUG] [ensors.handler.MySensorsThingHandler] - MySensors Bridge Status updated to OFFLINE for device: mysensors:motion:ef8bc9e4

2018-08-13 14:38:51.957 [DEBUG] [col.serial.MySensorsSerialConnection] - Serial port event listener started

2018-08-13 14:38:51.967 [DEBUG] [col.serial.MySensorsSerialConnection] - Successfully connected to serial port.

2018-08-13 14:38:51.974 [WARN ] [col.serial.MySensorsSerialConnection] - Skipping I_VERSION connection test, not recommended...

==> /var/log/openhab2/events.log <==

2018-08-13 14:38:51.977 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:38:51.982 [DEBUG] [ensors.handler.MySensorsThingHandler] - MySensors Bridge Status updated to ONLINE for device: mysensors:motion:ef8bc9e4

2018-08-13 14:38:51.988 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [10]

2018-08-13 14:38:51.992 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: .0�

2018-08-13 14:38:51.994 [DEBUG] [ensors.handler.MySensorsThingHandler] - Event listener for node 10-1 not registered yet, registering...

2018-08-13 14:38:51.996 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:52.000 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.

2018-08-13 14:38:52.004 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: X

==> /var/log/openhab2/events.log <==

2018-08-13 14:38:52.006 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from OFFLINE to ONLINE

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:38:52.011 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

==> /var/log/openhab2/events.log <==

2018-08-13 14:38:52.017 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE to ONLINE

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:38:52.020 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:52.024 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.061 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: j

�Motion Sensor

2018-08-13 14:38:54.072 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.077 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: X

2018-08-13 14:38:54.081 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.086 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:54.090 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.097 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:54.101 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:54.107 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.112 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:54.116 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:54.119 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.123 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:54.125 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: X

2018-08-13 14:38:54.128 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.132 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:54.135 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:54.138 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:54.141 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:56.154 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:56.157 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:56.160 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:56.163 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: X

2018-08-13 14:38:56.166 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:56.170 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:56.173 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:38:56.176 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:56.180 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:38:58.295 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.io.IOException: Underlying input stream returned zero bytes

	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:288) [?:?]

	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) [?:?]

	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) [?:?]

	at java.io.InputStreamReader.read(InputStreamReader.java:184) [?:?]

	at java.io.BufferedReader.fill(BufferedReader.java:161) [?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:324) [?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:389) [?:?]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:328) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:38:58.300 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:39:00.221 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:39:00.224 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:39:00.228 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:39:00.231 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: X

2018-08-13 14:39:00.233 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:39:00.237 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:39:00.240 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 

2018-08-13 14:39:00.243 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection

java.text.ParseException: class java.text.ParseException : Message length is not > 4

	at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:332) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [197:org.openhab.binding.mysensors:2.4.0.201806211605]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2018-08-13 14:39:00.247 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: true

2018-08-13 14:39:02.006 [INFO ] [col.serial.MySensorsSerialConnection] - Connection request disconnection...

2018-08-13 14:39:02.008 [DEBUG] [col.serial.MySensorsSerialConnection] - Request disconnection flag setted to: false

2018-08-13 14:39:02.011 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!

2018-08-13 14:39:02.015 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Stopping Writer thread

2018-08-13 14:39:02.021 [DEBUG] [rsAbstractConnection$MySensorsReader] - Stopping Reader thread

2018-08-13 14:39:02.021 [WARN ] [rsAbstractConnection$MySensorsWriter] - Interrupted MySensorsWriter

2018-08-13 14:39:02.026 [WARN ] [rsAbstractConnection$MySensorsReader] - Interrupted MySensorsReader

==> /var/log/openhab2/events.log <==

2018-08-13 14:39:05.037 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:39:05.042 [DEBUG] [ensors.handler.MySensorsThingHandler] - MySensors Bridge Status updated to OFFLINE for device: mysensors:motion:ef8bc9e4

2018-08-13 14:39:05.050 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [10]

==> /var/log/openhab2/events.log <==

2018-08-13 14:39:05.053 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from ONLINE to OFFLINE

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:39:05.057 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyAMA0 [baudRate:9600]

==> /var/log/openhab2/events.log <==

2018-08-13 14:39:05.063 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE (BRIDGE_OFFLINE)

2018-08-13 14:39:05.068 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE (BRIDGE_OFFLINE) to OFFLINE

==> /var/log/openhab2/openhab.log <==

2018-08-13 14:39:05.070 [DEBUG] [col.serial.MySensorsSerialConnection] - Serial port event listener started

2018-08-13 14:39:05.073 [DEBUG] [col.serial.MySensorsSerialConnection] - Successfully connected to serial port.

2018-08-13 14:39:05.079 [WARN ] [col.serial.MySensorsSerialConnection] - Skipping I_VERSION connection test, not recommended...

2018-08-13 14:39:05.086 [DEBUG] [ensors.handler.MySensorsThingHandler] - MySensors Bridge Status updated to ONLINE for device: mysensors:motion:ef8bc9e4

2018-08-13 14:39:05.087 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [10]

2018-08-13 14:39:05.094 [DEBUG] [ensors.handler.MySensorsThingHandler] - Event listener for node 10-1 not registered yet, registering...

2018-08-13 14:39:05.098 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.

==> /var/log/openhab2/events.log <==

2018-08-13 14:39:05.099 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:386ab38f' changed from OFFLINE to ONLINE

2018-08-13 14:39:05.113 [hingStatusInfoChangedEvent] - 'mysensors:motion:ef8bc9e4' changed from OFFLINE to ONLINE

Re: Mysensors "UNINITIALIZED - HANDLER_INITIALIZING_ERROR"

Verfasst: 13. Aug 2018 22:56
von udo1toni
Es sind immer noch zwei Versionen von org.openhab.binding.mysensors im System aktiv.