google-code-export / gwt-test-utils

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

java.lang.UnsatisfiedLinkError: com.google.gwt.json.client.JSONObject #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
import org.moxieapps.gwt.highcharts.client.Chart;
import org.moxieapps.gwt.highcharts.client.Series;

public class SingleTopicTimelineViewTest extends GwtTest
{
    @Override
    public String getModuleName ()
    {
        return "com.mytest.gwt.AppMain";
    }
    @Test
    public void test ()
    {
        Chart chart = new Chart().setType(Series.Type.SPLINE);
        assertNotNull(chart);
    }
}

What is the expected output? What do you see instead?
The test running successfully. What I get is as below:
java.lang.UnsatisfiedLinkError: 
com.google.gwt.json.client.JSONObject.get0(Ljava/lang/String;)Lcom/google/gwt/js
on/client/JSONValue;
    at com.google.gwt.json.client.JSONObject.get0(Native Method)
    at com.google.gwt.json.client.JSONObject.get(JSONObject.java:90)
    at org.moxieapps.gwt.highcharts.client.Configurable.setOption(Configurable.java:110)
    at org.moxieapps.gwt.highcharts.client.Configurable.setOption(Configurable.java:79)
    at org.moxieapps.gwt.highcharts.client.BaseChart.setOption(BaseChart.java:1118)
    at org.moxieapps.gwt.highcharts.client.BaseChart.setType(BaseChart.java:960)
    at com.accelovation.marketscout.gwt.client.mvp.widget.view.SingleTopicTimelineViewTest.test(SingleTopicTimelineViewTest.java:43)
    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: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.InvokeMethod.evaluate(InvokeMethod.java:20)
    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.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    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 use gwt-test-utils-0.33.zip, GWT 2.3, ext-gwt 2.2.4 and highchart on Win7 
64bits system.

Please provide any additional information below.

Original issue reported on code.google.com by HongDian...@gmail.com on 23 Sep 2011 at 2:24

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 24 Sep 2011 at 11:24

GoogleCodeExporter commented 9 years ago
Hi, 
I want to use gwt-test-util in our project. It seems that the gwt-test-util 
framework could be our golden way through the painfully path of gwt testing. 
But in our first test case I have got the same issue like above. 

java.lang.UnsatisfiedLinkError: 
com.google.gwt.json.client.JSONObject.get0(Ljava/lang/String;)Lcom/google/gwt/js
on/client/JSONValue;
    at com.google.gwt.json.client.JSONObject.get0(Native Method)

This issue is a showstopper for us. Is there a workaround e.g. a custom patcher 
option? Or, can you estimate when you can fix this issue.

Original comment by manuel.i...@plentymarkets.com on 7 Oct 2011 at 3:17

GoogleCodeExporter commented 9 years ago
Hi, 

I'm so sorry I didn't answered you earlier. I'm currently working on GWT JSON 
features so every JSONObject method would work fine. I forgot to update the 
issues status. It should be ready this weekend ;-)

But I want to warn you the (nice) HighCharts/GWT wrapper API you're using deals 
with some JSNI (to call HighChart JavaScript API) which will have to be patched 
to, and I didn't planed to do it right now.. So you probably would have to 
provides some custom patchers to.

Original comment by gael.laz...@gmail.com on 7 Oct 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Is this a server-side code? I have had issues using JSONValue and its 
child-classes on the server side.

Original comment by p.s.bhow...@gmail.com on 11 Oct 2011 at 6:08

GoogleCodeExporter commented 9 years ago
No this is a problem with client side code : JSONObject JSNI methods are not 
patched in gwt-test-utils for the moment.. I'm still working on that ;-)

Original comment by gael.laz...@gmail.com on 11 Oct 2011 at 8:59

GoogleCodeExporter commented 9 years ago
I finally manage to provide support for GWT JSON API in gwt-test-utils :)

I have just deployed new 0.35-SNAPSHOT, 0.33.1-SNAPSHOT, 0.28.8-SNAPSHOT, 
0.25.5-SNAPSHOT and 0.22.5-SNAPSHOT. Could anyone give it a try to validate the 
feature is working with complex, real life JSON and give me some feedback ?

Original comment by gael.laz...@gmail.com on 13 Nov 2011 at 7:06

GoogleCodeExporter commented 9 years ago
I could test if it's fixed. But the current version is released at Sept. 18, 
where could I download the new version 0.34 SNAPSHOT? 

Original comment by HongDian...@gmail.com on 28 Nov 2011 at 6:45

GoogleCodeExporter commented 9 years ago
The lastest 0.35-SNAPSHOT could be manually downloaded here (if you're not 
using maven) : 
http://forge.octo.com/nexus/content/repositories/snapshots/com/octo/gwt/test/gwt
-test-utils/

Original comment by gael.laz...@gmail.com on 28 Nov 2011 at 9:44