denizstij
unread,Jul 12, 2008, 2:08:59 PM7/12/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi,
I am getting following exception when i run two simple gwt-junit test
cases such as
public void testSimple() {
assertTrue(true);
}
public void testSimple2() {
assertTrue(true);
}
i got following error on CruiseControl (CC):
[ERROR] Invalid thread access
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Display.error(Display.java:1065)
at org.eclipse.swt.widgets.Display.checkDevice(Display.java:660)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
2836)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
580)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:147)
at
com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:219)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:
132)
at junitx.util.AbstractSuiteBuilder
$LazyLoadingTestFromClass.basicRun(AbstractSuiteBuilder.java:225)
at junit.extensions.TestDecorator.run(TestDecorator.java:30)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:
24)
at junit.extensions.TestDecorator.run(TestDecorator.java:30)
at com.clarkware.junitperf.TimedTest.access$001(TimedTest.java:
56)
at com.clarkware.junitperf.TimedTest$1.run(TimedTest.java:179)
at java.lang.Thread.run(Thread.java:595)
If i run these tests under eclipse on windows and linux they pass
without any problem. But it fails on CC (which sits on a 64 linux
machine) when i use two or more test cases in same file. However if i
use only one test case on CC, for example only "testSimple", then this
test cases passes too.
Briefly, on cruisecontrol when i tests two or more test cases in a
file, i get above exception.
We are using gwt 1.5 RC1, java 1.5, Junit 4, and cruisecontrol 2.6.2
on a 64 bit linux machine.
Any idea what it would be the problem? Thanks in advance...
Deniz