The build is completing successfully now, but we're still encountering an issue
during application startup. The problem is intermittent — even after a
successful build, the application doesn't always start correctly. Occasionally,
it throws an error related to the InlineLoanCOBExecutorServiceImpl.class file.
Error:
____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.1.7)
2025-05-06T16:40:33.278+05:30 INFO 937800 --- [ main]
org.apache.fineract.ServerApplication : Starting ServerApplication
v1.10.0-SNAPSHOT using Java 17.0.14 with PID 937800
(/incubator-fineract-scf/fineract-provider/build/libs/fineract-provider-1.10.0-SNAPSHOT.jar
started by ubuntu in /home/ubuntu)
2025-05-06T16:40:33.280+05:30 INFO 937800 --- [ main]
org.apache.fineract.ServerApplication : The following 1 profile is active:
"dev"
2025-05-06T16:40:34.011+05:30 WARN 937800 --- [ main]
ConfigServletWebServerApplicationContext : Exception encountered during context
initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read
candidate component class: URL
[jar:file:/incubator-fineract-scf/fineract-provider/build/libs/fineract-provider-1.10.0-SNAPSHOT.jar!/BOOT-INF/classes!/org/apache/fineract/cob/service/InlineLoanCOBExecutorServiceImpl.class]
2025-05-06T16:40:34.335+05:30 ERROR 937800 --- [ main]
o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read
candidate component class: URL
[jar:file:/incubator-fineract-scf/fineract-provider/build/libs/fineract-provider-1.10.0-SNAPSHOT.jar!/BOOT-INF/classes!/org/apache/fineract/cob/service/InlineLoanCOBExecutorServiceImpl.class]
at
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:464)
~[spring-context-6.0.15.jar!/:6.0.15]
at
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:318)
~[spring-context-6.0.15.jar!/:6.0.15]
at
org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:276)
~[spring-context-6.0.15.jar!/:6.0.15]
at
org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:128)
~[spring-context-6.0.15.jar!/:6.0.15]
at
org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:289)
~[spring-context-6.0.15.jar!/:6.0.15]
at
org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:243)
~[spring-context-6.0.15.jar!/:6.0.15]
at
org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:517)
~[spring-context-6.0.15.jar!/:6.0.15]
From: Ádám Sághy <[email protected]>
Sent: Tuesday, May 6, 2025 2:30 PM
To: [email protected]
Subject: Re: Intermittent Build Failure Post Migration to Fineract 1.9 from 1.4
Hi
You can give a try to not use gradle daemon and clear gradle build cache before:
./gradlew --no-daemon --no-build-cache ...
The issue is not occurring during our CI (Github Actions), so a clean
environment and not using gradle daemon might sort this issue out till we
figure out why the avro schema generation cause some issues during rebuild.
Regards,
Adam
On 2025. May 6., at 10:31, Bhaskar Tiwari
<[email protected]<mailto:[email protected]>> wrote:
Already did that.
Issue is Intermittent sometimes it works but sometimes build fails.
From: Jose Alberto Hernandez
<[email protected]<mailto:[email protected]>>
Sent: Tuesday, May 6, 2025 1:58 PM
To: [email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: Intermittent Build Failure Post Migration to Fineract 1.9 from 1.4
Please try the clean and build gradlew options separately
I mean first
gradlew clean
then the rest for building
Sent from my iPhone
On 6 May 2025, at 3:04 a.m., Bhaskar Tiwari
<[email protected]<mailto:[email protected]>> wrote:
We’re using OpenJDK 17.0.14 for the build process.
On local development machines: Windows with OpenJDK 17.0.14
On our deployment/build servers: Linux with OpenJDK 17.0.14
Let me know if you need any additional environment details.
From: VICTOR MANUEL ROMERO RODRIGUEZ
<[email protected]<mailto:[email protected]>>
Sent: Tuesday, May 6, 2025 1:23 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: Intermittent Build Failure Post Migration to Fineract 1.9 from 1.4
Which is the Operating System and the Java version used for the building
process?
El El mar, 6 de may de 2025 a la(s) 12:02 a.m., Bhaskar Tiwari
<[email protected]<mailto:[email protected]>> escribió:
Hi Team,
We recently migrated our application from Fineract 1.4 to Fineract 1.9. After
addressing all conflicts and successfully executing the migration scripts, the
application is running smoothly without any functional issues.
However, we have encountered an intermittent issue during the build process.
Specifically, when running the following build command:
./gradlew clean build -x rat -x test -x compileTestJava -x checkstyleTest -x
checkstyleMain -x spotbugsTest -x spotbugsMain -x spotlessGroovyGradleCheck -x
spotlessJavaCheck -x cucumber -x spotlessMiscCheck -x modernizer
The build sometimes succeeds and sometimes fails, with the failures typically
related to Fineract Avro dependencies. We've tried multiple troubleshooting
steps, but the issue persists and appears to occur at random or in alternate
attempts.
I'm attaching the relevant error logs for reference. Please let us know if
there are any known issues or additional steps we should consider.
Best regards,
Bhaskar Tiwari
"Print this mail only if absolutely necessary. Save Paper. Save Trees."
Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree
Private Limited) may contain Confidential/Restricted/Internal information and
should only be viewed by the intended recipients. Under no circumstances may
any such information be disclosed, copied, used or distributed to any
unauthorized persons or entities without the written consent of Strideone. If
you are not the intended recipient, any review, retransmission, dissemination
or reliance on the content of these materials is strictly prohibited and may be
the subject of legal action. If you received this email in error, please notify
the sender and delete the message immediately.”
"Print this mail only if absolutely necessary. Save Paper. Save Trees."
Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree
Private Limited) may contain Confidential/Restricted/Internal information and
should only be viewed by the intended recipients. Under no circumstances may
any such information be disclosed, copied, used or distributed to any
unauthorized persons or entities without the written consent of Strideone. If
you are not the intended recipient, any review, retransmission, dissemination
or reliance on the content of these materials is strictly prohibited and may be
the subject of legal action. If you received this email in error, please notify
the sender and delete the message immediately.”
"Print this mail only if absolutely necessary. Save Paper. Save Trees."
Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree
Private Limited) may contain Confidential/Restricted/Internal information and
should only be viewed by the intended recipients. Under no circumstances may
any such information be disclosed, copied, used or distributed to any
unauthorized persons or entities without the written consent of Strideone. If
you are not the intended recipient, any review, retransmission, dissemination
or reliance on the content of these materials is strictly prohibited and may be
the subject of legal action. If you received this email in error, please notify
the sender and delete the message immediately.”
"Print this mail only if absolutely necessary. Save Paper. Save Trees."
Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree
Private Limited) may contain Confidential/Restricted/Internal information and
should only be viewed by the intended recipients. Under no circumstances may
any such information be disclosed, copied, used or distributed to any
unauthorized persons or entities without the written consent of Strideone. If
you are not the intended recipient, any review, retransmission, dissemination
or reliance on the content of these materials is strictly prohibited and may be
the subject of legal action. If you received this email in error, please notify
the sender and delete the message immediately.”