Dear Altruist,
I was trying to run Bahmni Mart with other latest Bahmni standard dockerized services and I am getting the following Bean creation error, Is anyone having a similar error, or can say more about mitigation?
a bit more about my working environment,
Docker Version: Docker version 20.10.25, build v20.10.25
Docker Compose Version: Docker Compose version 2.18.1
OS Version: NixOS-23.05.20231210.c2786e7 (Stoat)
More about the pattern of error:
With a similar environment in one other machine, it is working well, presuming something with host memory or other resources in the host. Is there any way to trace out more specifics about the error from the application?
Error Log: 2023-12-15 11:33:24.676 INFO 17 â [ main] org.bahmni.mart.Application : Starting Application on 98638c664db2 with PID 17 (/bahmni-mart/app.jar sta rted by root in /) 2023-12-15 11:33:24.680 INFO 17 â [ main] org.bahmni.mart.Application : No active profile set, falling back to default profiles: default 2023-12-15 11:33:24.778 INFO 17 â [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicat ionContext@436813f3: startup date [Fri Dec 15 11:33:24 UTC 2023]; root of context hierarchy 2023-12-15 11:33:26.097 INFO 17 â [ main] trationDelegate$BeanPostProcessorChecker : Bean âorg.springframework.cloud.task.batch.listener.BatchEventAutoConfigur ationâ of type [org.springframework.cloud.task.batch.listener.BatchEventAutoConfiguration$$EnhancerBySpringCGLIB$$d02d5da] is not eligible for getting processed by all Bean PostProcessors (for example: not eligible for auto-proxying) 2023-12-15 11:33:26.110 INFO 17 â [ main] trationDelegate$BeanPostProcessorChecker : Bean âorg.springframework.transaction.annotation.ProxyTransactionManagemen tConfigurationâ of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$3f3d204b] is not eligible for getting pr ocessed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2023-12-15 11:33:26.622 WARN 17 â [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh a ttempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name âmetaDataExportStepâ: Unsatisfied dependency expressed through field âstepBuilderFactoryâ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name âstepBuildersâ defined in class path resou rce [org/springframework/batch/core/configuration/annotation/SimpleBatchConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springfr amework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.batch.core.configuration.annotation.StepBuilderFactory]: Factory method âstepBuildersâ threw exception; nested exception is java.lang.IllegalStateException: @Bean method SimpleBatchConfiguration.transactionManager called as a bean reference for type [org.spri ngframework.transaction.PlatformTransactionManager] but overridden by non-compatible bean instance of type [org.springframework.beans.factory.support.NullBean]. Overriding bean of same name declared in: org.springframework.cloud.task.configuration.SimpleTaskConfiguration 2023-12-15 11:33:26.632 INFO 17 â [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with âdebugâ enabled. 2023-12-15 11:33:26.641 ERROR 17 â [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name âmetaDataExportStepâ: Unsatisfied dependency expressed through field âstepBu ilderFactoryâ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name âstepBuildersâ defined in class path resource [org /springframework/batch/core/configuration/annotation/SimpleBatchConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework. beans.BeanInstantiationException: Failed to instantiate [org.springframework.batch.core.configuration.annotation.StepBuilderFactory]: Factory method âstepBuildersâ threw ex ception; nested exception is java.lang.IllegalStateException: @Bean method SimpleBatchConfiguration.transactionManager called as a bean reference for type [org.springframew ork.transaction.PlatformTransactionManager] but overridden by non-compatible bean instance of type [org.springframework.beans.factory.support.NullBean]. Overriding bean of same name declared in: org.springframework.cloud.task.configuration.SimpleTaskConfiguration