-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[RRD4j] NoSuchMethodError when using Java 9/10/11 #5663
Comments
Here's the org.openhab.persistence.rrd4j-1.13.0-SNAPSHOT.jar that can be used for testing the latest RRD4J master (3.2-SNAPSHOT) with openHAB 2.4.0-SNAPSHOT on Java 9/10/11. The bundle worked for me with both Java 8 and Java 11. |
…net/browse/JDK-8171377). But Only works in Java9+, so needs a multi-release jar or dropping Java8-. In a custom branch until I found a way to build a multi-release jar.
RRD4j 3.3 that solve this issue has been released. |
Thanks for the new release @fbacchella! There does seem to be an issue now when using
I think it is caused because the JAR was compiled with Java 11. When I compile the 3.3 tag with Java 8 it works on both Java 8 and Java 11. That's also how I've been testing the new code. After searching for the exception it looks very similar to the issue fixed in apache/felix#114. |
Indeed:
fails with the same exception.
works. But the patch tried by felix don't works for me. I'll keep investigating, but I'm afraid I will fail back to compile with Java8. |
It's should be resolved in 3.3.1. |
Thanks a lot @fbacchella! The new version works well with both Java 8 and 11. 👍 |
Fixes #5663 Signed-off-by: Wouter Born <[email protected]>
When using the RRD4j persistence add-on with newer Java versions (9/10/11) the following NoSuchMethodErrors are logged:
As a result it's not possible to store/read data in a RRD database with the add-on.
This is a very visible issue for new openHAB users because the RRD4j persistence add-on is used as chart data source in the Demo.
To support Java 11 (openhab/openhab-distro#768), we need to upgrade the rrd4j library to a version which contains the fix for rrd4j/rrd4j#72.
So far the fix seems to be working well when updating the rrd4j JAR to the current (unreleased) master (openhab/openhab-distro#761 (comment)).
There is currently no released rrd4j version that contains this fix.
The text was updated successfully, but these errors were encountered: