google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

gwt-test-utils 0.39 fails on GWT 2.5RC #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Attempting to run a test with dependency GWT 2.5RC fails with a 
NoClassDefFoundError for com.google.gwt.core.client.GWTBridge (it seems that 
this class has been moved to com.google.gwt.core.shared.GWTBridge in 2.5).

Stacktrace is as follows:

java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
    at com.google.gwt.user.client.Window.<clinit>(Window.java:509)
    at com.google.gwt.user.client.Timer.hookWindowClosing(Timer.java:74)
    at com.google.gwt.user.client.Timer.<clinit>(Timer.java:49)
    at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
    at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140)
    at java.lang.reflect.Field.acquireFieldAccessor(Field.java:949)
    at java.lang.reflect.Field.getFieldAccessor(Field.java:930)
    at java.lang.reflect.Field.get(Field.java:372)
    at com.googlecode.gwt.test.utils.GwtReflectionUtils.getStaticFieldValue(GwtReflectionUtils.java:443)
    at com.googlecode.gwt.test.GwtReset.getStaticAndCallClear(GwtReset.java:30)
    at com.googlecode.gwt.test.GwtReset.reset(GwtReset.java:38)
    at com.googlecode.gwt.test.GwtTest.tearDownGwtTest(GwtTest.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:36)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at com.googlecode.gwt.test.internal.runner.AbstractGwtRunner.run(AbstractGwtRunner.java:40)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
    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:120)
Caused by: java.lang.ClassNotFoundException: caught an exception while 
obtaining a class file for com.google.gwt.core.client.GWTBridge
    at javassist.Loader.findClass(Loader.java:360)
    at javassist.Loader.loadClass(Loader.java:312)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 42 more
Caused by: javassist.NotFoundException: com.google.gwt.core.client.GWTBridge
    at javassist.ClassPool.get(ClassPool.java:440)
    at com.googlecode.gwt.test.internal.GwtTranslator.onLoad(GwtTranslator.java:35)
    at javassist.Loader.findClass(Loader.java:341)
    ... 44 more

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
gwt-test-utils 0.39, GWT 2.5RC1  

Original issue reported on code.google.com by louis.em...@gmail.com on 28 Jun 2012 at 12:00

GoogleCodeExporter commented 9 years ago
gwt-test-utils is yet not expected to work with GWT 2.5 RC, but I will start 
implementing its support since it has been released yesterday.

The first compatible release of gwt-test-utils will follow GWT 2.5 release, so 
stay tuned

Original comment by gael.laz...@gmail.com on 28 Jun 2012 at 12:46

GoogleCodeExporter commented 9 years ago
ok no problems.

just for information on my test case:
checkMask(fr.grouperatp.ratp.applications.ads.client.base.ui.HourBoxTest): 
(class: com/google/gwt/core/client/GWT, method: setBridge signature: 
(Lcom/google/gwt/core/client/GWTBridge;)V) Incompatible argument to function

Original comment by philippe...@gmail.com on 3 Jul 2012 at 9:24

GoogleCodeExporter commented 9 years ago
May I know approximately when will release the GWT 2.5rc1 compatible 
gwt-test-utils.

Original comment by pmru...@gmail.com on 30 Aug 2012 at 6:51

GoogleCodeExporter commented 9 years ago
You should considere joining the gwt-test-utils-users googlegroups ;) 
https://groups.google.com/forum/?fromgroups=#!topic/gwt-test-utils-users/ZgDr0vD
6-7E

Original comment by gael.laz...@gmail.com on 31 Aug 2012 at 6:43

GoogleCodeExporter commented 9 years ago
support for GWT 2.5 is now provided starting 0.43 version : 
https://github.com/gwt-test-utils/gwt-test-utils/downloads ;-)

Original comment by gael.laz...@gmail.com on 25 Nov 2012 at 7:02