As the title states, I cannot open FireFox through selenium3. I tried all possible combinations
selenium 3
firefox latest version 54.0.1 (verified 32 bit or 64 bit)
Below is my code:
/* public class testing {
public static WebDriver d;
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "E:\\geckodriver.exe");
d = new FirefoxDriver();
d.manage().window().maximize();
d.get("https://www.google.com");
}
}
*/
I am getting the following error:
/* org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
lse,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.0.1"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1502430891044 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1502430891046 DeferredSave.extensions.json DEBUG Save changes
1502430891046 addons.xpi DEBUG Updating database with changes to installed add-ons
1502430891046 addons.xpi-utils DEBUG Updating add-on states
1502430891047 addons.xpi-utils DEBUG Writing add-ons list
1502430891050 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\aushelper#mozilla.org.xpi
1502430891051 addons.xpi DEBUG Calling bootstrap method startup on aushelper#mozilla.org version 2.0
1502430891052 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout#mozilla.org.xpi
1502430891053 addons.xpi DEBUG Calling bootstrap method startup on e10srollout#mozilla.org version 1.50
1502430891053 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox#getpocket.com.xpi
1502430891054 addons.xpi DEBUG Calling bootstrap method startup on firefox#getpocket.com version 1.0.5
1502430891055 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\screenshots#mozilla.org.xpi
1502430891055 addons.xpi DEBUG Calling bootstrap method startup on screenshots#mozilla.org version 6.6.0
1502430891055 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat#mozilla.org.xpi
1502430891056 addons.xpi DEBUG Calling bootstrap method startup on webcompat#mozilla.org version 1.1
1502430891060 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1502430891060 addons.manager DEBUG Provider finished startup: XPIProvider
1502430891060 addons.manager DEBUG Starting provider: LightweightThemeManager
1502430891060 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1502430891060 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1502430891061 addons.manager DEBUG Starting provider: GMPProvider
1502430891065 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1502430891065 addons.manager DEBUG Provider finished startup: GMPProvider
1502430891066 addons.manager DEBUG Starting provider: PluginProvider
1502430891066 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1502430891066 addons.manager DEBUG Provider finished startup: PluginProvider
1502430891066 addons.manager DEBUG Completed startup sequence
1502430892611 addons.manager DEBUG Starting provider: <unnamed-provider>
1502430892612 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1502430892613 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1502430892768 DeferredSave.extensions.json DEBUG Write succeeded
1502430892768 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1502430892768 DeferredSave.extensions.json DEBUG Starting timer
1502430892785 addons.repository DEBUG No addons.json found.
1502430892786 DeferredSave.addons.json DEBUG Save changes
1502430892834 DeferredSave.addons.json DEBUG Starting timer
1502430892940 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1502430892940 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1502430892940 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1502430892944 DeferredSave.extensions.json DEBUG Starting write
1502430892945 DeferredSave.addons.json DEBUG Starting write
1502430892968 DeferredSave.extensions.json DEBUG Write succeeded
1502430892973 DeferredSave.addons.json DEBUG Write succeeded
[GPU 120] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at ggg.w.main(w.java:13)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
lse,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.0.1"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1502430891044 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1502430891046 DeferredSave.extensions.json DEBUG Save changes
1502430891046 addons.xpi DEBUG Updating database with changes to installed add-ons
1502430891046 addons.xpi-utils DEBUG Updating add-on states
1502430891047 addons.xpi-utils DEBUG Writing add-ons list
1502430891050 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\aushelper#mozilla.org.xpi
1502430891051 addons.xpi DEBUG Calling bootstrap method startup on aushelper#mozilla.org version 2.0
1502430891052 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout#mozilla.org.xpi
1502430891053 addons.xpi DEBUG Calling bootstrap method startup on e10srollout#mozilla.org version 1.50
1502430891053 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox#getpocket.com.xpi
1502430891054 addons.xpi DEBUG Calling bootstrap method startup on firefox#getpocket.com version 1.0.5
1502430891055 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\screenshots#mozilla.org.xpi
1502430891055 addons.xpi DEBUG Calling bootstrap method startup on screenshots#mozilla.org version 6.6.0
1502430891055 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat#mozilla.org.xpi
1502430891056 addons.xpi DEBUG Calling bootstrap method startup on webcompat#mozilla.org version 1.1
1502430891060 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1502430891060 addons.manager DEBUG Provider finished startup: XPIProvider
1502430891060 addons.manager DEBUG Starting provider: LightweightThemeManager
1502430891060 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1502430891060 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1502430891061 addons.manager DEBUG Starting provider: GMPProvider
1502430891065 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1502430891065 addons.manager DEBUG Provider finished startup: GMPProvider
1502430891066 addons.manager DEBUG Starting provider: PluginProvider
1502430891066 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1502430891066 addons.manager DEBUG Provider finished startup: PluginProvider
1502430891066 addons.manager DEBUG Completed startup sequence
1502430892611 addons.manager DEBUG Starting provider: <unnamed-provider>
1502430892612 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1502430892613 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1502430892768 DeferredSave.extensions.json DEBUG Write succeeded
1502430892768 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1502430892768 DeferredSave.extensions.json DEBUG Starting timer
1502430892785 addons.repository DEBUG No addons.json found.
1502430892786 DeferredSave.addons.json DEBUG Save changes
1502430892834 DeferredSave.addons.json DEBUG Starting timer
1502430892940 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1502430892940 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1502430892940 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1502430892944 DeferredSave.extensions.json DEBUG Starting write
1502430892945 DeferredSave.addons.json DEBUG Starting write
1502430892968 DeferredSave.extensions.json DEBUG Write succeeded
1502430892973 DeferredSave.addons.json DEBUG Write succeeded
[GPU 120] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'CI018', ip: '192.168.60.15', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:124)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at ggg.w.main(w.java:13)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
lse,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.0.1"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1502430891044 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1502430891046 DeferredSave.extensions.json DEBUG Save changes
1502430891046 addons.xpi DEBUG Updating database with changes to installed add-ons
1502430891046 addons.xpi-utils DEBUG Updating add-on states
1502430891047 addons.xpi-utils DEBUG Writing add-ons list
1502430891050 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\aushelper#mozilla.org.xpi
1502430891051 addons.xpi DEBUG Calling bootstrap method startup on aushelper#mozilla.org version 2.0
1502430891052 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout#mozilla.org.xpi
1502430891053 addons.xpi DEBUG Calling bootstrap method startup on e10srollout#mozilla.org version 1.50
1502430891053 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox#getpocket.com.xpi
1502430891054 addons.xpi DEBUG Calling bootstrap method startup on firefox#getpocket.com version 1.0.5
1502430891055 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\screenshots#mozilla.org.xpi
1502430891055 addons.xpi DEBUG Calling bootstrap method startup on screenshots#mozilla.org version 6.6.0
1502430891055 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat#mozilla.org.xpi
1502430891056 addons.xpi DEBUG Calling bootstrap method startup on webcompat#mozilla.org version 1.1
1502430891060 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1502430891060 addons.manager DEBUG Provider finished startup: XPIProvider
1502430891060 addons.manager DEBUG Starting provider: LightweightThemeManager
1502430891060 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1502430891060 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1502430891061 addons.manager DEBUG Starting provider: GMPProvider
1502430891065 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1502430891065 addons.manager DEBUG Provider finished startup: GMPProvider
1502430891066 addons.manager DEBUG Starting provider: PluginProvider
1502430891066 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1502430891066 addons.manager DEBUG Provider finished startup: PluginProvider
1502430891066 addons.manager DEBUG Completed startup sequence
1502430892611 addons.manager DEBUG Starting provider: <unnamed-provider>
1502430892612 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1502430892613 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1502430892768 DeferredSave.extensions.json DEBUG Write succeeded
1502430892768 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1502430892768 DeferredSave.extensions.json DEBUG Starting timer
1502430892785 addons.repository DEBUG No addons.json found.
1502430892786 DeferredSave.addons.json DEBUG Save changes
1502430892834 DeferredSave.addons.json DEBUG Starting timer
1502430892940 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1502430892940 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1502430892940 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1502430892944 DeferredSave.extensions.json DEBUG Starting write
1502430892945 DeferredSave.addons.json DEBUG Starting write
1502430892968 DeferredSave.extensions.json DEBUG Write succeeded
1502430892973 DeferredSave.addons.json DEBUG Write succeeded
[GPU 120] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112)
... 7 more
*/
I seen so many blogs all are explained get back to lower version, but I don't think that is the correct solution, because everyday Mozilla is updated with better UX. Therefore, I would prefer using the newer version.
The reason for this error is surely the .jar files
Please try and update your jar files to the newest 3.5.0 version and I think your issue will be resolved
Here is the link to get the latest version
http://www.seleniumhq.org/download/
Hope it helps.
Most of the times when its showing error as "1502430891044 addons.xpi DEBUG" this was due to version compatibility. Go to this site
https://raw.githubusercontent.com/SeleniumHQ/selenium/master/java/CHANGELOG.
Related
I had to run maven clean command by mistake and the target report folder go cleansed. Now, If I build and run my feature file i get below error. How can I resolve this?
BTW, I am using karate version 0.9.0 (Even though it might not depend)
And also, How can I clean the report folder if its causing below issues?
19:07:59.921 [main] INFO com.intuit.karate.Runner - Karate version: 0.9.0
Karate version: 0.9.0
======================================================
elapsed: 0.01 | threads: 5 | thread time: 0.00
features: 0 | ignored: 0 | efficiency: 0.00
scenarios: 0 | passed: 0 | failed: 0
======================================================
Dec 13, 2018 7:08:00 PM net.masterthought.cucumber.ReportBuilder generateErrorPage
INFO: Unexpected error
net.masterthought.cucumber.ValidationException: No report file was added!
at net.masterthought.cucumber.ReportParser.parseJsonFiles(ReportParser.java:58)
at net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:88)
at PP1.RunnerClasses.Validationrunner.generateReport(Validationrunner.java:45)
at PP1.RunnerClasses.Validationrunner.testParallel(Validationrunner.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
19:08:00.696 [main] DEBUG org.apache.velocity - CommonsLogLogChute name is 'org.apache.velocity'
19:08:00.696 [main] DEBUG org.apache.velocity - Initializing Velocity, Calling init()...
19:08:00.697 [main] DEBUG org.apache.velocity - Starting Apache Velocity v1.7 (compiled: 2010-11-19 12:14:37)
19:08:00.697 [main] DEBUG org.apache.velocity - Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
19:08:00.697 [main] DEBUG org.apache.velocity - Trying to use logger class org.apache.velocity.runtime.log.AvalonLogChute
19:08:00.697 [main] DEBUG org.apache.velocity - Target log system for org.apache.velocity.runtime.log.AvalonLogChute is not available (java.lang.NoClassDefFoundError: org/apache/log/format/Formatter). Falling back to next log system...
19:08:00.697 [main] DEBUG org.apache.velocity - Trying to use logger class org.apache.velocity.runtime.log.Log4JLogChute
19:08:00.699 [main] DEBUG org.apache.velocity - Target log system for org.apache.velocity.runtime.log.Log4JLogChute is not available (java.lang.NoClassDefFoundError: org/apache/log4j/Layout). Falling back to next log system...
19:08:00.700 [main] DEBUG org.apache.velocity - Trying to use logger class org.apache.velocity.runtime.log.CommonsLogLogChute
19:08:00.700 [main] DEBUG org.apache.velocity - Using logger class org.apache.velocity.runtime.log.CommonsLogLogChute
19:08:00.709 [main] DEBUG org.apache.velocity - ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:00.735 [main] DEBUG org.apache.velocity - ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.
19:08:00.738 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Stop
19:08:00.740 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Define
19:08:00.742 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Break
19:08:00.744 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate
19:08:00.746 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Literal
19:08:00.749 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Macro
19:08:00.753 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Parse
19:08:00.757 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Include
19:08:00.761 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
19:08:00.874 [main] DEBUG org.apache.velocity - Created '20' parsers.
19:08:00.889 [main] DEBUG org.apache.velocity - Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm
19:08:00.890 [main] DEBUG org.apache.velocity - Could not load resource 'VM_global_library.vm' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: ClasspathResourceLoader Error: cannot find resource VM_global_library.vm
19:08:00.890 [main] DEBUG org.apache.velocity - Velocimacro : Default library not found.
19:08:00.890 [main] DEBUG org.apache.velocity - Velocimacro : allowInline = true : VMs can be defined inline in templates
19:08:00.890 [main] DEBUG org.apache.velocity - Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
19:08:00.890 [main] DEBUG org.apache.velocity - Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
19:08:00.890 [main] DEBUG org.apache.velocity - Velocimacro : autoload off : VM system will not automatically reload global library macros
19:08:01.243 [main] DEBUG org.apache.velocity - ResourceManager : found templates/generators/errorpage.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.258 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/headers.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.259 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/head.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.265 [main] DEBUG org.apache.velocity - Velocimacro : added VM stringArray: source=/templates/macros/array.js.vm
19:08:01.265 [main] DEBUG org.apache.velocity - Velocimacro : added VM numberArray: source=/templates/macros/array.js.vm
19:08:01.265 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/array.js.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.269 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeBuildInfo: source=/templates/macros/page/buildinfo.vm
19:08:01.270 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/buildinfo.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.278 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeClassifications: source=/templates/macros/page/classifications.vm
19:08:01.278 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/classifications.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.280 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeLead: source=/templates/macros/page/lead.vm
19:08:01.280 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/lead.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.286 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeNavigation: source=/templates/macros/page/navigation.vm
19:08:01.286 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/navigation.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.291 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeReportInfo: source=/templates/macros/page/reportInfo.vm
19:08:01.292 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/reportInfo.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.295 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeTitle: source=/templates/macros/page/title.vm
19:08:01.295 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/title.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.304 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeExpandingButtons: source=/templates/macros/report/expandAllButtons.vm
19:08:01.304 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/expandAllButtons.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.312 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeReportTable: source=/templates/macros/report/reportTable.vm
19:08:01.313 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/reportTable.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.318 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeReportHeader: source=/templates/macros/report/reportHeader.vm
19:08:01.318 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/reportHeader.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.327 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeStatsTable: source=/templates/macros/report/statsTable.vm
19:08:01.327 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/statsTable.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.330 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeBrief: source=/templates/macros/json/brief.vm
19:08:01.330 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/brief.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.335 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeDocString: source=/templates/macros/json/docstring.vm
19:08:01.337 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/docstring.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.342 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeDuration: source=/templates/macros/json/duration.vm
19:08:01.342 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/duration.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.347 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeElement: source=/templates/macros/json/element.vm
19:08:01.347 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/element.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.385 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeEmbeddings: source=/templates/macros/json/embeddings.vm
19:08:01.386 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeHtmlEmbedding: source=/templates/macros/json/embeddings.vm
19:08:01.387 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeImageEmbedding: source=/templates/macros/json/embeddings.vm
19:08:01.388 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeImageReferenceEmbedding: source=/templates/macros/json/embeddings.vm
19:08:01.388 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeTextEmbedding: source=/templates/macros/json/embeddings.vm
19:08:01.389 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeUnknownEmbedding: source=/templates/macros/json/embeddings.vm
19:08:01.389 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/embeddings.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.392 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeHooks: source=/templates/macros/json/hooks.vm
19:08:01.392 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/hooks.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.397 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeOutput: source=/templates/macros/json/output.vm
19:08:01.397 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/output.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.401 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeMessage: source=/templates/macros/json/message.vm
19:08:01.401 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/message.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.406 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeSteps: source=/templates/macros/json/steps.vm
19:08:01.406 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/steps.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.409 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeStepName: source=/templates/macros/json/stepName.vm
19:08:01.409 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/stepName.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.412 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeTags: source=/templates/macros/json/tags.vm
19:08:01.413 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/tags.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
19:08:01.440 [main] DEBUG org.apache.velocity - VM #includeNavigation: too few arguments to macro. Wanted 1 got 0
19:08:01.442 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 14, column 51]
19:08:01.442 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 15, column 51]
19:08:01.442 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 16, column 51]
19:08:01.443 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 20, column 51]
19:08:01.465 [main] DEBUG org.apache.velocity - Null reference [template 'templates/generators/errorpage.vm', line 23, column 85] : $build_number cannot be resolved.
19:08:01.465 [main] DEBUG org.apache.velocity - Null reference [template 'templates/generators/errorpage.vm', line 23, column 85] : $build_number cannot be resolved.
19:08:01.480 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/footer.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Try this, it will work for the karate 1.0.1 version
/**
* Use this method if you want to execute entire feature files available in any folder.
*/
#Test
public void runMultipleFeatureFiles() {
System.setProperty("karate.env", "qa");
Results results = Runner.builder().outputCucumberJson(true)
.path("classpath:features/apitests/testFeatures").tags("~#Ignore").parallel(2);
Assertions.assertEquals(0, results.getFailCount());
generateReport(results.getReportDir());
}
/**
* Generate test case execution report post-execution.
*
* #param karateOutputPath - directory where you want to keep a report of test case executions.
*/
public static void generateReport(String karateOutputPath) {
Collection<File> jsonFiles =
FileUtils.listFiles(new File(karateOutputPath), new String[] {"json"}, true);
List<String> jsonPaths = new ArrayList<String>(jsonFiles.size());
jsonFiles.forEach(file -> jsonPaths.add(file.getAbsolutePath()));
Configuration config = new Configuration(new File("target"), "ReqRes.in SampleAPI Testing");
ReportBuilder reportBuilder = new ReportBuilder(jsonPaths, config);
reportBuilder.generateReports();
}
In Pom.xml add this maven dependencies:
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>5.3.1</version>
<scope>test</scope>
</dependency>
Solved myself; Used karate-junit4 instead of karate-junit5 which is was using earlier in my .pom file.
But, I still don't understand why this error is caused if i used junit5!
//My runner file
#Test
void testParallel() {
Results results = Runner.path("classpath:conduitApp")
.outputCucumberJson(true)
.tags("~#ignore").parallel(5);
generateReport(results.getReportDir());
assertEquals(0, results.getFailCount(), results.getErrorMessages());
}
Note that outputCucumberJson(true) is called on the Runner “builder” to make it work.
Following this I have deployed GeoServer on Azure AppService using Tomcat 8.0.
Initially Tomcat automatically deploy it without any trouble except that it took over 5 minutes and any request to the website will just timeout after couple minutes showing a CGI related error message. However it will be up and running eventually.
However, I notice it from time to time randomly a request comes in would hit a cold start and Tomcat will re-deploy the web archive which would make the request having to wait for over 3 minutes. For example, examining the Catalina logs for 3rd Jan, it cold start re-deploy the web archive at 8am and then at 2pm it happens again. However there is no change to the web archive at all.
If user will get a 4 minutes wait randomly throughout the day on hitting the cold start, this would not be acceptable for our production use. So any help would be appreciated.
Not sure if this is related but I notice Tomcat has a bunch of setting like autoDeploy etc however I have zero experience with Tomcat and therefore if setting these setting will resolve my problem, I would like some help what would be the correct setting and more importantly how to set it on Azure AppService to disable the auto re-deploy?
Here is the Catalina logs:
03-Jan-2018 14:29:38.950 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.46
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 10 2017 10:10:31 UTC
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.46.0
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 2016
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: D:\Program Files\Java\zulu8.23.0.3-jdk8.0.144-win_x64\jre
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_144-b01
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Azul Systems, Inc.
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\Program Files (x86)\apache-tomcat-8.0.46\conf\logging.properties
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\Program Files (x86)\apache-tomcat-8.0.46\conf\logging.properties
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsite.logdir=d:\home\LogFiles\
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsite.tempdir=D:\local\Temp
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dport.http=11790
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.net.preferIPv4Stack=true
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=D:\Program Files (x86)\apache-tomcat-8.0.46\endorsed
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\local\Temp
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\zulu8.23.0.3-jdk8.0.144-win_x64\bin;D:\Windows\Sun\Java\bin;D:\Windows\system32;D:\Windows;D:\Program Files (x86)\nodejs;D:\Windows\system32;D:\Windows;D:\Windows\System32\Wbem;D:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\Git\cmd;D:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;D:\Program Files (x86)\dotnet;D:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;D:\Python27;;D:\home\GDAL\gdal-1.9.2-MSVC2010-x64;.
03-Jan-2018 14:29:39.701 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-11790"]
03-Jan-2018 14:29:46.213 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
03-Jan-2018 14:29:46.225 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 10916 ms
03-Jan-2018 14:29:47.866 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
03-Jan-2018 14:29:47.866 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.46
03-Jan-2018 14:29:50.553 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive D:\home\site\wwwroot\webapps\geoserver.war
03-Jan-2018 14:31:13.696 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
03-Jan-2018 14:31:19.054 INFO [localhost-startStop-1] it.geosolutions.imageio.gdalframework.GDALUtilities.loadGDAL GDAL Native Library loaded (version: 1.9.2)
03-Jan-2018 14:31:25.527 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'XStreamPersisterInitializer', but ApplicationContext is unset.
03-Jan-2018 14:31:25.527 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:31:25.544 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
03-Jan-2018 14:31:25.544 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'GeoServerSecurityProvider', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:33:32.300 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive D:\home\site\wwwroot\webapps\geoserver.war has finished in 221,747 ms
03-Jan-2018 14:33:32.349 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\home\site\wwwroot\webapps\ROOT
03-Jan-2018 14:33:32.409 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\home\site\wwwroot\webapps\ROOT has finished in 60 ms
03-Jan-2018 14:33:32.409 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\home\site\wwwroot\webapps\target
03-Jan-2018 14:33:32.458 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\home\site\wwwroot\webapps\target has finished in 49 ms
03-Jan-2018 14:33:32.615 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-11790"]
03-Jan-2018 14:33:32.723 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 226502 ms
I am trying to start new sonarqube LTS 6.7.1 on Red Hat Enterprise 7 with x64 architechture and failing.
Logs show ->
2017.12.22 07:52:27 INFO app[][o.e.p.PluginsService] no modules loaded
2017.12.22 07:52:27 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.22 07:52:35 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2017.12.22 07:52:35 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /opt/IBM/WebSphere/AppServer/java_1.8_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xms512m -XX:+HeapDumpOnOutOfMemoryError -server -cp ./lib/common/*:./lib/server/*:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.1.4.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process7192036004631233695properties
2017.12.22 07:52:42 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.12.22 07:52:42 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2017.12.22 07:52:42 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.12.22 07:52:42 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
I believe the problem is that server is trying to find file /opt/sonarqube/temp/sq-process7192036004631233695properties. This path looks incorrect.
Please help share if there is any workaround to solve this problem.
I was trying to deploy SonarQube at a remote Ubuntu machine. I started the server, and the status info was 'SonarQube is running'. But after a few minutes, the server was automatically closed. I got this exception:
2016.11.08 16:41:53 WARN web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
2016.11.08 16:41:53 WARN web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Timer.java:552)
java.util.TimerThread.run(Timer.java:505)
2016.11.08 16:41:53 INFO web[][o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 16:41:53 INFO web[][o.s.s.a.TomcatAccessLog] Web server is started
2016.11.08 16:41:53 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2016.11.08 16:41:53 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web
java.lang.IllegalStateException: Webapp did not start
at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84) ~[sonar-server-6.1.jar:na]
at org.sonar.server.app.WebServer.isUp(WebServer.java:46) [sonar-server-6.1.jar:na]
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105) ~[sonar-process-6.1.jar:na]
at org.sonar.server.app.WebServer.main(WebServer.java:67) [sonar-server-6.1.jar:na]
2016.11.08 16:41:53 INFO web[][o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 16:41:54 INFO web[][o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 16:41:54 INFO web[][o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 16:41:54 INFO web[][o.s.s.a.TomcatAccessLog] Web server is stopped
2016.11.08 16:41:54 INFO app[][o.s.p.m.Monitor] Process[es] is stopping
2016.11.08 16:41:55 INFO es[][o.s.p.StopWatcher] Stopping process
2016.11.08 16:41:55 INFO es[][o.elasticsearch.node] [sonarqube] stopping ...
2016.11.08 16:41:55 INFO es[][o.elasticsearch.node] [sonarqube] stopped
2016.11.08 16:41:55 INFO es[][o.elasticsearch.node] [sonarqube] closing ...
2016.11.08 16:41:55 INFO es[][o.elasticsearch.node] [sonarqube] closed
Below are my versions:
Java: JDK 1.8.0_111
Ubuntu: Ubuntu 14.04
MySQL: 5.6.34
SonarQube: 6.1
below is the full logs
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupported major.minor version 52.0
WrapperSimpleApp Usage:
java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
Where:
app_class: The fully qualified class name of the application to run.
app_arguments: The arguments that would normally be passed to the
application.
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupported major.minor version 52.0
WrapperSimpleApp Usage:
java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
Where:
app_class: The fully qualified class name of the application to run.
app_arguments: The arguments that would normally be passed to the
application.
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupported major.minor version 52.0
"sonar.log" 21127L, 1883274C 1,1 Top
java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
2016.11.08 21:14:58 WARN web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
2016.11.08 21:14:58 WARN web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Timer.java:552)
java.util.TimerThread.run(Timer.java:505)
2016.11.08 21:14:58 INFO web[][o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 21:14:58 INFO web[][o.s.s.a.TomcatAccessLog] Web server is started
2016.11.08 21:14:58 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2016.11.08 21:14:58 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web
java.lang.IllegalStateException: Webapp did not start
at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84) ~[sonar-server-6.1.jar:na]
at org.sonar.server.app.WebServer.isUp(WebServer.java:46) [sonar-server-6.1.jar:na]
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105) ~[sonar-process-6.1.jar:na]
at org.sonar.server.app.WebServer.main(WebServer.java:67) [sonar-server-6.1.jar:na]
2016.11.08 21:14:58 INFO web[][o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 21:14:59 INFO web[][o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 21:14:59 INFO web[][o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-127.0.0.1-9000"]
2016.11.08 21:14:59 INFO web[][o.s.s.a.TomcatAccessLog] Web server is stopped
2016.11.08 21:14:59 INFO app[][o.s.p.m.Monitor] Process[es] is stopping
2016.11.08 21:15:00 INFO es[][o.s.p.StopWatcher] Stopping process
2016.11.08 21:15:00 INFO es[][o.elasticsearch.node] [sonarqube] stopping ...
2016.11.08 21:15:00 INFO es[][o.elasticsearch.node] [sonarqube] stopped
2016.11.08 21:15:00 INFO es[][o.elasticsearch.node] [sonarqube] closing ...
2016.11.08 21:15:00 INFO es[][o.elasticsearch.node] [sonarqube] closed
2016.11.08 21:15:00 INFO app[][o.s.p.m.Monitor] Process[es] is stopped
The famous message "Unsupported major.minor version 52.0" means that Java 8 is not being used whereas it is required.
You should check that JDK 1.8.0_111 is in PATH. If not, an alternative is to edit the property wrapper.java.command in conf/wrapper.conf.
16/04/26 16:58:46 DEBUG ProtobufRpcEngine: Call: complete took 3ms
Exception in thread "main" java.lang.NoClassDefFoundError: com/datastax/spark/connector/japi/CassandraJavaUtil
at com.baitic.mcava.lecturahdfssaveincassandra.TratamientoCSV.main(TratamientoCSV.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: com.datastax.spark.connector.japi.CassandraJavaUtil
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more
16/04/26 16:58:46 INFO SparkContext: Invoking stop() from shutdown hook
16/04/26 16:58:46 INFO SparkUI: Stopped Spark web UI at http://10.128.0.5:4040
16/04/26 16:58:46 INFO SparkDeploySchedulerBackend: Shutting down all executors
16/04/26 16:58:46 INFO SparkDeploySchedulerBackend: Asking each executor to shut down
16/04/26 16:58:46 INFO MapOutputTrackerMasterEndpoint: MapOutputTrackerMasterEndpoint stopped!
16/04/26 16:58:46 INFO MemoryStore: MemoryStore cleared
16/04/26 16:58:46 INFO BlockManager: BlockManager stopped
16/04/26 16:58:46 INFO BlockManagerMaster: BlockManagerMaster stopped
16/04/26 16:58:46 INFO OutputCommitCoordinator$OutputCommitCoordinatorEndpoint: OutputCommitCoordinator stopped!
16/04/26 16:58:46 INFO RemoteActorRefProvider$RemotingTerminator: Shutting down remote daemon.
16/04/26 16:58:46 INFO RemoteActorRefProvider$RemotingTerminator: Remote daemon shut down; proceeding with flushing remote transports.
16/04/26 16:58:46 INFO SparkContext: Successfully stopped SparkContext
16/04/26 16:58:46 INFO ShutdownHookManager: Shutdown hook called
16/04/26 16:58:46 INFO ShutdownHookManager: Deleting directory /srv/spark/tmp/spark-2bf57fa2-a2d5-4f8a-980c-994e56b61c44
16/04/26 16:58:46 DEBUG Client: stopping client from cache: org.apache.hadoop.ipc.Client#3fb9a67f
16/04/26 16:58:46 DEBUG Client: removing client from cache: org.apache.hadoop.ipc.Client#3fb9a67f
16/04/26 16:58:46 DEBUG Client: stopping actual client because no more references remain: org.apache.hadoop.ipc.Client#3fb9a67f
16/04/26 16:58:46 DEBUG Client: Stopping client
16/04/26 16:58:46 DEBUG Client: IPC Client (2107841088) connection to mcava-master/10.128.0.5:54310 from baiticpruebas2: closed
16/04/26 16:58:46 DEBUG Client: IPC Client (2107841088) connection to mcava-master/10.128.0.5:54310 from baiticpruebas2: stopped, remaining connections 0
16/04/26 16:58:46 INFO RemoteActorRefProvider$RemotingTerminator: Remoting shut down.
i make this simple code:
/ String pathDatosTratados="hdfs://mcava-master:54310/srv/hadoop/data/spark/DatosApp/medidasSensorTratadas.txt";
String jarPath ="hdfs://mcava-master:54310/srv/hadoop/data/spark/original-LecturaHDFSsaveInCassandra-1.0-SNAPSHOT.jar";
String jar="hdfs://mcava-master:54310/srv/hadoop/data/spark/spark-cassandra-connector-assembly-1.6.0-M1-4-g6f01cfe.jar";
String jar2="hdfs://mcava-master:54310/srv/hadoop/data/spark/spark-cassandra-connector-java-assembly-1.6.0-M1-4-g6f01cfe.jar";
String[] jars= new String[3];
jars[0]=jarPath;
jars[2]=jar;
jars[1]=jar2;
SparkConf conf=new SparkConf().setAppName("TratamientoCSV").setJars(jars);
conf.set("spark.cassandra.connection.host", "10.128.0.5");
conf.set("spark.kryoserializer.buffer.max","512");
conf.set("spark.kryoserializer.buffer","256");
// conf.setJars(jars);
JavaSparkContext sc= new JavaSparkContext(conf);
JavaRDD<String> input= sc.textFile(pathDatos);
i also put the path to cassandra drive in spark-default.conf
spark.driver.extraClassPath hdfs://mcava-master:54310/srv/hadoop/data/spark/spark-cassandra-connector-java-assembly-1.6.0-M1-4-g6f01cfe.jar
spark.executor.extraClassPath hdfs://mcava-master:54310/srv/hadoop/data/spark/spark-cassandra-connector-java-assembly-1.6.0-M1-4-g6f01cfe.jar
i also put the flag --jars to the path of driver but i have always the same error i do not understand why??
i work in google engine
Try to add package when you submit your app.
$SPARK_HOME/bin/spark-submit --packages datastax:spark-cassandra-connector:1.6.0-M2-s_2.11 ....
I add this argument to solve this problem: --packages datastax:spark-cassandra-connector:1.6.0-M2-s_2.10.
At least for 3.0+ spark cassandra connector, the official assembly jar works well for me. It has all the necessary dependencies.
i solve the problem... i maked a fat jar with all dependencies and it not necessary to indicate the references to the cassandra connector only the reference to the fat jar.
I used Spark in my Java programm, and had the same issue.
The problem was, because I didn`t include spark-cassandra-connector into my maven dependencies of my project.
<dependency>
<groupId>com.datastax.spark</groupId>
<artifactId>spark-cassandra-connector_2.11</artifactId>
<version>2.0.7</version> <!-- Check actual version in maven repo -->
</dependency>
After that I builld fat jar with all my dependencies - and it`s worked!
Maybe it will help someone