Hi Everyone,
I have an issue which I am unable to solve. I am getting
ClassCastException when I include GWT.create(UserService.class); in by
view. It worked fine but then it suddenly stopped.
UserServiceAsync.java:
public interface UserServiceAsync {
void signIn(String email, String password, AsyncCallback<String>
callback);
}
Loginview.Java
public class LoginView extends Composite {
private UserService userRpcService =
GWT.create(UserService.class); // this throws following exception
21:03:42.923 [ERROR] [myproject] Unable to load module entry point
class com.myproject.gwt.myproject.ProjectOne (see associated exception
for details)
java.lang.ClassCastException:
com.myproject.gwt.client.services.UserService_Proxy cannot be cast to
com.myproject.gwt.client.services.UserService
at com.myproject.gwt.client.viewes.LoginView.<init>(LoginView.java:
28)
at
com.myproject.gwt.client.ProjectOne.onModuleLoad(ProjectOne.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
525)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Unknown Source)
GWT 2.4.0 - Eclipse
Can you please point me to a solution?
Vlad
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.