You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2014/05/16 13:23:55 UTC
[jira] [Commented] (SLING-3564) it tests in
tooling/ide/eclipse-test fail on MacOS X with SWTException: Invalid thread
access
[ https://issues.apache.org/jira/browse/SLING-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13998637#comment-13998637 ]
Stefan Egli commented on SLING-3564:
------------------------------------
That patch helped - the SWTException is gone.
Unfortunately, now there's an actual test failure:
{code}
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.503 sec <<< FAILURE!
deployBundleOnServer(org.apache.sling.ide.test.impl.BundleDeploymentTest) Time elapsed: 11.27 sec <<< FAILURE!
java.lang.AssertionError: Unexpected status call for http://localhost:49227/simple-servlet
Expected: <200>
but: was <404>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.apache.sling.ide.test.impl.helpers.RepositoryAccessor.assertGetIsSuccessful(RepositoryAccessor.java:66)
at org.apache.sling.ide.test.impl.BundleDeploymentTest$1.call(BundleDeploymentTest.java:129)
at org.apache.sling.ide.test.impl.BundleDeploymentTest$1.call(BundleDeploymentTest.java:1)
at org.apache.sling.ide.test.impl.helpers.Poller$1.run(Poller.java:79)
at org.apache.sling.ide.test.impl.helpers.Poller.pollUntilSuccessful(Poller.java:41)
at org.apache.sling.ide.test.impl.helpers.Poller.pollUntil(Poller.java:74)
at org.apache.sling.ide.test.impl.BundleDeploymentTest.deployBundleOnServer(BundleDeploymentTest.java:126)
{code}
> it tests in tooling/ide/eclipse-test fail on MacOS X with SWTException: Invalid thread access
> ---------------------------------------------------------------------------------------------
>
> Key: SLING-3564
> URL: https://issues.apache.org/jira/browse/SLING-3564
> Project: Sling
> Issue Type: Bug
> Components: IDE
> Environment: mac os x, 10.7.5, java version "1.6.0_65"
> Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
> Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
> Reporter: Stefan Egli
> Assignee: Robert Munteanu
> Priority: Critical
> Fix For: Sling Eclipse IDE 1.0.0
>
> Attachments: SLING-3564-1.diff
>
>
> When I run 'mvn clean install' in tooling/ide I get a failure in tooling/ide/eclipse-test (same thing happens with just 'mvn clean verify' in eclipse-test):
> {code}
> ***WARNING: Display must be created on main thread due to Cocoa restrictions.
> {code}
> and the corresponding tooling/ide/eclipse-test/target/work/data/.metadata/.log says:
> {code}
> org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:4397)
> at org.eclipse.swt.SWT.error(SWT.java:4312)
> at org.eclipse.swt.SWT.error(SWT.java:4283)
> at org.eclipse.swt.widgets.Display.error(Display.java:1076)
> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:833)
> at org.eclipse.swt.widgets.Display.create(Display.java:816)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:707)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:698)
> at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
> at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
> at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
> at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
> 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:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)