Posts Tagged 'Trouble Shooting'

Some common errors when developing GWT apps

1. Use GWT.create(MyServiceAsync.class) instead of GWT.create(MyService.class)

For example:

import com.google.gwt.core.client.GWT;

public class ServiceFactory {

	private static MyServiceAsync myService = null;

	public static SecurityServiceAsync getMyService() {
		if (myService == null)
			myService = GWT.create(MyServiceAsync.class);

		return myService;
	}

}

You will get the following exception when invoking the MyService

 

Deferred binding result type ‘com.mycompany.myapp.client.MyService’ should not be abstract

Uncaught exception escaped

java.lang.RuntimeException: Deferred binding failed for 'com.mycompany.myapp.client.MyServiceAsync' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
    at com.google.gwt.core.client.GWT.create(GWT.java:98)
    at com.mycompany.myapp.client.ServiceFactory.getMyService

 

2. CSS files are not found after deploying on appspot.com

On appspot.com, filename is case-sensitive. But in Windows, filename is case-insensitive.

21 February 2010 at 19:41 - Comments