Hi Brian, I think you want:

MyServiceAsync service = GWT.create(MyService.class);

On Aug 18, 3:00 pm, Adam Pratt <[email protected]> wrote:
> Hey All,
>
> I'm trying to get one very simple line of code to work:
>
> MyService service = GWT.create(MyService.class);
>
> I've been playing around with this a lot, and I'm noticing that this
> works fine within in the onModuleLoad() method, but anywhere else in
> my client code, I get the following error (when in hosted mode):
>
> java.lang.ClassCastException: [packagename].shared.MyService_Proxy
> cannot be cast to [packagename].aspect.shared.MyService
>
> Anyone know what might be causing this error?
>
> Thanks,
> Adam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to