Micronaut-core: GCP fails in 2.0 with failed bean instantiation

Created on 16 Jul 2020  路  2Comments  路  Source: micronaut-projects/micronaut-core

Attempting to use the latest version fails in a freshly generated maven project.

Steps to Reproduce

  1. Go to https://micronaut.io/launch/ and add gcp cloud trace, and select maven
  2. Download the project
  3. Run $ mvn clean verify

Expected Behaviour

Tests will run and succeed

Actual Behaviour

DemoTest will fail with

[ERROR] com.example.DemoTest  Time elapsed: 0.581 s  <<< ERROR!
io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [brave.propagation.CurrentTraceContext] could not be loaded: Error instantiating bean of type [brave.propagation.CurrentTraceContext]: 'brave.propagation.CurrentTraceContext$Builder brave.propagation.ThreadLocalCurrentTraceContext.newBuilder()'
Caused by: io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type [brave.propagation.CurrentTraceContext]: 'brave.propagation.CurrentTraceContext$Builder brave.propagation.ThreadLocalCurrentTraceContext.newBuilder()'
Caused by: java.lang.NoSuchMethodError: 'brave.propagation.CurrentTraceContext$Builder brave.propagation.ThreadLocalCurrentTraceContext.newBuilder()'
pr submitted bug

Most helpful comment

Will have a look on Monday

All 2 comments

@graemerocher this is blocking us from using 2.0.0, do you anticipate that dependency bump you did in grpc will resolve? Something we can help get into 2.0.1 quickly?

Will have a look on Monday

Was this page helpful?
0 / 5 - 0 ratings