private final TagAndSearchServiceAsync dataService = GWT.create
(TagAndSearchService.class);Notice that the type on the left is the async interface and on the right is the service interface On 30 Oct 2009, at 02:00, edarroyo wrote: > > We are trying to use the synchronous interface of a service class. > We tried doing something along the lines of the asynchronous use: > > private final TagAndSearchService dataService = GWT.create > (TagAndSearchService.class); > > But for some reason we are getting a ClassCastException on that line: > > [ERROR] Failed to create an instance of > 'com.marstoearth.client.MarsToEarth' via deferred binding > java.lang.ClassCastException: > com.marstoearth.client.TagAndSearchService_Proxy > > Any help would be appreciated. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
