I could reproduce it with my test system. I do not fully understand why it worked in the test bundle I made for you and not now, because it‘s essentially the same.
Please try bundle:update 295 https://janessa.me/esh/org.openhab.binding.allplay-2.5.0-SNAPSHOT.jar, and restart the bundle bundle:restart 295. I don’t get exceptions any longer, but please check if it works again. Change the bundle-number if the allplay binding has a different one in the test-system.
Using npcap version 0.9982 (=the latest) on Windows 10 (Build 1903).
I’ve tried snapshot 1674, but unfortunately no changes.
Here is my error-log (set amazondashbutton to DEBUG):
13:29:03.440 [DEBUG] [org.openhab.binding.amazondashbutton ] - BundleEvent STARTING - org.openhab.binding.amazondashbutton
13:29:03.447 [DEBUG] [org.openhab.binding.amazondashbutton ] - BundleEvent STARTED - org.openhab.binding.amazondashbutton
13:29:03.463 [DEBUG] [org.openhab.binding.amazondashbutton ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=365, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.amazondashbutton.internal.AmazonDashButtonHandlerFactory, component.id=220} - org.openhab.binding.amazondashbutton
13:29:03.484 [DEBUG] [org.openhab.binding.amazondashbutton ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.ConfigOptionProvider}={service.id=366, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.amazondashbutton.internal.config.AmazonDashButtonConfigOptionProvider, component.id=221} - org.openhab.binding.amazondashbutton
13:29:03.493 [DEBUG] [org.openhab.binding.amazondashbutton ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=367, service.bundleid=219, service.scope=bundle, component.name=org.openhab.binding.amazondashbutton.internal.discovery.AmazonDashButtonDiscoveryService, component.id=222} - org.openhab.binding.amazondashbutton
13:29:03.607 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'amazondashbutton:dashbutton:92e559fa' changed from UNINITIALIZED to INITIALIZING
13:29:04.540 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.inet, use default value: null
13:29:04.543 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.inet6, use default value: null
13:29:04.546 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.packet, use default value: null
13:29:04.547 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.link, use default value: null
13:29:04.559 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:04.565 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:04.569 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{51EB6D2C-7C1A-49CC-882F-E6BF6936D570} is not a suitable network interfaces as no addresses are bound to it.
13:29:04.573 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:04.576 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{579B2824-1244-4FF8-937F-6778A5E386D5} is not a suitable network interfaces as no addresses are bound to it.
13:29:04.586 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.dlt.raw, use default value: null
13:29:04.593 [DEBUG] [rnal.capturing.PacketCapturingService] - Started capturing ARP and BOOTP requests for network device \Device\NPF_{51EB6D2C-7C1A-49CC-882F-E6BF6936D570} and MAC address ac:63:be:52:42:79.
13:29:04.602 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'amazondashbutton:dashbutton:92e559fa' changed from INITIALIZING to ONLINE
13:29:06.942 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:06.945 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:06.948 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:09.294 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:09.296 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:09.299 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:11.648 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:11.649 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:11.650 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:14.006 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:14.008 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:14.009 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:16.339 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:16.340 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:16.341 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:18.683 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:18.684 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:18.685 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:21.038 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:21.040 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:21.041 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:23.404 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:23.405 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:23.406 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:25.739 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:25.740 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:25.740 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:28.074 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:28.075 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:28.076 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:30.391 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{15BB3150-73C5-41FF-9BE8-09206BE1EA4F} is not a suitable network interfaces as no addresses are bound to it.
13:29:30.392 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{7F922277-A355-4189-A60E-4B58109F55FC} is not a suitable network interfaces as no addresses are bound to it.
13:29:30.394 [DEBUG] [rnal.pcap.PcapNetworkInterfaceService] - \Device\NPF_{047CA84D-72FC-4B89-9698-81FF43C9ED49} is not a suitable network interfaces as no addresses are bound to it.
13:29:31.440 [WARN ] [pcap4j.packet.factory.PacketFactories] - java.lang.NoClassDefFoundError:org/pcap4j/packet/factory/PacketFactoryBinder
Hope this helps, thank you very much!
.
. EDIT:SLF4J errors (in wrapper.log) does not appear in later snapshots (e.g. here: 1674)! So also SOLVED!
No, it doesn’t. I’ve tested all above mentioned versions. No success.
Btw, npcap version 0.0.5 is from 28 Nov 2015 !! And the other above mentioned versions are obsolete as well.
With the latest npcap I always get:
19:48:34.403 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.inet, use default value: null
19:48:34.405 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.inet6, use default value: null
19:48:34.406 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.packet, use default value: null
19:48:34.407 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.link, use default value: null
19:48:34.495 [WARN ] [org.pcap4j.util.PropertiesLoader ] - [org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.dlt.raw, use default value: null
19:48:35.128 [WARN ] [pcap4j.packet.factory.PacketFactories] - java.lang.NoClassDefFoundError:org/pcap4j/packet/factory/PacketFactoryBinder
But it was running with all kind of versions, beginning from 0.80 until 0.9982 with snapshot 1486 AND before.
And it stops working, after ESH core was re-implemented into OH. But I don’t know when it stopped.
Ok. I have an idea what causes the problems. Could you try unzipping https://janessa.me/esh/dashbutton-1.8.2.zip in your addons-folder instead of the other version? The other version is still available, so you can easily switch back if this is not working.
I upgraded to pcap4j 1.8.2, not sure if that works without problems, but we might get around the NoClassDefFoundException if it does.
Thanks. That’s great. We can get rid of the ancient jna then. I’ll check how I can get that in a mergable state. Would you be willing to try another version in the next days?