Thanks!  I guess I missed that line earlier in the tutorial.

On Wed, Jun 3, 2009 at 2:08 PM, Isaac Truett <itru...@gmail.com> wrote:

>
> Your StockPrice doesn't have a no-arg constructor.
>
>
> On Wed, Jun 3, 2009 at 1:27 PM, james.o...@gmail.com
> <james.o...@gmail.com> wrote:
> >
> > I'm going through the StockWatcher tutorial and I get to the RPC part
> > (http://code.google.com/webtoolkit/tutorials/1.6/RPC.html).
> >
> > At the first test point I get this error message as expected ...
> >
> >  [ERROR] Type 'com.google.gwt.sample.stockwatcher.client.StockPrice'
> > was not serializable
> >  and has no concrete serializable subtypes
> >
> > However, after putting in the code to "fix" it ... I still get the
> > same error.  What am I missing?
> >
> > Here is my StockPrice class ...
> >
> > package com.google.gwt.sample.stockwatcher.client;
> >
> > import java.io.Serializable;
> >
> > public class StockPrice implements Serializable {
> >        private String symbol;
> >        private double price;
> >        private double change;
> >
> >        public StockPrice(String symbol, double price, double change) {
> >                this.symbol = symbol;
> >                this.price = price;
> >                this.change = change;
> >        }
> >
> >        public String getSymbol() { return this.symbol; }
> >        public double getPrice() { return this.price; }
> >        public double getChange() { return this.change; }
> >
> >        public double getChangePercent() {
> >                return 100.0 * this.change / this.price;
> >        }
> >
> >        public void setSymbol(String symbol) { this.symbol = symbol; }
> >        public void setPrice(double price) { this.price = price; }
> >        public void setChange(double change) { this.change = change; }
> > }
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to