I'm trying to use GWT to create a simple app that can talk to a app-
engine server through RPC.

I've set up the app to talk back and forth with the server, but I have
trouble when I introduce my own serializable class on the client
side.  I seem to have followed all the rules, and the class appears in
my serializable whitelist, but when I try to instantiate it on the
server, I get a ClassNotLoaded exception.

my class is as simple as:

package com.*******.jimmytestapp.client;

import java.io.Serializable;

public class GameResult implements Serializable{

        private int Wins;
        private int Losses;
        private int Draws;

        public void ResetAll() {Wins = 0;  Losses = 0; Draws = 0; }
        public int IncrementWin() {Wins++; return Wins;}
        public int IncrementLoss() {Losses++;  return Losses;}
        public int IncrementDraw() {Draws++; return Draws;}

}

And on the server side, when I call this code

                playerResult = new GameResult[2];

I get the following exception

org.eclipse.debug.core.DebugException:
com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred
while retrieving component type of array.

What am I doing wrong?

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