Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340511 - Unable to run RWT JUnit tests
Summary: Unable to run RWT JUnit tests
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P1 normal (vote)
Target Milestone: 1.4 M7   Edit
Assignee: Frank Appel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 11:21 EDT by Ivan Furnadjiev CLA
Modified: 2011-03-26 03:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Furnadjiev CLA 2011-03-20 11:21:58 EDT
Running the RWT tests suite failed in almost all tests with ClassInstantiationException:
org.eclipse.rwt.internal.util.ClassInstantiationException: Failed to create instance of type: org.eclipse.rwt.service.ServiceHandler_Test$CustomHandler
	at org.eclipse.rwt.internal.util.ClassUtil.newInstance(ClassUtil.java:40)
	at org.eclipse.rwt.internal.util.ClassUtil.newInstance(ClassUtil.java:31)
	at org.eclipse.rwt.internal.util.ClassUtil.newInstance(ClassUtil.java:27)
	at org.eclipse.rwt.internal.service.ServiceHandlerRegistry.registerHandlerInstance(ServiceHandlerRegistry.java:150)
	at org.eclipse.rwt.internal.service.ServiceHandlerRegistry.registerHandlerInstances(ServiceHandlerRegistry.java:145)
	at org.eclipse.rwt.internal.service.ServiceHandlerRegistry.registerHandlerInstances(ServiceHandlerRegistry.java:98)
	at org.eclipse.rwt.internal.service.ServiceHandlerRegistry.registerHandlerInstances(ServiceHandlerRegistry.java:82)
	at org.eclipse.rwt.internal.service.ServiceHandlerRegistry.ensureInitialization(ServiceHandlerRegistry.java:72)
	at org.eclipse.rwt.internal.service.ServiceHandlerRegistry.put(ServiceHandlerRegistry.java:46)
	at org.eclipse.rwt.internal.service.ServiceManagerInstance.registerServiceHandler(ServiceManagerInstance.java:47)
	at org.eclipse.rwt.internal.service.ServiceManager.registerServiceHandler(ServiceManager.java:25)
	at org.eclipse.rwt.internal.engine.RWTServletContextListener.registerUICallBackServiceHandler(RWTServletContextListener.java:409)
	at org.eclipse.rwt.internal.engine.RWTServletContextListener$ContextInitializer.run(RWTServletContextListener.java:108)
	at org.eclipse.rwt.internal.engine.RWTContextUtil.runWithInstance(RWTContextUtil.java:117)
	at org.eclipse.rwt.Fixture.createRWTContext(Fixture.java:119)
	at org.eclipse.rwt.Fixture.createRWTContext(Fixture.java:111)
	at org.eclipse.rwt.Fixture.setUp(Fixture.java:210)
	at org.eclipse.swt.internal.widgets.tablekit.TableLCA_Test.setUp(TableLCA_Test.java:974)
	at junit.framework.TestCase.runBare(TestCase.java:128)
	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 junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedConstructorAccessor68.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.eclipse.rwt.internal.util.ClassUtil.createInstance(ClassUtil.java:51)
	at org.eclipse.rwt.internal.util.ClassUtil.newInstance(ClassUtil.java:37)
	... 34 more
Caused by: java.lang.IllegalStateException
	at org.eclipse.rwt.service.ServiceHandler_Test$CustomHandler.<init>(ServiceHandler_Test.java:42)
	... 39 more
Comment 1 Ivan Furnadjiev CLA 2011-03-26 03:15:35 EDT
Marked as fixed.