@zmartify,
After some unrelated SW changes today, my machine was rebooted, and the binding no longer works:
2019-10-29 16:23:12.024 [INFO ] [rtmodbus.handler.ModbusSerialHandler] - Initializing Zmartify ModbusFunction Serial Controller.
2019-10-29 16:23:12.026 [ERROR] [rtmodbus.handler.ModbusSerialHandler] - ***** ZmartModbus test version has expired... contact peter@zmartify.dk ****
2019-10-29 16:23:18.325 [ERROR] [org.openhab.binding.zmartmodbus ] - FrameworkEvent ERROR - org.openhab.binding.zmartmodbus
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zmartmodbus [252]
Unresolved requirement: Import-Package: com.google.gson; version="[2.8.0,3.0.0)"
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) [?:?]
2019-10-29 16:23:28.377 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zmartmodbus-2.5.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zmartmodbus [252]
Unresolved requirement: Import-Package: com.google.gson; version="[2.8.0,3.0.0)"
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) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [10:org.apache.felix.fileinstall:3.6.4]
Honestly I am not sure I understand what is going, but my theory is that OH has been using an old (cached) version of the binding (Probably 2.4.0.201810010932, judging from the karaf console bundle:list), although that had been removed from the addons-folder and replaced with the 2.5.0-SNAPSHOT. The 2.5.0-SNAPSHOT causes the second error above (due to version incompatibilities).
After several hours of messing with bundle:uninstall, clearing the cache, etc. my conclusion is that the 2.4 snapshot I have been using is no longer functional due to the expiration logic, and the 2.5-SNAPSHOT is not functional on OH2.4.
It seems a part of the user base is running OH2.4 (stable), and I guess they are seeing the same problems as I am. Does anyone know if it is possible to use the 2.5-SNAPSHOT binding with OH2.4?
Right now I cannot make any version work, so I have lost integration between OH and my floor heating
@zmartify: Any news regarding availability of the source code?