java.lang.ExceptionInInitializerError
at BDD.HART_listeners.TestListener.onTestStart(TestListener.java:26)
Caused by: java.lang.NullPointerException
at BDD.HART_utility.HARTLogger.initialize(HARTLogger.java:37)
at BDD.HART_utility.HARTLogger.getLogger(HARTLogger.java:65)
at BDD.HART_utility.ConfigReader.<clinit>(ConfigReader.java:12)
... 26 more
... Removed 25 stack frames
Could not initialize class BDD.HART_utility.ConfigReader
java.lang.NoClassDefFoundError: Could not initialize class BDD.HART_utility.ConfigReader
at BDD.HART_listeners.TestListener.onTestFailure(TestListener.java:59)
... Removed 25 stack frames
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.