google-code-export / gwt-test-utils

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

getting issues while executing test case for GWT #178

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have downloaded the GWT Test Sample Zip from the link 
http://code.google.com/p/gwt-test-utils/downloads/list and tried to run the 
test .
2.I am getting an error message :-

java.lang.UnsatisfiedLinkError: 
com.google.gwt.user.client.ui.PotentialElement.declareShim()V

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

Below is the stack trace :-
java.lang.UnsatisfiedLinkError: 
com.google.gwt.user.client.ui.PotentialElement.declareShim()V
    at com.google.gwt.user.client.ui.PotentialElement.declareShim(Native Method)
    at com.google.gwt.user.client.ui.PotentialElement.<clinit>(PotentialElement.java:43)
    at com.google.gwt.user.client.DOM.appendChild(DOM.java:70)
    at com.google.gwt.user.client.ui.DecoratorPanel.<init>(DecoratorPanel.java:168)
    at com.google.gwt.user.client.ui.DecoratedPopupPanel.<init>(DecoratedPopupPanel.java:130)
    at com.google.gwt.user.client.ui.DialogBox.<init>(DialogBox.java:250)
    at com.google.gwt.user.client.ui.DialogBox.<init>(DialogBox.java:234)
    at com.google.gwt.user.client.ui.DialogBox.<init>(DialogBox.java:210)
    at com.google.gwt.user.client.ui.DialogBox.<init>(DialogBox.java:198)
    at com.example.mywebapp.client.GwtTestSample.onModuleLoad(GwtTestSample.java:52)
    at com.example.mywebapp.client.GwtTestSamleTest.beforeGwtTestSample(GwtTestSamleTest.java:74)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at com.octo.gwt.test.internal.runner.AbstractGwtRunner.run(AbstractGwtRunner.java:40)
    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)

What version of the product are you using? On what operating system?

I am using GWT 2.5.1 on windows 2008 Server.
Please provide any additional information below.

I was wondering if i need to do any runtime byte modification to run it 
sucessfully . I have see that GWT 2.5.1 is not compatible with GWT Test Utils 
0.35 version.

Below are the jars in the classpath :-

    <classpathentry exported="true" kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
    <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry exported="true" kind="lib" path="war/WEB-INF/lib/junit-4.8.2.jar" sourcepath="D:/java/mvn/junit/junit/4.8.2/junit-4.8.2-sources.jar"/>
    <classpathentry kind="lib" path="C:/code/lib/gwt-test-utils-0.45/slf4j-api-1.7.5.jar"/>
    <classpathentry kind="lib" path="C:/Users/Administrator/Downloads/slf4j-1.7.5/slf4j-1.7.5/slf4j-nop-1.7.5.jar"/>
    <classpathentry kind="lib" path="war/WEB-INF/lib/gwt-test-utils-0.35.jar"/>
    <classpathentry kind="lib" path="war/WEB-INF/lib/gwt-dev-2.4.0.jar"/>
    <classpathentry kind="lib" path="war/WEB-INF/lib/gwt-servlet-2.4.0.jar"/>
    <classpathentry kind="lib" path="war/WEB-INF/lib/gwt-servlet.jar"/>
    <classpathentry kind="lib" path="war/WEB-INF/lib/slf4j-api-1.6.1.jar"/>
    <classpathentry kind="lib" path="C:/code/lib/gwt-test-utils-0.45/javassist.jar"/>

Please let me know the fix of this issue. It is really critical or me to move 
ahead in my testing as it is falling in its first attempt.

With Regards,
Vinay

Original issue reported on code.google.com by krishnav...@googlemail.com on 25 Dec 2013 at 4:48