On Thursday, October 6, 2011 1:32:03 PM UTC+2, coffeMan wrote:
>
> Can anyone tell me what the error might be coming from? I cannot get 
> passed this, Thanks! 
>
>  [WARN] Exception while dispatching incoming RPC call 
> com.google.gwt.user.server.rpc.UnexpectedException: Service method 
> 'public abstract java.lang.String 
> com.mymaps.client.dataService.getData(java.lang.String)' threw an 
> unexpected exception: java.lang.UnsatisfiedLinkError: 
> com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/ 
> lang/String; 
>
[...]

> Caused by: java.lang.UnsatisfiedLinkError: 
> com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/ 
> lang/String; 
> at com.google.gwt.http.client.URL.encodeImpl(Native Method) 
> at com.google.gwt.http.client.URL.encode(URL.java:155) 
>


You're calling com.google.gwt.http.client.URL.encode() on the server.

The exact cause of the error is that URL.encodeImpl is a JSNI method, and 
JSNI is kind of a "hack" in that it uses the syntax for native methods 
(methods provided at runtime by native libraries –DLLs or equivalent–) 
followed by a Java comment with a specific "syntax". Java, on the server 
side, just sees a native method, so it tries to resolve it from a native 
library, and it fails to find the "link" to that library (hence 
UnsatifiedLinkError).

You should use java.net.URLEncoder or, e.g., URIUtils from Apache 
HttpClient.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kggr-zPFZN0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to