I followed this tutorial step by step:
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/tutorial/RPC.html

However, I keep getting this error:

23:48:51.203 [ERROR] [stockwatcher]    subtype
com.google.gwt.sample.stockwatcher.client.StockPrice is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
com.google.gwt.sample.stockwatcher.client.StockPrice[])

Here's my StockPrice.java:

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 symbol;
        }
        public void setSymbol(String symbol) {
                this.symbol = symbol;
        }
        public double getPrice() {
                return price;
        }
        public void setPrice(double price) {
                this.price = price;
        }
        public double getChange() {
                return change;
        }
        public void setChange(double change) {
                this.change = change;
        }

        public double getChangePercent() {
                return 100.0 * this.change / this.price;
        }
}

Please help me!

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