Skip to content

fix(deps): update managed.mongo to v5 (major) #830

fix(deps): update managed.mongo to v5 (major)

fix(deps): update managed.mongo to v5 (major) #830

GitHub Actions / Java CI / Test Report (17) failed Nov 19, 2024 in 0s

25 tests run, 21 passed, 0 skipped, 4 failed.

Annotations

Check failure on line 68 in mongo-reactive/src/test/groovy/io/micronaut/configuration/mongo/reactive/MongoHealthIndicatorSpec.groovy

See this annotation in the file changed.

@github-actions github-actions / Java CI / Test Report (17)

MongoHealthIndicatorSpec.test mongo health indicator DOWN

Condition failed with Exception:

Flux.from(healthIndicator.result).blockFirst().status == DOWN
|         |               |
|         |               io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator]
|         |                
|         |               Message: com/mongodb/connection/StreamFactoryFactory
|         |               Path Taken: new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,MongoClient[] mongoClients) --> new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,[MongoClient[] mongoClients])
|         |               	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
|         |               	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
|         |               	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
|         |               	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
|         |               	at io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
|         |               	at io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
|         |               	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
|         |               	at io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
|         |               	at io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
|         |               	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
|         |               	at io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
|         |               	at io.micronaut.runtime.context.scope.refresh.RefreshScope.findBeanRegistration(RefreshScope.java:144)
|         |               	at io.micronaut.context.DefaultCustomScopeRegistry.findBeanRegistration(DefaultCustomScopeRegistry.java:66)
|         |               	at io.micronaut.context.DefaultBeanContext.findBeanRegistration(DefaultBeanContext.java:589)
|         |               	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
|         |               	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|         |               	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
|         |               	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
|         |               	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
|         |               	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
|         |               	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
|         |               	at io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getRegisteredConnections(MongoHealthIndicator.java:87)
|         |               	at io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getResult(MongoHealthIndicator.java:73)
|         |               	at io.micronaut.configuration.mongo.reactive.MongoHealthIndicatorSpec.test mongo health indicator DOWN(MongoHealthIndicatorSpec.groovy:68)
|         |               Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
|         |               	at io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
|         |               	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
|         |               	... 23 more
|         |               Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
|         |               	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
|         |               	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
|         |               	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
|         |               	... 25 more
|         <io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator@4e671ef beanContext=io.micronaut.context.DefaultApplicationContext@779cb140 healthAggregator=io.micronaut.management.health.aggregator.DefaultHealthAggregator@5c930fc3 mongoClients=[io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted@45a4587d]>
class reactor.core.publisher.Flux
Raw output
Condition failed with Exception:

Flux.from(healthIndicator.result).blockFirst().status == DOWN
|         |               |
|         |               io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator]
|         |                
|         |               Message: com/mongodb/connection/StreamFactoryFactory
|         |               Path Taken: new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,MongoClient[] mongoClients) --> new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,[MongoClient[] mongoClients])
|         |               	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
|         |               	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
|         |               	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
|         |               	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
|         |               	at io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
|         |               	at io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
|         |               	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
|         |               	at io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
|         |               	at io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
|         |               	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
|         |               	at io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
|         |               	at io.micronaut.runtime.context.scope.refresh.RefreshScope.findBeanRegistration(RefreshScope.java:144)
|         |               	at io.micronaut.context.DefaultCustomScopeRegistry.findBeanRegistration(DefaultCustomScopeRegistry.java:66)
|         |               	at io.micronaut.context.DefaultBeanContext.findBeanRegistration(DefaultBeanContext.java:589)
|         |               	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
|         |               	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
|         |               	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
|         |               	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
|         |               	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
|         |               	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
|         |               	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
|         |               	at io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getRegisteredConnections(MongoHealthIndicator.java:87)
|         |               	at io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getResult(MongoHealthIndicator.java:73)
|         |               	at io.micronaut.configuration.mongo.reactive.MongoHealthIndicatorSpec.test mongo health indicator DOWN(MongoHealthIndicatorSpec.groovy:68)
|         |               Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
|         |               	at io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
|         |               	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
|         |               	... 23 more
|         |               Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
|         |               	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
|         |               	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
|         |               	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
|         |               	... 25 more
|         <io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator@4e671ef beanContext=io.micronaut.context.DefaultApplicationContext@779cb140 healthAggregator=io.micronaut.management.health.aggregator.DefaultHealthAggregator@5c930fc3 mongoClients=[io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted@45a4587d]>
class reactor.core.publisher.Flux

	at io.micronaut.configuration.mongo.reactive.MongoHealthIndicatorSpec.test mongo health indicator DOWN(MongoHealthIndicatorSpec.groovy:68)
Caused by: io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator]

Message: com/mongodb/connection/StreamFactoryFactory
Path Taken: new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,MongoClient[] mongoClients) --> new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,[MongoClient[] mongoClients])
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
	at app//io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
	at app//io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
	at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
	at app//io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
	at app//io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
	at app//io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.findBeanRegistration(RefreshScope.java:144)
	at app//io.micronaut.context.DefaultCustomScopeRegistry.findBeanRegistration(DefaultCustomScopeRegistry.java:66)
	at app//io.micronaut.context.DefaultBeanContext.findBeanRegistration(DefaultBeanContext.java:589)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
	at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at [email protected]/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at [email protected]/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at app//io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getRegisteredConnections(MongoHealthIndicator.java:87)
	at app//io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getResult(MongoHealthIndicator.java:73)
	... 1 more
Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
	at app//io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
	... 23 more
Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
	at [email protected]/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at [email protected]/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at [email protected]/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
	... 25 more

Check failure on line 92 in mongo-reactive/src/test/groovy/io/micronaut/configuration/mongo/reactive/MongoHealthIndicatorSpec.groovy

See this annotation in the file changed.

@github-actions github-actions / Java CI / Test Report (17)

MongoHealthIndicatorSpec.test mongo health indicator UP

io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator]

Message: com/mongodb/connection/StreamFactoryFactory
Path Taken: new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,MongoClient[] mongoClients) --> new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,[MongoClient[] mongoClients])
Raw output
io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator]

Message: com/mongodb/connection/StreamFactoryFactory
Path Taken: new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,MongoClient[] mongoClients) --> new MongoHealthIndicator(BeanContext beanContext,HealthAggregator<HealthResult T> healthAggregator,[MongoClient[] mongoClients])
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
	at app//io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
	at app//io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
	at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
	at app//io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
	at app//io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
	at app//io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.findBeanRegistration(RefreshScope.java:144)
	at app//io.micronaut.context.DefaultCustomScopeRegistry.findBeanRegistration(DefaultCustomScopeRegistry.java:66)
	at app//io.micronaut.context.DefaultBeanContext.findBeanRegistration(DefaultBeanContext.java:589)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
	at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at [email protected]/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at [email protected]/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at app//io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getRegisteredConnections(MongoHealthIndicator.java:87)
	at app//io.micronaut.configuration.mongo.reactive.health.MongoHealthIndicator.getResult(MongoHealthIndicator.java:73)
	at io.micronaut.configuration.mongo.reactive.MongoHealthIndicatorSpec.test mongo health indicator UP(MongoHealthIndicatorSpec.groovy:92)
Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
	at app//io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
	... 23 more
Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
	at [email protected]/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at [email protected]/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at [email protected]/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
	... 25 more

Check failure on line 69 in mongo-reactive/src/test/groovy/io/micronaut/configuration/mongo/reactive/MongoReactiveConfigurationSpec.groovy

See this annotation in the file changed.

@github-actions github-actions / Java CI / Test Report (17)

MongoReactiveConfigurationSpec.test connection with connection string

Condition failed with Exception:

!Flux.from(mongoClient.listDatabaseNames()).collectList().block().isEmpty()
 |         |           |
 |         |           io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted]
 |         |            
 |         |           Message: com/mongodb/connection/StreamFactoryFactory
 |         |           Path Taken: new $DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted(BeanResolutionContext $beanResolutionContext,BeanContext $beanContext,Qualifier $qualifier,List<BeanRegistration<Interceptor T> E> $interceptors,InterceptorRegistry $interceptorRegistry)
 |         |           	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
 |         |           	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
 |         |           	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
 |         |           	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
 |         |           	at io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
 |         |           	at io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
 |         |           	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
 |         |           	at io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
 |         |           	at io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
 |         |           	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
 |         |           	at io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
 |         |           	at io.micronaut.configuration.mongo.reactive.MongoReactiveConfigurationSpec.test connection with connection string(MongoReactiveConfigurationSpec.groovy:69)
 |         |           Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
 |         |           	at io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
 |         |           	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
 |         |           	... 11 more
 |         |           Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
 |         |           	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
 |         |           	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
 |         |           	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
 |         |           	... 13 more
 |         <io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted@2e26841f $interceptors=[[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []] $proxyMethods=[MongoDatabase getDatabase(String arg0), void close(), Publisher listDatabaseNames(), Publisher listDatabaseNames(ClientSession arg0), ListDatabasesPublisher listDatabases(), ListDatabasesPublisher listDatabases(Class<Object T> arg0), ListDatabasesPublisher listDatabases(ClientSession arg0), ListDatabasesPublisher listDatabases(ClientSession arg0,Class<Object T> arg1), ChangeStreamPublisher watch(), ChangeStreamPublisher watch(Class<Object T> arg0), ChangeStreamPublisher watch(List<Bson E> arg0), ChangeStreamPublisher watch(List<Bson E> arg0,Class<Object T> arg1), ChangeStreamPublisher watch(ClientSession arg0), ChangeStreamPublisher watch(ClientSession arg0,Class<Object T> arg1), ChangeStreamPublisher watch(ClientSession arg0,List<Bson E> arg1), ChangeStreamPublisher watch(ClientSession arg0,List<Bson E> arg1,Class<Object T> arg2), Publisher startSession(), Publisher startSession(ClientSessionOptions arg0), ClusterDescription getClusterDescription()] $proxyBeanDefinition=Definition: io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory $beanLocator=io.micronaut.context.DefaultApplicationContext@56d3e4a9 $beanQualifier=null $beanResolutionContext=io.micronaut.context.DefaultBeanContext$SingletonBeanResolutionContext@67127bb1>
 class reactor.core.publisher.Flux
Raw output
Condition failed with Exception:

!Flux.from(mongoClient.listDatabaseNames()).collectList().block().isEmpty()
 |         |           |
 |         |           io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted]
 |         |            
 |         |           Message: com/mongodb/connection/StreamFactoryFactory
 |         |           Path Taken: new $DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted(BeanResolutionContext $beanResolutionContext,BeanContext $beanContext,Qualifier $qualifier,List<BeanRegistration<Interceptor T> E> $interceptors,InterceptorRegistry $interceptorRegistry)
 |         |           	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
 |         |           	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
 |         |           	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
 |         |           	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
 |         |           	at io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
 |         |           	at io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
 |         |           	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
 |         |           	at io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
 |         |           	at io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
 |         |           	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
 |         |           	at io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
 |         |           	at io.micronaut.configuration.mongo.reactive.MongoReactiveConfigurationSpec.test connection with connection string(MongoReactiveConfigurationSpec.groovy:69)
 |         |           Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
 |         |           	at io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
 |         |           	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
 |         |           	... 11 more
 |         |           Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
 |         |           	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
 |         |           	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
 |         |           	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
 |         |           	... 13 more
 |         <io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted@2e26841f $interceptors=[[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []] $proxyMethods=[MongoDatabase getDatabase(String arg0), void close(), Publisher listDatabaseNames(), Publisher listDatabaseNames(ClientSession arg0), ListDatabasesPublisher listDatabases(), ListDatabasesPublisher listDatabases(Class<Object T> arg0), ListDatabasesPublisher listDatabases(ClientSession arg0), ListDatabasesPublisher listDatabases(ClientSession arg0,Class<Object T> arg1), ChangeStreamPublisher watch(), ChangeStreamPublisher watch(Class<Object T> arg0), ChangeStreamPublisher watch(List<Bson E> arg0), ChangeStreamPublisher watch(List<Bson E> arg0,Class<Object T> arg1), ChangeStreamPublisher watch(ClientSession arg0), ChangeStreamPublisher watch(ClientSession arg0,Class<Object T> arg1), ChangeStreamPublisher watch(ClientSession arg0,List<Bson E> arg1), ChangeStreamPublisher watch(ClientSession arg0,List<Bson E> arg1,Class<Object T> arg2), Publisher startSession(), Publisher startSession(ClientSessionOptions arg0), ClusterDescription getClusterDescription()] $proxyBeanDefinition=Definition: io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory $beanLocator=io.micronaut.context.DefaultApplicationContext@56d3e4a9 $beanQualifier=null $beanResolutionContext=io.micronaut.context.DefaultBeanContext$SingletonBeanResolutionContext@67127bb1>
 class reactor.core.publisher.Flux

	at io.micronaut.configuration.mongo.reactive.MongoReactiveConfigurationSpec.test connection with connection string(MongoReactiveConfigurationSpec.groovy:69)
Caused by: io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted]

Message: com/mongodb/connection/StreamFactoryFactory
Path Taken: new $DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted(BeanResolutionContext $beanResolutionContext,BeanContext $beanContext,Qualifier $qualifier,List<BeanRegistration<Interceptor T> E> $interceptors,InterceptorRegistry $interceptorRegistry)
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
	at app//io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
	at app//io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
	at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
	at app//io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
	at app//io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
	at app//io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
	... 1 more
Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
	at app//io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
	... 11 more
Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
	at [email protected]/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at [email protected]/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at [email protected]/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
	... 13 more

Check failure on line 95 in mongo-reactive/src/test/groovy/io/micronaut/configuration/mongo/reactive/MongoReactiveConfigurationSpec.groovy

See this annotation in the file changed.

@github-actions github-actions / Java CI / Test Report (17)

MongoReactiveConfigurationSpec.test id property is set automatically after inserting the document

io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted]

Message: com/mongodb/connection/StreamFactoryFactory
Path Taken: new $DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted(BeanResolutionContext $beanResolutionContext,BeanContext $beanContext,Qualifier $qualifier,List<BeanRegistration<Interceptor T> E> $interceptors,InterceptorRegistry $interceptorRegistry)
Raw output
io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.mongo.reactive.$DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted]

Message: com/mongodb/connection/StreamFactoryFactory
Path Taken: new $DefaultReactiveMongoClientFactory$MongoClient0$Definition$Intercepted(BeanResolutionContext $beanResolutionContext,BeanContext $beanContext,Qualifier $qualifier,List<BeanRegistration<Interceptor T> E> $interceptors,InterceptorRegistry $interceptorRegistry)
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2349)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
	at app//io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
	at app//io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
	at app//io.micronaut.context.DefaultBeanContext$3.create(DefaultBeanContext.java:3105)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.lambda$getOrCreate$0(RefreshScope.java:87)
	at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at app//io.micronaut.runtime.context.scope.refresh.RefreshScope.getOrCreate(RefreshScope.java:86)
	at app//io.micronaut.context.DefaultBeanContext.getOrCreateScopedRegistration(DefaultBeanContext.java:3088)
	at app//io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3014)
	at app//io.micronaut.context.DefaultBeanContext.getProxyTargetBean(DefaultBeanContext.java:1505)
	at io.micronaut.configuration.mongo.reactive.MongoReactiveConfigurationSpec.test id property is set automatically after inserting the document(MongoReactiveConfigurationSpec.groovy:95)
Caused by: java.lang.NoClassDefFoundError: com/mongodb/connection/StreamFactoryFactory
	at app//io.micronaut.configuration.mongo.reactive.DefaultReactiveMongoClientFactory.mongoClient(DefaultReactiveMongoClientFactory.java:48)
	at app//io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
	... 11 more
Caused by: java.lang.ClassNotFoundException: com.mongodb.connection.StreamFactoryFactory
	at [email protected]/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at [email protected]/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at [email protected]/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
	... 13 more