Deleted all my Server and Monitor things, then installed the new binding (downloaded it and placed it in addons folder, as I don’t use Paper UI to install bindings).
Added my server thing and I see this.
2018-02-25 10:01:43.960 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: context='constructor' Starting ZoneMinder Server Bridge Handler (Bridge='null')
2018-02-25 10:01:43.971 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: ZoneMinder Server Bridge Handler Initialized
2018-02-25 10:01:49.883 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: context='updateBridgeStatus' Bridge status changed from 'OFFLINE' to 'ONLINE'
2018-02-25 10:01:50.689 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: Properties synchronised, Thing id: zm
2018-02-25 10:02:00.605 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:02:11.923 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:02:23.242 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
Seems reproducible, since deleting and adding server thing consistently produces the same result.
Stop/start of the binding produced this. Really weird because I don’t have any Monitor things.
2018-02-25 10:06:06.136 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: context='dispose' Stopping Discovery service
2018-02-25 10:06:06.138 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: context='dispose' Stopping WatchDog task
2018-02-25 10:06:06.138 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: context='dispose' Stopping refresh data task
2018-02-25 10:06:13.149 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: context='constructor' Starting ZoneMinder Server Bridge Handler (Bridge='null')
2018-02-25 10:06:13.150 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: ZoneMinder Server Bridge Handler Initialized
2018-02-25 10:06:19.064 [INFO ] [andler.ZoneMinderServerBridgeHandler] - [BRIDGE (zm)]: context='updateBridgeStatus' Bridge status changed from 'OFFLINE' to 'ONLINE'
2018-02-25 10:06:25.918 [WARN ] [andler.ZoneMinderThingMonitorHandler] - [MONITOR-5]: context='onTrippedForceAlarm' Skipping event 'name.eskildsen.zoneminder.api.telnet.ZoneMinderTriggerEvent@7a053b53', because Thing is 'OFFLINE'
2018-02-25 10:06:25.918 [WARN ] [andler.ZoneMinderThingMonitorHandler] - [MONITOR-5]: context='onTrippedForceAlarm' Skipping event 'name.eskildsen.zoneminder.api.telnet.ZoneMinderTriggerEvent@5ed575ee', because Thing is 'OFFLINE'
2018-02-25 10:06:29.791 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:06:41.108 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:06:52.427 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:07:03.747 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:07:15.065 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:07:26.382 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:07:37.702 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
2018-02-25 10:07:49.020 [ERROR] [andler.ZoneMinderServerBridgeHandler] - [WATCHDOG]: Server run(): StackTrace: File='ZoneMinderDiscoveryService.java', Line='103', Method='discoverMonitors', Exception: null
Stopped the binding, and looking at threads, I see five of these. I would expect to see none with the binding stopped.
"Thread-1185" Id=68943 in RUNNABLE (running in native)
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
- locked java.io.InputStreamReader@4ccd7f9f
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
- locked java.io.InputStreamReader@4ccd7f9f
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at name.eskildsen.zoneminder.socket.SocketReader.poll(SocketReader.java:75)
at name.eskildsen.zoneminder.event.ZoneMinderEventManager$TCPListener.run(ZoneMinderEventManager.java:196)
at java.lang.Thread.run(Thread.java:748)
Even after uninstalling the binding (by removing it from addons), the threads are still hanging around.
There are 5 of these threads, which happens to coincide with the number of Monitor things I had (before I deleted them). Is there a possibility that the monitor threads are not being canceled when Monitor things are deleted?
I’m on build 1218, BTW.