Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] local hudson failure in org.eclipse.cdt.debug.application.tests

Usually, this means you are trying to run SWT without a graphical environment. You need a display to run those tests (DISPLAY env variable set). I you are running on a headless machine, you could try to run it with Xvnc or Xvfb. As a reference, on Hudson we run with Xvnc and the metacity window manager.

Marc-Andre


From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] on behalf of Tim Orling [ticotimo@xxxxxxxxx]
Sent: Thursday, June 02 2016 7:58 PM
To: CDT General developers list.
Subject: [cdt-dev] local hudson failure in org.eclipse.cdt.debug.application.tests

I have a local instance of Hudson (v3.3.3, Fedora-23, x86_64) building cdt_9_0 branch

Can anybody give me a hint as to why it fails building org.eclipse.cdt.debug.application.tests? I assume it is a configuration problem with either the job or the host:

[INFO] ------------------------------------------------------------------------
[INFO] Building org.eclipse.cdt.debug.application.tests 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Deleting /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target
[INFO] 
[INFO] --- tycho-packaging-plugin:0.25.0:build-qualifier (default-build-qualifier) @ org.eclipse.cdt.debug.application.tests ---
[INFO] The project's OSGi version is 1.0.0.201606022330
[INFO] 
[INFO] --- tycho-packaging-plugin:0.25.0:validate-id (default-validate-id) @ org.eclipse.cdt.debug.application.tests ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.25.0:validate-version (default-validate-version) @ org.eclipse.cdt.debug.application.tests ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:prepare-agent (pre-test) @ org.eclipse.cdt.debug.application.tests ---
[INFO] tycho.testArgLine set to -javaagent:/var/lib/hudson/.m2/repository/org/jacoco/org.jacoco.agent/0.7.6.201602180812/org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=/var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/../../target/jacoco.exec,append=true,includes=org.eclipse.cdt.*
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/src/main/resources
[INFO] 
[INFO] --- tycho-compiler-plugin:0.25.0:compile (default-compile) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Compiling 4 source files to /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/src/test/resources
[INFO] 
[INFO] --- tycho-source-plugin:0.25.0:plugin-source (plugin-source) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Building jar: /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/org.eclipse.cdt.debug.application.tests-1.0.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- tycho-source-plugin:0.25.0:plugin-source (attach-source) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Building jar: /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/org.eclipse.cdt.debug.application.tests-1.0.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- target-platform-configuration:0.25.0:target-platform (default-target-platform) @ org.eclipse.cdt.debug.application.tests ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.25.0:package-plugin (default-package-plugin) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Building jar: /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/org.eclipse.cdt.debug.application.tests-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.25.0:p2-metadata-default (default-p2-metadata-default) @ org.eclipse.cdt.debug.application.tests ---
[INFO] 
[INFO] --- tycho-surefire-plugin:0.25.0:test (default-test) @ org.eclipse.cdt.debug.application.tests ---
[INFO] Expected eclipse log file: /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/work/data/.metadata/.log
[INFO] Command line:
	[/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-6.b14.fc23.x86_64/jre/bin/java, -Dosgi.noShutdown=false, -Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64, -javaagent:/var/lib/hudson/.m2/repository/org/jacoco/org.jacoco.agent/0.7.6.201602180812/org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=/var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/../../target/jacoco.exec,append=true,includes=org.eclipse.cdt.*, -Xms256m, -Xmx512m, -ea, -Dosgi.clean=true, -jar, /var/lib/hudson/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.3.200.v20160318-1642/org.eclipse.equinox.launcher-1.3.200.v20160318-1642.jar, -data, /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/work/data, -install, /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/work, -configuration, /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/work/configuration, -application, org.eclipse.tycho.surefire.osgibooter.uitest, -testproperties, /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/surefire.properties, -testApplication, org.eclipse.cdt.debug.application.app, -product, org.eclipse.cdt.debug.application.product, -nouithread]
Launching application org.eclipse.cdt.debug.application.app...
Unable to init server: Could not connect: Connection refused
An error has occurred. See the log file
/var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/work/data/.metadata/.log.

!SESSION 2016-06-02 16:31:39.033 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/surefire.properties -testApplication org.eclipse.cdt.debug.application.app -product org.eclipse.cdt.debug.application.product -nouithread
Command-line arguments:  -data /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/work/data -application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties /var/lib/hudson/jobs/cdt_9_0/workspace/debug/org.eclipse.cdt.debug.application.tests/target/surefire.properties -testApplication org.eclipse.cdt.debug.application.app -product org.eclipse.cdt.debug.application.product -nouithread

!ENTRY org.eclipse.compare.win32 4 0 2016-06-02 16:31:41.371
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.compare.win32 [226]
  Unresolved requirement: Require-Capability: eclipse.platform; filter:="(osgi.os=win32)"

    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.osgi 4 0 2016-06-02 16:31:43.795
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
    at org.eclipse.swt.SWT.error(SWT.java:4559)
    at org.eclipse.swt.widgets.Display.createDisplay(Display.java:958)
    at org.eclipse.swt.widgets.Display.create(Display.java:942)
    at org.eclipse.swt.graphics.Device.<init>(Device.java:174)
    at org.eclipse.swt.widgets.Display.<init>(Display.java:562)
    at org.eclipse.swt.widgets.Display.<init>(Display.java:553)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:789)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:160)
    at org.eclipse.cdt.debug.application.Application.start(Application.java:42)
    at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
    at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:120)
    at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

Back to the top