<span>java.lang.ExceptionInInitializerError</span>
<span>at BDD.HART_listeners.TestListener.onTestStart(TestListener.java:26)</span>
<span>Caused by: java.lang.NullPointerException</span>
<span>at BDD.HART_utility.HARTLogger.initialize(HARTLogger.java:37)</span>
<span>at BDD.HART_utility.HARTLogger.getLogger(HARTLogger.java:65)</span>
<span>at BDD.HART_utility.ConfigReader.<clinit>(ConfigReader.java:12)</span>
<span>... 26 more</span>
<span>... Removed 25 stack frames</span>
<span>Could not initialize class BDD.HART_utility.ConfigReader</span>
<span>java.lang.NoClassDefFoundError: Could not initialize class BDD.HART_utility.ConfigReader</span>
<span>at BDD.HART_listeners.TestListener.onTestFailure(TestListener.java:59)</span>
Hello @Sourav Pratap and welcome to the Community.
Are you running the automated test cases in Bitbucket Pipelines?
If yes, then I would suggest trying to debug your code locally with docker, as the error suggests the issue is with your current java code itself, rather than with the Pipelines environment.
After debugging it locally, once you've got it working well, you can update your bitbucket-pipelines.yml to match the changes.
Thank you, @Sourav Pratap !
Patrik S
It looks like you're new here. Sign in or register to get started.