Hi Kapi, Unfortunately the shared piece of stacktrace of your console log does not help to identify the issue. I am afraid I need the FULL console log to advise on the potential problem.
If you dont want to share it with the rest of the world, feel free to reach out to me privately on the adamsa...@gmail.com <mailto:adamsa...@gmail.com> In the meantime some things to be considered: Running `./gradlew :fineract-provider:build` would not just build the project, but it tries to run the integration tests and E2E tests, generate fineract-docs, etc. if you need to run the application for development purposes, please run this instead: `./gradlew bootRun` If you need a bootable jar, please run this instead: `./gradlew bootJar` -> Good for building a fatJar which set up Spring Boot running environment. if you need a build the project (fineract-client, jar, etc.), BUT no need to run integration tests and E2E tests, please use: `./gradlew --no-daemon build -x test -x cucumber -x doc` I hope it helps! Regards, Adam > On 2025. Sep 8., at 9:36, Kapil Panchal <kapil.panchal.developm...@gmail.com> > wrote: > > Hi Adam, > > I am building it on my system and this is the stack trace, run the command > ./gradlew --refresh-dependencies :fineract-provider:build or ./gradlew > fineract-provider:cucumber > > 2025-09-08 13:00:44.961 [main] WARN > o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean > 'samplingConfiguration' of type > [org.apache.fineract.infrastructure.core.diagnostics.performance.sampling.core.SamplingConfiguration] > is not eligible for getting processed by all BeanPostProcessors (for > example: not eligible for auto-proxying). Is this bean getting eagerly > injected/applied to a currently created BeanPostProcessor > [samplingBeanPostProcessor]? Check the corresponding BeanPostProcessor > declaration and its dependencies/advisors. If this bean does not have to be > post-processed, declare it with ROLE_INFRASTRUCTURE. > 2025-09-08 13:00:44.977 [main] WARN > o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean > 'samplingServiceFactory' of type > [org.apache.fineract.infrastructure.core.diagnostics.performance.sampling.core.SamplingServiceFactory] > is not eligible for getting processed by all BeanPostProcessors (for > example: not eligible for auto-proxying). Is this bean getting eagerly > injected/applied to a currently created BeanPostProcessor > [samplingBeanPostProcessor]? Check the corresponding BeanPostProcessor > declaration and its dependencies/advisors. If this bean does not have to be > post-processed, declare it with ROLE_INFRASTRUCTURE. > Mockito is currently self-attaching to enable the inline-mock-maker. This > will no longer work in future releases of the JDK. Please add Mockito as an > agent to your build what is described in Mockito's documentation: > https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3 > Incorrect number of arguments: 2 > jspawnhelper version 21.0.8+9-b1038.68 > This command is not for general use and should only be run as the result of a > call to > ProcessBuilder.start() or Runtime.exec() in a java application > Mockito is currently self-attaching to enable the inline-mock-maker. This > will no longer work in future releases of the JDK. Please add Mockito as an > agent to your build what is described in Mockito's documentation: > https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3 > Incorrect number of arguments: 2 > jspawnhelper version 21.0.8+9-b1038.68 > This command is not for general use and should only be run as the result of a > call to > ProcessBuilder.start() or Runtime.exec() in a java application > 2025-09-08 13:00:45.498 [main] WARN o.s.w.c.s.GenericWebApplicationContext - > Exception encountered during context initialization - cancelling refresh > attempt: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'entityManagerFactory' defined in class path resource > [org/apache/fineract/infrastructure/core/config/jpa/JPAConfig.class]: Failed > to initialize dependency 'tenantDatabaseUpgradeService' of > LoadTimeWeaverAware bean 'entityManagerFactory': Error creating bean with > name 'tenantDatabaseUpgradeService' defined in > org.apache.fineract.TestConfiguration: Unsatisfied dependency expressed > through method 'tenantDatabaseUpgradeService' parameter 0: Error creating > bean with name 'tenantDetailsService' defined in > org.apache.fineract.TestConfiguration: Failed to instantiate > [org.apache.fineract.infrastructure.core.service.tenant.TenantDetailsService]: > Factory method 'tenantDetailsService' threw exception with message: Could > not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: > null) > Sept 08, 2025 1:00:45 PM io.cucumber.core.runtime.Runtime runFeatures > SEVERE: Exception while executing pickle > java.util.concurrent.ExecutionException: java.lang.IllegalStateException: > Failed to load ApplicationContext for [WebMergedContextConfiguration@b94ab88 > testClass = org.apache.fineract.TestSuite, locations = [], classes = > [org.apache.fineract.TestConfiguration], contextInitializerClasses = [], > activeProfiles = [], propertySourceDescriptors = > [PropertySourceDescriptor[locations=[classpath:application-test.properties], > ignoreResourceNotFound=false, name=null, propertySourceFactory=null, > encoding=null]], propertySourceProperties = [], contextCustomizers = > [org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory$OnFailureConditionReportContextCustomizer@79beb8a0, > > org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, > > org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, > > org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@63f1d374, > > org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@2eb6e166, > > org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1c1bc904, > org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, > org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@41843b88, > > org.springframework.test.context.web.socket.MockServerContainerContextCustomizer@3c5095df, > > org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0], > resourceBasePath = "src/main/webapp", contextLoader = > org.springframework.test.context.web.WebDelegatingSmartContextLoader, parent > = null] > at > java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) > at io.cucumber.core.runtime.Runtime.runFeatures(Runtime.java:96) > at io.cucumber.core.runtime.Runtime.lambda$run$0(Runtime.java:78) > at > io.cucumber.core.runtime.CucumberExecutionContext.lambda$runFeatures$6(CucumberExecutionContext.java:147) > at > io.cucumber.core.runtime.CucumberExecutionContext.execute(CucumberExecutionContext.java:162) > at > io.cucumber.core.runtime.CucumberExecutionContext.runFeatures(CucumberExecutionContext.java:145) > at io.cucumber.core.runtime.Runtime.run(Runtime.java:78) > at io.cucumber.core.cli.Main.run(Main.java:87) > at io.cucumber.core.cli.Main.main(Main.java:30) > Caused by: java.lang.IllegalStateException: Failed to load ApplicationContext > for [WebMergedContextConfiguration@b94ab88 testClass = > org.apache.fineract.TestSuite, locations = [], classes = > [org.apache.fineract.TestConfiguration], contextInitializerClasses = [], > activeProfiles = [], propertySourceDescriptors = > [PropertySourceDescriptor[locations=[classpath:application-test.properties], > ignoreResourceNotFound=false, name=null, propertySourceFactory=null, > encoding=null]], propertySourceProperties = [], contextCustomizers = > [org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory$OnFailureConditionReportContextCustomizer@79beb8a0, > > org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, > > org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, > > org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@63f1d374, > > org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@2eb6e166, > > org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1c1bc904, > org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, > org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@41843b88, > > org.springframework.test.context.web.socket.MockServerContainerContextCustomizer@3c5095df, > > org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0], > resourceBasePath = "src/main/webapp", contextLoader = > org.springframework.test.context.web.WebDelegatingSmartContextLoader, parent > = null] > at > org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:180) > at > org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:130) > at > io.cucumber.spring.TestContextAdaptor.create(TestContextAdaptor.java:42) > at io.cucumber.spring.SpringFactory.start(SpringFactory.java:121) > at io.cucumber.core.runner.Runner.buildBackendWorlds(Runner.java:134) > at io.cucumber.core.runner.Runner.runPickle(Runner.java:70) > at > io.cucumber.core.runtime.Runtime.lambda$executePickle$6(Runtime.java:107) > at > io.cucumber.core.runtime.CucumberExecutionContext.lambda$runTestCase$5(CucumberExecutionContext.java:136) > at > io.cucumber.core.runtime.RethrowingThrowableCollector.executeAndThrow(RethrowingThrowableCollector.java:23) > at > io.cucumber.core.runtime.CucumberExecutionContext.runTestCase(CucumberExecutionContext.java:136) > at > io.cucumber.core.runtime.Runtime.lambda$executePickle$7(Runtime.java:107) > at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) > at > io.cucumber.core.runtime.Runtime$SameThreadExecutorService.execute(Runtime.java:235) > at > java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123) > at > io.cucumber.core.runtime.Runtime.lambda$runFeatures$3(Runtime.java:89) > at > java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) > at java.base/java.util.stream.SliceOps$1$1.accept(SliceOps.java:200) > at > java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1685) > at > java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129) > at > java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527) > at > java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) > 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.cucumber.core.runtime.Runtime.runFeatures(Runtime.java:90) > ... 7 more > > Thanks, > Kapil > > On Mon, Sep 8, 2025 at 11:39 AM Ádám Sághy <adamsa...@gmail.com > <mailto:adamsa...@gmail.com>> wrote: >> Hi Kapil, >> >> Thank you for raising this issue, but It looks green to me the Github >> Actions for `develop` branch: >> >> <PastedGraphic-1.png> >> >> Have you fetched this stacktrace from Github Actions build or locally? >> >> Can you please share the full stacktrace also? I fail to see the “real” >> issue in this snippet. >> >> Regards, >> Adam >> >>> On 2025. Sep 8., at 7:27, Kapil Panchal >>> <kapil.panchal.developm...@gmail.com >>> <mailto:kapil.panchal.developm...@gmail.com>> wrote: >>> >>> Gentleman, Ladies, >>> >>> The latest development branch is failing builds, it seems there is an error >>> with e2e tests. Please fix it so that we developers can work. >>> >>> Attached is the stacktrace: >>> >>> Suppressed: java.lang.IllegalStateException: ApplicationContext failure >>> threshold (1) exceeded: skipping repeated attempt to load context for >>> [WebMergedContextConfiguration@37d27800 testClass = >>> org.apache.fineract.TestSuite, locations = [], classes = >>> [org.apache.fineract.TestConfiguration], contextInitializerClasses = [], >>> activeProfiles = [], propertySourceDescriptors = >>> [PropertySourceDescriptor[locations=[classpath:application-test.properties], >>> ignoreResourceNotFound=false, name=null, propertySourceFactory=null, >>> encoding=null]], propertySourceProperties = [], contextCustomizers = >>> [org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory$OnFailureConditionReportContextCustomizer@79296ce0, >>> >>> org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, >>> >>> org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, >>> >>> org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@3b6b9981, >>> >>> org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7bdbf06f, >>> >>> org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@49afaf65, >>> org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, >>> org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@7fd8f21, >>> >>> org.springframework.test.context.web.socket.MockServerContainerContextCustomizer@71c264e5, >>> >>> org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0], >>> resourceBasePath = "src/main/webapp", contextLoader = >>> org.springframework.test.context.web.WebDelegatingSmartContextLoader, >>> parent = null] >>> at >>> org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:145) >>> at >>> org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:130) >>> at >>> io.cucumber.spring.TestContextAdaptor.create(TestContextAdaptor.java:42) >>> at >>> io.cucumber.spring.SpringFactory.start(SpringFactory.java:121) >>> at >>> io.cucumber.core.runner.Runner.buildBackendWorlds(Runner.java:134) >>> at io.cucumber.core.runner.Runner.runPickle(Runner.java:70) >>> at >>> io.cucumber.core.runtime.Runtime.lambda$executePickle$6(Runtime.java:107) >>> at >>> io.cucumber.core.runtime.CucumberExecutionContext.lambda$runTestCase$5(CucumberExecutionContext.java:136) >>> at >>> io.cucumber.core.runtime.RethrowingThrowableCollector.executeAndThrow(RethrowingThrowableCollector.java:23) >>> at >>> io.cucumber.core.runtime.CucumberExecutionContext.runTestCase(CucumberExecutionContext.java:136) >>> at >>> io.cucumber.core.runtime.Runtime.lambda$executePickle$7(Runtime.java:107) >>> at >>> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) >>> at >>> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) >>> at >>> io.cucumber.core.runtime.Runtime$SameThreadExecutorService.execute(Runtime.java:235) >>> at >>> java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123) >>> at >>> io.cucumber.core.runtime.Runtime.lambda$runFeatures$3(Runtime.java:89) >>> at >>> java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) >>> at >>> java.base/java.util.stream.SliceOps$1$1.accept(SliceOps.java:200) >>> at >>> java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1685) >>> at >>> java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129) >>> at >>> java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527) >>> at >>> java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) >>> 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.cucumber.core.runtime.Runtime.runFeatures(Runtime.java:90) >>> at >>> io.cucumber.core.runtime.Runtime.lambda$run$0(Runtime.java:78) >>> at >>> io.cucumber.core.runtime.CucumberExecutionContext.lambda$runFeatures$6(CucumberExecutionContext.java:147) >>> at >>> io.cucumber.core.runtime.CucumberExecutionContext.execute(CucumberExecutionContext.java:162) >>> at >>> io.cucumber.core.runtime.CucumberExecutionContext.runFeatures(CucumberExecutionContext.java:145) >>> ... 3 more >>> >>> > Task :fineract-provider:cucumber FAILED >>> >>> FAILURE: Build failed with an exception. >>> >>> * What went wrong: >>> Execution failed for task ':fineract-provider:cucumber'. >>> > java.lang.RuntimeException: The execution failed >>> >>> * Try: >>> > Run with --stacktrace option to get the stack trace. >>> > Run with --info or --debug option to get more log output. >>> > Get more help at https://help.gradle.org <https://help.gradle.org/>. >>> >>> Deprecated Gradle features were used in this build, making it incompatible >>> with Gradle 9.0. >>> >>> You can use '--warning-mode all' to show the individual deprecation >>> warnings and determine if they come from your own scripts or plugins. >>> >>> For more on this, please refer to >>> https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings >>> in the Gradle documentation. >>> >>> BUILD FAILED in 7m 36s >>> 79 actionable tasks: 11 executed, 68 up-to-date >>> >>> Thanks, >>> Kapil >>