Tuesday, January 8, 2013

opera deserialization problem

Hi,

I've got an interesting problem I can reproduce only in opera browser (12.12). Chrome, Firefox, IE looks ok.
On rpc call (pretty much any RPC call with custom classes or collections) I see the following exception on client side:

I'm running gwt 2.5 and smartgwt 3.1 (don't think smartgwt is anyhow involved though). Behaviour was exactly the same on gwt 2.4.


Simplified class looks like this - sorry for bad formatting: 

public class UserSessionInfo implements IsSerializable {

    private String userName;

    private PlannerRole role = PlannerRole.ADMINISTRATOR;

    public PlannerRole getRole() {

        return role;

    }

    public void setRole(PlannerRole role) {

        this.role = role;

    }

    public String getUserName() {

        return userName;

    }

   public void setUserName(String userName) {

        this.userName = userName;

    }

    public boolean hasAdminRole(){

        return false;

    }

Where PlannerRole is enum:

public enum PlannerRole implements IsSerializable {

    ADMINISTRATOR,

    OPERATOR,

    USER;

}


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

No comments:

Post a Comment