GWT 2.0 and EclEmma code coverage

41 views
Skip to first unread message

CVdS

unread,
Jan 28, 2010, 3:09:25 AM1/28/10
to Google Web Toolkit
Hi All,

Did someone manage to correctly run EclEmma code coverage with GWT
2.0?

I tried it many times with Eclipse 3.5, with both EclEmma 1.3.2 and
1.4.3, both updated (with emma.jar published on the GWT site) and not,
the results are always the same:

The console says something like
[WARN]
com.crofthawk.mgmt.Management.JUnit:com.crofthawk.mgmt.gwt.GwtTestAdminsManagementViewImpl.testShowErrorMessage
is being retried, retry attempt = 1
...for every test and I have the following stack trace:

java.lang.RuntimeException: Remote test failed at 78.106.163.8 /
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/
2008070208 Firefox/3.0.1
at com.google.gwt.junit.JUnitShell.processTestResult(JUnitShell.java:
1083)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1203)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1198)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1198)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1104)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:523)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
406)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:282)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run
(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run
(JUnit4TestReference.java:46)
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.NullPointerException
at com.google.gwt.dev.shell.CompilingClassLoader
$MyInstanceMethodOracle.findOriginalDeclaringClass
(CompilingClassLoader.java:409)
at com.google.gwt.dev.shell.rewrite.RewriteRefsToJsoClasses
$MyMethodAdapter.visitMethodInsn(RewriteRefsToJsoClasses.java:83)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:1371)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
at com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite
(HostedModeClassRewriter.java:244)
at com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes
(CompilingClassLoader.java:1157)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:985)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:1011)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:1011)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:1011)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:1011)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:1011)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:1011)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at com.crofthawk.mgmt.gwt.GwtTestAdminsManagementViewImpl.gwtSetUp
(GwtTestAdminsManagementViewImpl.java:44)
at com.google.gwt.junit.client.GWTTestCase.setUp(GWTTestCase.java:
268)
at com.google.gwt.junit.client.GWTTestCase.runBare(GWTTestCase.java:
205)
at com.google.gwt.junit.client.GWTTestCase.__doRunTest
(GWTTestCase.java:137)
at com.google.gwt.junit.client.impl.GWTRunner.runTest(GWTRunner.java:
366)
at com.google.gwt.junit.client.impl.GWTRunner.doRunTest
(GWTRunner.java:295)
at com.google.gwt.junit.client.impl.GWTRunner.access$9(GWTRunner.java:
289)
at com.google.gwt.junit.client.impl.GWTRunner
$TestBlockListener.onSuccess(GWTRunner.java:105)
at com.google.gwt.junit.client.impl.GWTRunner
$TestBlockListener.onSuccess(GWTRunner.java:1)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:216)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
(RequestBuilder.java:396)
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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:195)
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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)

The most interesting is that the same tests are running fine as simple
JUnit (yes, of course, I put the right classpath in the config), and
EclEmma covers fine all the non-GWT tests on the same machine.

Any ideas?

Nir Feldman

unread,
Jan 30, 2010, 1:47:17 PM1/30/10
to Google Web Toolkit
I am facing the same issue exactly.
Reply all
Reply to author
Forward
0 new messages