Hi,

   Also I have written a JUnit test which attempts to tell you things
like this;

http://cvs.adligo.org/viewvc/i_util_tests/src/org/adligo/i/util/IsGwtRpcSerializable.java?view=markup

Cheers,
Scott

On Jun 7, 1:05 pm, raj <[email protected]> wrote:
> Oops - my oversight - will give that a whirl, fingers crossed. Thanks
> for the pointer.
>
> On Jun 7, 3:53 pm, kozura <[email protected]> wrote:
>
> > Most normal classes are serializable.  Do you have a 0-arg
> > constructor?  Here are the requirements on serializable classes:
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat...
>
> > On Jun 7, 6:35 am, raj <[email protected]> wrote:
>
> > > I had a trawl through the forum and haven't found a solution to this
> > > yet (so not sure if its a bug that has recurred or something I am
> > > doing wrong).
>
> > > My service class is as follows:
>
> > > public interface ImpliedVolatilityCalcService extends RemoteService {
> > >         //      public List<BSPriceDTO> calculate(VolCalcParams data);
> > >                 public String calculate(VolCalcParams data);
>
> > > }
>
> > > The AsyncCallback now looks like
> > >                                 ivCalcService.calculate(vcParam,
> > >                                                 new
> > > AsyncCallback<String>() {
> > >                                                         public void
> > > onFailure(Throwable caught) {
>
> > > whereas it used to be
> > >                                 ivCalcService.calculate(vcParam,
> > >                                                 new
> > > AsyncCallback<List<BSPriceDTO>>() {
> > >                                                         public void
> > > onFailure(Throwable caught) {
>
> > > BSPriceDTO  is a Serializable class of mine
>
> > >         import java.io.Serializable;
>
> > >         @SuppressWarnings("serial")
> > >         public class BSPriceDTO implements Serializable {
> > >                 private double volatility = 0.0;
> > >                 private double optionExpiry = 0.0;
> > >                 private double error = 0.0;
>
> > > With the original List<BSPriceDTO>, the callback failed (with no
> > > meaningful errors on the server side to really tell me why).
>
> > > When I replaced List<BSPriceDTO> with a custom delimited string from
> > > which I create the list back on the client, it works fine.
>
> > > Does AsyncCallback not support anything other than String as a
> > > Serializable object?
>
> > > Thanks in anticipation to a problem that has be stumped at the moment.
>
> > > -raj

-- 
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