Problem with making serializable Collections

0 views
Skip to first unread message

joe young

unread,
Jun 25, 2009, 4:16:30 PM6/25/09
to Google Web Toolkit
Hi all,

Having problem with Parsing HashMap from RPC, here is the error
message:
Analyzing 'com.sun.dmt.admin.client.login.LoginService' for
serializable types
Analyzing methods:
public abstract
com.sun.dmt.admin.client.domain.AdminPrivilege userIsValid
(java.util.HashMap<java.lang.String, java.lang.String> loginData)
throws com.sun.dmt.admin.client.exception.LdapException,
com.sun.dmt.admin.client.exception.LDAPValidationException,
com.sun.dmt.admin.client.exception.UserAuthorityException
Return type:
com.sun.dmt.admin.client.domain.AdminPrivilege

com.sun.dmt.admin.client.domain.AdminPrivilege
[ERROR] Type
'com.sun.dmt.admin.client.domain.AdminPrivilege' was not serializable
and has no concrete serializable subtypes

Having Problem with AdminPrivilege Object that contains a HashMap --
public class BaseDomain implements IsSerializable {

public BaseDomain() {
}
}
public class AdminPrivilege extends BaseDomain {
/*
* @gwt.typeArgs <java.lang.String,
com.client.domain.TabPrivilege>
*/
private HashMap<String,TabPrivilege> tabPrivileges;

public AdminPrivilege(ArrayList<HashMap> privilegeList) {
setTabPrivileges(new HashMap<String, Integer>());
}
}

I don't know why it doesn't work, can anyone help?? It is urgent!!

joe young

unread,
Jun 25, 2009, 4:35:27 PM6/25/09
to Google Web Toolkit
And TabPrivilege :
public class TabPrivilege implements IsSerializable {
/*
* @gwt.typeArgs <java.lang.String, java.lang.Integer>
*/
private HashMap<String, Integer> nodePrivilege;
public TabPrivilege() {

Paul Robinson

unread,
Jun 26, 2009, 3:41:25 AM6/26/09
to Google-We...@googlegroups.com
AdminPrivilege needs a no-arg constructor to be gwt serializable

> -~----------~----~----~----~------~----~------~--~---
>
>
>

Reply all
Reply to author
Forward
0 new messages