Hi Vijay,

The reason why you're getting this error message in hosted mode is
because there is an exception bubbling up from your
CalendarService.getData() call that cannot be serialized across GWT
RPC. What you'll want to do is either catch the exception at the
service level in a custom defined exception that can be serialized on
the client-side through GWT RPC, or catch the exception and take some
corrective action (such as passing a sentinel String or int value back
up to the client to indicate a system failure). Even better, you might
want to dig into the reason why the CalendarService.getData() call is
throwing an exception in the first place, but in any case you must
catch this exception so that it doesn't bubble up to the client, where
it can't be serialized.

You can check out more specifics about the constraints on Serializable
types in GWT RPC at the link below:

http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.RemoteProcedureCalls.html#SerializableTypes

If you need to further troubleshoot the problem of getting exception
and other object types to the client-side across GWT RPC, you're more
likely to get answers on the Google Web Toolkit forums (linked below).
If you want to further look into the reason why your
Calendar.getData() call is throwing an exception, I suggest you post
up more information for follow up here.

Google Web Toolkit forum:

http://groups.google.com/group/Google-Web-Toolkit

Hope that helps,
-Sumit Chandel

On Nov 21, 4:33 am, Vijay <[EMAIL PROTECTED]> wrote:
> HI
>
> I have added GData jar files and mail.jar, activation.jar in the
> library, but still I am getting error message as below noClassDefFound
> while using gdata, like googleservice.
>
> Please tell me what to do.
>
> [WARN] StandardContext[]Exception while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract boolean
> com.calender.client.CalenderService.getData()' threw an unexpected
> exception: java.lang.NoClassDefFoundError: com/google/gdata/client/
> calendar/CalendarService
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to