In going from GWT 1.7 to GWT 2.0.4, I am getting the following
exception:

dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
java.lang.reflect.InvocationTargetException
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
(ServerSerializationStreamWriter)
Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'java.util.ArrayList' was not included in the set of types which can
be serialized by this SerializationPolicy or its Class object could
not be loaded. For security purposes, this type will not be
serialized.: instance =
[com.etransxpress.portal.client.utilitymanager.etranslabelvalueb...@3fe42e0a, 
....

The class
'com.etransxpress.portal.client.utilitymanager.EtransLabelValueBean'
is defined as follows:

package com.etransxpress.portal.client.utilitymanager;

import com.google.gwt.user.client.rpc.IsSerializable;
@SuppressWarnings("unchecked")
public class EtransLabelValueBean implements IsSerializable
{
        private String label;
        private String value;

        public EtransLabelValueBean()
        {
        }

        public EtransLabelValueBean (String label, String value)
        {
                this.label = label;
                this.value = value;
        }

        public String getLabel() {
                return label;
        }

        public void setLabel(String label) {
                this.label = label;
        }

        public String getValue() {
                return value;
        }

        public void setObject(String value) {
                this.value = value;
        }
}

I am getting this exception where I am populating an ArrayList of
these objects defined in my program as follows:

        private static Collection<EtransLabelValueBean> countryList; (which
is an instance variable)

        //Before RPC call is made to server, the following is done:
        countryList = new ArrayList<EtransLabelValueBean>();
        //The server side is returning an ArrayList of this data

The application is deployed on a JBOSS 5.0.1 application server.

Do you have any ideas on how I can correct this problem.
Thank you very much.

Ken Wielechowski

-- 
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-tool...@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