]> git.basschouten.com Git - openhab-addons.git/commitdiff
[tellstick] Fixes NoClassDefFoundError (#9634)
authorkalleboll <76847050+kalleboll@users.noreply.github.com>
Wed, 20 Jan 2021 15:56:53 +0000 (16:56 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Jan 2021 15:56:53 +0000 (16:56 +0100)
Fixes #7024

The problem was caused by the asynchttpclient dependency that seemed to require another version of the Netty dependency than what is added by the openhab.tp-netty feature.
This caused some of the classes in the ssl package to not be found during initialization.
I fixed it by upgrading the asynchttpclient dependency to a version that use the same version of Netty that is bundled(4.1.42.Final).

Signed-off-by: Jörgen Nilsson <mail.jnilsson@gmail.com>
CODEOWNERS
bundles/org.openhab.binding.tellstick/pom.xml
bundles/org.openhab.binding.tellstick/src/main/feature/feature.xml

index 9cb676a5c0f5d366767dc5267f7816bb6aeebb9c..e6e9168c9cfd504000ff78aa30e7ecb360542a9c 100644 (file)
 /bundles/org.openhab.binding.tankerkoenig/ @dolic @JueBag
 /bundles/org.openhab.binding.telegram/ @ZzetT
 /bundles/org.openhab.binding.teleinfo/ @Nokyyz
-/bundles/org.openhab.binding.tellstick/ @jarlebh
+/bundles/org.openhab.binding.tellstick/ @openhab/add-ons-maintainers
 /bundles/org.openhab.binding.tesla/ @kgoderis
 /bundles/org.openhab.binding.tibber/ @kjoglum
 /bundles/org.openhab.binding.tivo/ @mlobstein
index 1555fce694de9df94cc7e3175041838358d0f594..7cbdf84d00a3b066085f5473ba6681c39126a300 100644 (file)
@@ -16,7 +16,7 @@
 
   <properties>
     <bnd.importpackage>!com.luckycatlabs.*,!com.jcraft.jzlib.*,!org.apache.commons.cli.*,!org.eclipse.swt.*</bnd.importpackage>
-    <dep.noembedding>netty-transport-native-unix-common,netty-common,netty-transport,netty-transport-native-epoll,netty-buffer,netty-resolver,netty-codec,netty-codec-http,netty-handler</dep.noembedding>
+    <dep.noembedding>netty-transport-native-unix-common,netty-common,netty-transport,netty-transport-native-epoll,netty-buffer,netty-resolver,netty-codec,netty-codec-http,netty-handler,netty-transport-native-kqueue,netty-handler-proxy,netty-codec-socks</dep.noembedding>
   </properties>
 
   <dependencies>
     <dependency>
       <groupId>org.asynchttpclient</groupId>
       <artifactId>async-http-client</artifactId>
-      <version>2.0.19</version>
+      <version>2.10.4</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.asynchttpclient</groupId>
       <artifactId>async-http-client-netty-utils</artifactId>
-      <version>2.0.19</version>
+      <version>2.10.4</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <version>4.1.42.Final</version>
       <scope>compile</scope>
     </dependency>
+    <dependency>
+      <groupId>io.netty</groupId>
+      <artifactId>netty-transport-native-kqueue</artifactId>
+      <version>4.1.42.Final</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>io.netty</groupId>
+      <artifactId>netty-handler-proxy</artifactId>
+      <version>4.1.42.Final</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>io.netty</groupId>
+      <artifactId>netty-codec-socks</artifactId>
+      <version>4.1.42.Final</version>
+      <scope>compile</scope>
+    </dependency>
     <dependency>
       <groupId>org.reactivestreams</groupId>
       <artifactId>reactive-streams</artifactId>
index 7fc59a9d82b682ba9514554ed4668d231f92513e..1a473d4de86aaea9277968bb4ed6ade9513cddd6 100644 (file)
@@ -9,6 +9,10 @@
                <feature dependency="true">openhab.tp-jaxb</feature>
                <bundle dependency="true">mvn:net.java.dev.jna/jna/4.5.2</bundle>
                <bundle dependency="true">mvn:net.java.dev.jna/jna-platform/4.5.2</bundle>
+               <bundle dependency="true">mvn:io.netty/netty-transport-native-kqueue/4.1.42.Final</bundle>
+               <bundle dependency="true">mvn:io.netty/netty-handler-proxy/4.1.42.Final</bundle>
+               <bundle dependency="true">mvn:io.netty/netty-codec-socks/4.1.42.Final</bundle>
+               <bundle dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.2.1/1.2.1_2</bundle>
                <bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.tellstick/${project.version}</bundle>
        </feature>
 </features>