com.google.gwt.user.client.rpc.InvocationException

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

com.google.gwt.user.client.rpc.InvocationException

Postby alex.d » Tue Jul 08, 2008 11:26 pm

Hi folks,

i'm having some troubles with my code. I assume it's not a Designer issue, but may be someone already dealt with it before. It's actually pretty simple: while loading, application requests some data from the server and shows it. Here is a basic example that demonstrates the problem:

Basic class:
Code: Select all
package com.mycompany.project.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;

public class ImageViewer implements EntryPoint {
   private HTML html;
   public void onModuleLoad()
   {
      RootPanel rootPanel = RootPanel.get();

      html = new HTML("");
      rootPanel.add(html, 0, 0);
      
      getData();
   }
   public void getData()
   {
         ImageViewerService.Util.getInstance().getData(new AsyncCallback() {
           public void onFailure(Throwable caught) {
             Window.alert(caught.toString());
           }

           public void onSuccess(Object result) {
              html.setHTML((String) result);
           }
         
      });
   }
}


The servlet is just returning a string
Code: Select all
return new String("just a simple test string");


Now it's actually working in both: hosted and web-mode, IE and FF3, BUT: try do load this in FF3 and hit refresh a few times. If you are making it slow - you will see the test string. Do it fast and you will get an alert with:

com.google.gwt.user.client.rpc.InvocationException

I'm using GWT 1.4. Any ideas what to do besides implementing sleep() before getData() ?
alex.d
 
Posts: 35
Joined: Mon Jun 02, 2008 4:46 am

Re: com.google.gwt.user.client.rpc.InvocationException

Postby Eric Clayberg » Thu Jul 10, 2008 5:29 pm

alex.d wrote:I'm using GWT 1.4. Any ideas what to do besides implementing sleep() before getData() ?

Not really. Unfortunately, that kind of question is outside the scope of this forum.

The Google GWT forum would probably be a much better place for a question like this.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: com.google.gwt.user.client.rpc.InvocationException

Postby alex.d » Thu Jul 10, 2008 10:38 pm

Yeh.. i've asked there too, but it seems to be a no-problem for the most developers :( So i thought i try my luck here. Sorry for off-topic.

By the way. "A couple of days" are over - any chance we will see new designer soon? :roll:
alex.d
 
Posts: 35
Joined: Mon Jun 02, 2008 4:46 am

Re: com.google.gwt.user.client.rpc.InvocationException

Postby Eric Clayberg » Fri Jul 11, 2008 5:01 am

alex.d wrote:Yeh.. i've asked there too, but it seems to be a no-problem for the most developers :( So i thought i try my luck here. Sorry for off-topic.
By the way. "A couple of days" are over - any chance we will see new designer soon? :roll:

Yes. Hopefullly later today. It is being tested now.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: com.google.gwt.user.client.rpc.InvocationException

Postby alex.d » Fri Jul 11, 2008 6:37 am

Eric Clayberg wrote:Yes. Hopefullly later today. It is being tested now.

:!: :!: :!: :!: :!: :!: :!: :!: :!: :!: :!: :!:
Perfect guys!
alex.d
 
Posts: 35
Joined: Mon Jun 02, 2008 4:46 am

Re: com.google.gwt.user.client.rpc.InvocationException

Postby Eric Clayberg » Sun Jul 13, 2008 6:44 am

Testing took a bit longer than expected.

A new GWT Designer v5.1.0 Beta (Windows only initially) is available that supports both GWT 1.4.62 and GWT 1.5RC1.

See the forum announcement for details.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests