google-code-export / gwt-test-utils

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

GwtTestPatchException: Error while defining com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer from modified bytecode #174

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I Use gwt 2.5.1 (user / dev / servlet) in my project
2. I Use gwt test utils 0.44
3. I launch the folowing test gxt 3.0.0
4. I run this test "BadTest" in attached file 

5 : With : "BusinessContextViewImpl" in attached file

What is the expected output? What do you see instead?
I get the error : 

com.googlecode.gwt.test.exceptions.GwtTestPatchException: Error while defining 
com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer from 
modified bytecode
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:200)
    at javassist.Loader.loadClass(Loader.java:312)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.cacf.one.client.desktopapp.BadTest.setUp(BadTest.java:25)
    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 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.RunBefores.evaluate(RunBefores.java:27)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    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.junit.GwtBlockJUnit4ClassRunner.run(GwtBlockJUnit4ClassRunner.java:27)
    at com.googlecode.gwt.test.internal.junit.AbstractGwtRunner.run(AbstractGwtRunner.java:47)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    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: com.googlecode.gwt.test.exceptions.GwtTestPatchException: Error 
while defining 
com.sencha.gxt.widget.core.client.container.InsertResizeContainer from modified 
bytecode
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:200)
    at javassist.Loader.loadClass(Loader.java:312)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:196)
    ... 31 more
Caused by: com.googlecode.gwt.test.exceptions.GwtTestPatchException: Error 
while defining com.sencha.gxt.widget.core.client.container.ResizeContainer from 
modified bytecode
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:200)
    at javassist.Loader.loadClass(Loader.java:312)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:196)
    ... 38 more
Caused by: com.googlecode.gwt.test.exceptions.GwtTestPatchException: Error 
while defining com.sencha.gxt.widget.core.client.container.Container from 
modified bytecode
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:200)
    at javassist.Loader.loadClass(Loader.java:312)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:196)
    ... 45 more
Caused by: java.lang.NullPointerException
    at com.googlecode.gwt.test.internal.rewrite.OverlayTypesRewriter$MyInstanceMethodOracle.findOriginalDeclaringClass(OverlayTypesRewriter.java:111)
    at com.googlecode.gwt.test.internal.rewrite.RewriteRefsToJsoClasses$MyMethodAdapter.visitMethodInsn(RewriteRefsToJsoClasses.java:78)
    at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:1371)
    at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
    at com.googlecode.gwt.test.internal.rewrite.OverlayTypesRewriter.rewrite(OverlayTypesRewriter.java:578)
    at com.googlecode.gwt.test.internal.GwtClassLoader$GwtClassLoaderWithRewriter.findClassBytes(GwtClassLoader.java:100)
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:180)
    at javassist.Loader.loadClass(Loader.java:312)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
    at com.googlecode.gwt.test.internal.GwtClassLoader.findClass(GwtClassLoader.java:196)
    ... 52 more

Please provide any additional information below:

This test run perfectly with gwt 2.4.0 and gwt-test-utils 0.42

Please Help me !!!!!

Original issue reported on code.google.com by tih...@gmail.com on 8 Aug 2013 at 1:26

Attachments:

GoogleCodeExporter commented 9 years ago
something is wrong in the issue : 
replace
3. I launch the folowing test gxt 3.0.0
by 
3. I use gxt 3.0.0 in my project

Original comment by tih...@gmail.com on 8 Aug 2013 at 1:30