After updating to Spring Cloud 2022.0.3 with SB 3.1.1 cannot start application. Error:
2023-08-07T13:46:28.922+03:00 WARN 3212 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration': Unsatisfied dependency expressed through field 'optionalArgs': No qualifying bean of type 'com.netflix.discovery.AbstractDiscoveryClientOptionalArgs<?>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2023-08-07T13:46:29.931+03:00 WARN 3212 --- [ main] z.r.AsyncReporter$BoundedAsyncReporter : Timed out waiting for in-flight spans to send
2023-08-07T13:46:29.937+03:00 INFO 3212 --- [ main] i.o.sdk.trace.SdkTracerProvider : Calling shutdown() multiple times.
2023-08-07T13:46:29.937+03:00 INFO 3212 --- [ main] i.o.exporter.zipkin.ZipkinSpanExporter : Calling shutdown() multiple times.
2023-08-07T13:46:29.938+03:00 INFO 3212 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-08-07T13:46:29.942+03:00 WARN 3212 --- [ main] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [BatchSpanProcessor_WorkerThread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method)
java.base@17.0.7/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)
java.base@17.0.7/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1672)
java.base@17.0.7/java.util.concurrent.ArrayBlockingQueue.poll(ArrayBlockingQueue.java:435)
app//io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.run(BatchSpanProcessor.java:252)
java.base@17.0.7/java.lang.Thread.run(Thread.java:833)
2023-08-07T13:46:29.958+03:00 INFO 3212 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-08-07T13:46:29.977+03:00 ERROR 3212 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field optionalArgs in org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration required a bean of type 'com.netflix.discovery.AbstractDiscoveryClientOptionalArgs' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.netflix.discovery.AbstractDiscoveryClientOptionalArgs' in your configuration.
After updating to Spring Cloud 2022.0.3 with SB 3.1.1 cannot start application. Error:
My POM:
Can anyone help with this? Thanks.