Hi Achia,

This seems to be related to the recent introduction of Spring Batch and its
relevant refactorings.

My assumption is that you've already had fineract built locally on your
machine and you just pulled the latest changes and tried starting the app
again.
In some cases the build cache is not properly recognized in the Gradle
builds and outdated files might still be left over.
Please do a full build cache clean and rerun the application.

Best,
Arnold

On Wed, Aug 17, 2022 at 12:21 PM Achia Rolence <akarolenc...@gmail.com>
wrote:

> Hello community I just pulled the from develop branch on the Fineract
> Server and on running the docker-compose-postgresql.yml application failed
> tostart with the following:
>
> main] ConfigServletWebServerApplicationContext : Exception encountered
> during context initialization - cancelling refresh attempt:
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to
> read candidate component class: file
> [/app/classes/org/apache/fineract/adhocquery/service/AdHocScheduledJobRunnerServiceImpl.class];
> nested exception is java.lang.IllegalArgumentException: No enum constant
> org.apache.fineract.infrastructure.jobs.service.JobName.GENERATE_ADHOCCLIENT_SCEHDULE
> 2022-08-17 09:52:01.509 -ERROR 1  --- [           main]
> o.s.boot.SpringApplication               : Application run failed
>
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to
> read candidate component class: file
> [/app/classes/org/apache/fineract/adhocquery/service/AdHocScheduledJobRunnerServiceImpl.class];
> nested exception is java.lang.IllegalArgumentException: No enum constant
> org.apache.fineract.infrastructure.jobs.service.JobName.GENERATE_ADHOCCLIENT_SCEHDULE
> at
> org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:457)
> at
> org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:316)
> at
> org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:276)
> at
> org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:128)
> at
> org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:296)
> at
> org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:250)
> at
> org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:207)
> at
> org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:175)
> at
> org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:331)
> at
> org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:247)
> at
> org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:311)
> at
> org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:112)
> at
> org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
> at
> org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
> at
> org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734)
> at
> org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
> at
> org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164)
> at org.apache.fineract.ServerApplication.main(ServerApplication.java:54)
> Caused by: java.lang.IllegalArgumentException: No enum constant
> org.apache.fineract.infrastructure.jobs.service.JobName.GENERATE_ADHOCCLIENT_SCEHDULE
> at java.base/java.lang.Enum.valueOf(Enum.java:273)
> at
> org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.visitEnum(MergedAnnotationReadingVisitor.java:104)
> at
> org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.visitEnum(MergedAnnotationReadingVisitor.java:79)
> at
> org.springframework.asm.ClassReader.readElementValue(ClassReader.java:3080)
> at
> org.springframework.asm.ClassReader.readElementValues(ClassReader.java:2999)
> at org.springframework.asm.ClassReader.readMethod(ClassReader.java:1414)
> at org.springframework.asm.ClassReader.accept(ClassReader.java:745)
> at org.springframework.asm.ClassReader.accept(ClassReader.java:425)
> at
> org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:49)
> at
> org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103)
> at
> org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:123)
> at
> org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:429)
> ... 19 common frames omitted
>

Reply via email to