Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save leandromuto/7a82b253151b6efe6813441b075eb25d to your computer and use it in GitHub Desktop.
Save leandromuto/7a82b253151b6efe6813441b075eb25d to your computer and use it in GitHub Desktop.
log4j:ERROR Could not read configuration file [file:/Users/leandromuto/.m2/repository/com/keyrus/carrefourAutomation/core/1.0-SNAPSHOT/core-1.0-SNAPSHOT.jar!/config/log4j.properties].
java.io.FileNotFoundException: file:/Users/leandromuto/.m2/repository/com/keyrus/carrefourAutomation/core/1.0-SNAPSHOT/core-1.0-SNAPSHOT.jar!/config/log4j.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
at com.selenium.framework.helper.LoggerHelper.getLogger(LoggerHelper.java:16)
at hooksFrontend.Hooks.<init>(Hooks.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:41)
at cucumber.runtime.java.DefaultJavaObjectFactory.getInstance(DefaultJavaObjectFactory.java:33)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.runtime.Runtime.run(Runtime.java:122)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
log4j:ERROR Ignoring configuration file [file:/Users/leandromuto/.m2/repository/com/keyrus/carrefourAutomation/core/1.0-SNAPSHOT/core-1.0-SNAPSHOT.jar!/config/log4j.properties].
log4j:WARN No appenders could be found for logger (hooksFrontend.Hooks).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
java.lang.NullPointerException
at com.selenium.framework.helper.Generic.getUrl(Generic.java:36)
at pagesFrontend.GoogleHomePage.openGoogle(GoogleHomePage.java:21)
at stepsFrontend.GoogleSearch.aGoogleSearchPage(GoogleSearch.java:15)
at ✽.Given A Google search page(GoogleSearch.feature:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment