Not able to run any GWTTestCase

172 views
Skip to first unread message

Julien Dramaix

unread,
Nov 14, 2014, 6:06:45 AM11/14/14
to google-web-tool...@googlegroups.com
I've updated my master branch (of the GWT-core project) the with the remote and now I'm not able to run any GWT test cases included in the project. I receive first this error:


java.lang.NoSuchFieldError: VOID
at com.google.gwt.dev.javac.JSORestrictionsChecker$JSORestrictionsVisitor.isGetter(JSORestrictionsChecker.java:294)
at com.google.gwt.dev.javac.JSORestrictionsChecker$JSORestrictionsVisitor.checkJsTypeMethodsForOverloads(JSORestrictionsChecker.java:341)
at com.google.gwt.dev.javac.JSORestrictionsChecker$JSORestrictionsVisitor.checkJsType(JSORestrictionsChecker.java:262)
at com.google.gwt.dev.javac.JSORestrictionsChecker$JSORestrictionsVisitor.checkType(JSORestrictionsChecker.java:368)
at com.google.gwt.dev.javac.JSORestrictionsChecker$JSORestrictionsVisitor.visit(JSORestrictionsChecker.java:239)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1286)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:712)
at com.google.gwt.dev.javac.JSORestrictionsChecker.check(JSORestrictionsChecker.java:601)
at com.google.gwt.dev.javac.JSORestrictionsChecker.check(JSORestrictionsChecker.java:524)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:99)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:985)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:339)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:580)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:499)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1312)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1277)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:671)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)


Then each test case fails with:
java.lang.NullPointerException
at com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:714)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1321)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1277)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:671)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)


I'm sure something is wrong locally but I don't see what. Any hint ?

Julien

Daniel Kurka

unread,
Nov 14, 2014, 7:05:33 AM11/14/14
to google-web-tool...@googlegroups.com
On the run rght now, but john merged a patch in that area yesterday, can you try reverting that one?
--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D66%3DKJkw6JW%3D4Lyk%2BPNkD6z_PMyqQp2zW%3D9ggVTjoVDrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Julien Dramaix

unread,
Nov 14, 2014, 7:10:43 AM11/14/14
to google-web-tool...@googlegroups.com
I have this problem for several days in fact. It's why I think the problem is on my side.

Daniel Kurka

unread,
Nov 14, 2014, 7:12:03 AM11/14/14
to google-web-tool...@googlegroups.com

Julien Dramaix

unread,
Nov 14, 2014, 7:30:41 AM11/14/14
to google-web-tool...@googlegroups.com
I've deleted the unit caches and have still the issue. But now that you are talking about unit cache I've seen this line in the log:
Could not find the GWT compiler jarfile. Serialization errors might occur when accessing the persistent unit cache.

But I've checked my classpath and the gwt jar files (user and dev) are there. Am I missing something for the tests ?

Roberto Lublinerman

unread,
Nov 14, 2014, 3:46:48 PM11/14/14
to google-web-tool...@googlegroups.com
This looks awfully a class path issue. Did you ant clean before building?


Julien

--

Manuel Carrasco Moñino

unread,
Nov 15, 2014, 4:13:35 AM11/15/14
to google-web-tool...@googlegroups.com
Julien could you explain how are you trying to run tests, I mean if you are using ant and what parameters you are using. I have just checked out master and run non gwt tests, and everything went ok:
$ ant clean buildonly; (cd user && ant test.nongwt)

Can you try the same? what ant and java versions are you using?



Julien Dramaix

unread,
Nov 15, 2014, 7:34:54 AM11/15/14
to google-web-tool...@googlegroups.com
I'm running the test via a Intellij config. The tests run fine with ant so it's really a problem of classpath. What is weird is that this is an old configuration and it worked fine before I synchronize my master branch one week ago.

Anyway I'll tweak a bit the classpath in order to fine what cause that bug.

Thanks for your help,

Julien

Reply all
Reply to author
Forward
0 new messages