openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[FritzBoxTr064] soap error #5746

Closed edgarjung closed 5 years ago

edgarjung commented 5 years ago

Expected Behavior

No SOAP Error. Binding thru paperUI

Current Behavior

Throws SOAP Error on TR-064. Things cannot be added thru paperUI

018-12-28 19:27:12.614 [ERROR] [org.openhab.binding.fritzboxtr064 ] - bundle org.openhab.binding.fritzboxtr064:1.13.0 (285)[org.openhab.binding.fritzboxtr064.binding(26)] : The activate method has thrown an exception java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException at org.openhab.binding.fritzboxtr064.internal.FritzboxTr064Binding.activate(FritzboxTr064Binding.java:149) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?] at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228) ~[39:org.apache.felix.scr:2.1.2] at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) ~[39:org.apache.felix.scr:2.1.2] at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664) ~[39:org.apache.felix.scr:2.1.2]

Worked find on Windows 10 with jdk 8.x and openhab 2.3

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment

Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic

openjdk version "10.0.2" 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4) OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

openHAB 2.4.0 Release Build

9037568 commented 5 years ago

openjdk version "10.0.2" 2018-07-17

Reverting to Java 8 should fix this. The soap classes were moved in Java 9.

edgarjung commented 5 years ago

Going back to Java 8 fixed it. thanks