Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openhab 3.1.1 wont start with wmbus binding #9

Open
WiredLife opened this issue Dec 28, 2021 · 2 comments
Open

openhab 3.1.1 wont start with wmbus binding #9

WiredLife opened this issue Dec 28, 2021 · 2 comments

Comments

@WiredLife
Copy link

WiredLife commented Dec 28, 2021

if i start openhab with the org.openhab.binding.wmbus-3.1.0-SNAPSHOT-20210805 included in /usr/share/openhab/addons
i get this error following by many errors which kill any binding which uses serial communication

16:28:37.949 [WARN ] [ommon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.NoClassDefFoundError: org/openhab/core/io/transport/serial/UnsupportedCommOperationException
at org.openmuc.jrxtx.SerialPortBuilder.build(SerialPortBuilder.java:140) ~[?:?]
at org.openmuc.jmbus.transportlayer.SerialLayer.open(SerialLayer.java:30) ~[?:?]
at org.openmuc.jmbus.wireless.AbstractWMBusConnection.open(AbstractWMBusConnection.java:77) ~[?:?]
at org.openmuc.jmbus.wireless.WMBusConnection$Builder.build(WMBusConnection.java:162) ~[?:?]
at org.openmuc.jmbus.wireless.WMBusConnection$WMBusSerialBuilder.build(WMBusConnection.java:98) ~[?:?]
at org.openhab.binding.wmbus.handler.WMBusBridgeHandler.lambda$0(WMBusBridgeHandler.java:135) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.ClassNotFoundException: org.openhab.core.io.transport.serial.UnsupportedCommOperationException cannot be found by org.openhab.binding.wmbus_3.1.0.202108051905
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:519) ~[org.eclipse.osgi-3.16.200.jar:?]
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171) ~[org.eclipse.osgi-3.16.200.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
... 12 more

if i start openhab without it and put it there later, all runs ok

is there a solution to fix this?

@JensHoRi
Copy link

JensHoRi commented Feb 2, 2022

Hello WiredLife,

as I just found out, it has to do something with the serial handler.

So please install add-on wmbus as latest, so after Update install bindings like EnOcean oder ZWave (depends what you need) first, and if everything is up and running (give at least 15-30 minutes I think), then put the wmbus.jar in the addon folder.

For my system this works.

Otherwise if wmbus is installed first, it seems to use a wrong serial or has got an unresolved dependency in newer version of openhab. Please let us know here if it works for you too.

@JensHoRi
Copy link

JensHoRi commented Feb 3, 2022

Just one additional hint: same procedure works with 3.2.0-1 and wmbus binding snapshot 20210805 too. Wait until everything ist installed, up and running, after that put Snapshot in adding folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants