Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to deal with java.lang.UnsatisfiedLinkError, please help me ?

tony lu
1 decade ago Sep 18, 2011 10:54am

Dear Folks,
I try to issue a request to a servlet in the same domain by using com.google.gwt.http.client.RequestBuilder in the liferay.
However, I got a java.lang.UnsatisfiedLinkError, I do not know how to fix it (I google a lot but I can find anything useful to fix it)
Any hint I will very appreciate.
Thanks for you help.
Tony

Here is the code:
JSONObject input = new JSONObject();
input.put("action", "listAllActiveBabies");
String url = "";
try{
url = URLDecoder.decode("/delegate/library?type=json", "UTF-8");
System.out.println("url="+url);
}
catch(Exception e)
{

}
RequestBuilder rb = null;

rb = new RequestBuilder(RequestBuilder.POST,url);
rb.setTimeoutMillis(5000);
rb.setRequestData(input.toString());
try {
rb.sendRequest(input.toString(),new RequestCallback() {

public void onResponseReceived(Request request,
Response response) {

liferayIPC.sendEvent("sayHi", response.getText());

}

public void onError(Request request,
Throwable exception) {
// TODO Auto-generated method stub

}
});
} catch (RequestException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

tony lu
1 decade ago Sep 18, 2011 1:53pm
Henri Sara
1 decade ago Sep 21, 2011 9:13am