Does serial work with 64bit Java on your pine64?
https://github.com/openhab/openhab2-addons/issues/1562#issuecomment-267135624
Does serial work with 64bit Java on your pine64?
https://github.com/openhab/openhab2-addons/issues/1562#issuecomment-267135624
I am not aware of any reason against it (on non-ARM), but there aren’t really reasons for it either
Fair enough Concidering the vast number of ways to install Java, it would be unnecessary to assume that a specific package should be installed.
From now onwards, any new .deb openHAB package will simply suggest a java 8 package during apt installation if it doesn’t detect one.
I’m using a Z-Wave USB-Stick ZME-UZB1 and on startup i see these messages:
13:18:38.018 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM1’
13:18:38.246 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
13:18:38.296 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - Update networkKey
13:18:38.384 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
13:18:38.386 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.
13:18:38.890 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘zwave:device:403cf9f9:node4’ changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
13:18:38.896 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘zwave:device:403cf9f9:node4’ changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
13:18:39.010 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘zwave:device:403cf9f9:node5’ changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
13:18:39.014 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘zwave:device:403cf9f9:node5’ changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
13:18:41.518 [WARN ] [ssage.ApplicationCommandMessageClass] - NODE 4: Not initialized yet, ignoring message.
13:18:41.524 [WARN ] [ssage.ApplicationCommandMessageClass] - NODE 5: Not initialized yet, ignoring message.
13:18:41.530 [WARN ] [ssage.ApplicationCommandMessageClass] - NODE 5: Not initialized yet, ignoring message.
13:18:41.671 [INFO ] [age.SerialApiGetInitDataMessageClass] - NODE 1: Node found
13:18:41.674 [INFO ] [age.SerialApiGetInitDataMessageClass] - NODE 4: Node found
13:18:41.677 [INFO ] [age.SerialApiGetInitDataMessageClass] - NODE 5: Node found
13:18:41.680 [INFO ] [age.SerialApiGetInitDataMessageClass] - ZWave Controller using Controller API
13:18:41.683 [INFO ] [age.SerialApiGetInitDataMessageClass] - ZWave Controller is Primary Controller
I assume this is using the Java serial transport.
I believe so.
The Z-Wave binding has a dependency on the nrjavaserial bundle and this doesn’t work with Java 64bit on Pine64
openhab> list -s |grep -i zwave
206 | Active | 80 | 2.2.0.201707190537 | ZWave Binding | org.openhab.binding.zwave
openhab> bundle:requirements 206 |grep serial
osgi.wiring.package; gnu.io 3.12.0.OH from com.neuronrobotics.nrjavaserial_3.12.0.OH [186]
openhab> list -s |grep -i serial
186 | Active | 80 | 3.12.0.OH | nrjavaserial
see the link to Kai’s comment above on this.
It looks like you must use a 32bit JVM
This is what java -version says
ubuntu@localhost:~$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
How can i find out what version openhab is using.
I believe that openHAB will use the system default option
to check this:
update-alternatives --config java
I recommend Zulu for ARM:
even better:
http://docs.openhab.org/installation/openhabian.html#pine-a64
ubuntu@localhost:~$ update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
I switched to option 1 which is the old 32bit java.
Restart of openhab is giving the exception libudev.so not found for systeminfo, what this thread is all about.
Addding back EXTRA_JAVA_OPTS="-Djna.library.path=/lib/arm-linux-gnueabihf/"
Other than this i see no difference between running 64bit vs. 32bit.
Any idea how to get this working on Synology ? Can’t find a libudev there
same question on how to get the binding to work on a synology.
Same for me; Synology DS716 OH2.3
Unable to load library ‘udev’: Native library (linux-x86-64/libudev.so) not found in resource path (.:/var/packages/Java8/target/j2sdk-image/jre/lib:/volume1/@appstore/openHAB/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.1.5.jar:/volume1/@appstore/openHAB/runtime/lib/boot/org.apache.karaf.jaas.boot-4.1.5.jar:/volume1/@appstore/openHAB/runtime/lib/boot/org.apache.karaf.main-4.1.5.jar:/volume1/@appstore/openHAB/runtime/lib/boot/org.osgi.core-6.0.0.jar)
Best, Jay
Hi,
I ahve updated my virtualized Ubuntu 18.0.4 with apt-get update. Now the system info binding is also not working anymore:
Unable to load library 'udev': Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.2.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.2.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.2.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.2.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar
How can I fix this?
best regards René
I also have issues with this binding but on Intel NUC. Can anyone help?
2019-09-08 19:01:57.902 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler@12a6d11': Unable to load library 'udev':
libudev.so: nie można otworzyć pliku obiektu dzielonego: Nie ma takiego pliku ani katalogu
/usr/lib/x86_64-linux-gnu/libudev.so: niewłaściwa klasa ELF: ELFCLASS64
/lib/x86_64-linux-gnu/libudev.so.1.6.4: niewłaściwa klasa ELF: ELFCLASS64
Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
java.lang.UnsatisfiedLinkError: Unable to load library 'udev':
libudev.so: nie można otworzyć pliku obiektu dzielonego: Nie ma takiego pliku ani katalogu
/usr/lib/x86_64-linux-gnu/libudev.so: niewłaściwa klasa ELF: ELFCLASS64
/lib/x86_64-linux-gnu/libudev.so.1.6.4: niewłaściwa klasa ELF: ELFCLASS64
Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:302) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.lang.UnsatisfiedLinkError: libudev.so: nie można otworzyć pliku obiektu dzielonego: Nie ma takiego pliku ani katalogu
at com.sun.jna.Native.open(Native Method) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.lang.UnsatisfiedLinkError: /usr/lib/x86_64-linux-gnu/libudev.so: niewłaściwa klasa ELF: ELFCLASS64
at com.sun.jna.Native.open(Native Method) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.lang.UnsatisfiedLinkError: /lib/x86_64-linux-gnu/libudev.so.1.6.4: niewłaściwa klasa ELF: ELFCLASS64
at com.sun.jna.Native.open(Native Method) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:235) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.io.IOException: Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
at com.sun.jna.Native.extractFromResourcePath(Native.java:1095) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:276) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
2019-09-08 19:01:58.160 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'systeminfo:computer:work': Unable to load library 'udev':
libudev.so: nie można otworzyć pliku obiektu dzielonego: Nie ma takiego pliku ani katalogu
/usr/lib/x86_64-linux-gnu/libudev.so: niewłaściwa klasa ELF: ELFCLASS64
/lib/x86_64-linux-gnu/libudev.so.1.6.4: niewłaściwa klasa ELF: ELFCLASS64
Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
java.lang.UnsatisfiedLinkError: Unable to load library 'udev':
libudev.so: nie można otworzyć pliku obiektu dzielonego: Nie ma takiego pliku ani katalogu
/usr/lib/x86_64-linux-gnu/libudev.so: niewłaściwa klasa ELF: ELFCLASS64
/lib/x86_64-linux-gnu/libudev.so.1.6.4: niewłaściwa klasa ELF: ELFCLASS64
Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:302) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.lang.UnsatisfiedLinkError: libudev.so: nie można otworzyć pliku obiektu dzielonego: Nie ma takiego pliku ani katalogu
at com.sun.jna.Native.open(Native Method) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.lang.UnsatisfiedLinkError: /usr/lib/x86_64-linux-gnu/libudev.so: niewłaściwa klasa ELF: ELFCLASS64
at com.sun.jna.Native.open(Native Method) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.lang.UnsatisfiedLinkError: /lib/x86_64-linux-gnu/libudev.so.1.6.4: niewłaściwa klasa ELF: ELFCLASS64
at com.sun.jna.Native.open(Native Method) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:235) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
Suppressed: java.io.IOException: Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
at com.sun.jna.Native.extractFromResourcePath(Native.java:1095) ~[?:?]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:276) ~[?:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[?:?]
at com.sun.jna.Library$Handler.<init>(Library.java:192) ~[?:?]
at com.sun.jna.Native.load(Native.java:596) ~[?:?]
at com.sun.jna.Native.load(Native.java:570) ~[?:?]
at oshi.jna.platform.linux.Udev.<clinit>(Udev.java:37) ~[?:?]
at oshi.hardware.platform.linux.LinuxDisks.getDisks(LinuxDisks.java:102) ~[?:?]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getDiskStores(LinuxHardwareAbstractionLayer.java:83) ~[?:?]
at org.openhab.binding.systeminfo.internal.model.OSHISysteminfo.initializeSysteminfo(OSHISysteminfo.java:107) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:125) ~[?:?]
at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:111) ~[?:?]
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?]
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:152) [133:org.openhab.core:2.5.0.M3]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [133:org.openhab.core:2.5.0.M3]
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) [?:?]
same here with nuc/openhabian and debian buster
i2019-09-09 08:24:48.103 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler@23229f': Unable to load library 'udev':
libudev.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
libudev.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
/lib/x86_64-linux-gnu/libudev.so.1.6.13: falsche ELF-Klasse: ELFCLASS64
Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
java.lang.UnsatisfiedLinkError: Unable to load library ‘udev’:
libudev.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
libudev.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
/lib/x86_64-linux-gnu/libudev.so.1.6.13: falsche ELF-Klasse: ELFCLASS64
Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)s
Hi,
I have the same problen on intel NUC with the System Info binding:
Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR Unable to load library ‘udev’: Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/activation-1.1.1.jar:/usr/share/openhab2/runtime/lib/boot/jaxb-api-2.3.0.jar:/usr/share/openhab2/runtime/lib/boot/jaxb-core-2.2.11.jar:/usr/share/openhab2/runtime/lib/boot/jaxb-impl-2.2.11.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.1.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.1.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.1.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
How can I fix it?
Same here (2.5.0-SNAPSHOT Build #1696):
Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR Unable to load library ‘udev’: libudev.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden libudev.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden /lib/x86_64-linux-gnu/libudev.so.1.6.5: falsche ELF-Klasse: ELFCLASS64 Native library (linux-x86/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
Hi.
After updateing to M3 the System Info binding doesn’t work.
So I have installed the 32bit library of libudev again and it runs.
Ubuntu: apt-get install libudev1:i386.
Can you test it?
Greetings,
Markus
Working again:
Intel® Celeron® CPU J1900 @ 1.99GHz // 2.5.0-SNAPSHOT Build #1705
Steps i did:
sudo apt-get install libudev1:i386
sudo /etc/init.d/openhab2 restart
Thank you very much!
Hi Thomas, hi Markus,
Many thanks, that works!
Best regards
Henry
Pin this!