influxdata / influxdb-client-java

InfluxDB 2 JVM Based Clients
https://influxdata.github.io/influxdb-client-java/
MIT License
430 stars 129 forks source link

influxdb-spring 6.10.0 does not work with spring boot 3.2.0 #649

Closed yikuo123 closed 7 months ago

yikuo123 commented 9 months ago

it throws exception:

Caused by: java.lang.NoSuchMethodError: org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration: method 'void <init>()' not found
    at com.influxdb.spring.health.InfluxDB2HealthIndicatorAutoConfiguration.<init>(InfluxDB2HealthIndicatorAutoConfiguration.java:50) ~[influxdb-spring-6.10.0.jar:6.10.0]
    at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[na:na]
    at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[na:na]
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[na:na]
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:197) ~[spring-beans-6.1.1.jar:6.1.1]
powersj commented 9 months ago

@bednar in the past, what versions of spring boot have we supported? From the readme I see comments about some compatibility, but nothing about major or minor versions.

bednar commented 9 months ago

The current version of the client is dependent on Spring Boot 2.7.17. We can prepare an upgrade to version 3.x, which will be a major release for the client, because it will be breaking change.

bachmann-ubique commented 7 months ago

Is there a timeline for the version 3.x, that fixes this Issue?

bednar commented 7 months ago

@bachmann-ubique, this issue is at the top of our backlog for the v2 client maintenance. I am hopeful that it will be resolved in the next maintenance release scheduled for the end of this month.