Hi Guys,
I have a problem with the SerializationPolicy. I have a rather simple
BaseModel with a String and a Long attribute which causes me a lot of
pain. The thing is, I like to have the object in a library and not in
the shared folder of the project itself. So I created another library-
gwt-projekt, put the object in the shared folder and imported it in my
other projects. This worked well, when ich implemented the
BeanModelTag but it doesn't work if I extended BaseModel.

Has anybody an idea how to fix this?

The error is:
Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'com.werum.wsv.smv.toolsystem.module.presentation.shared.BrowserIdVO'
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 =
BrowserIdVO [getId()=AD13CCCEEE762810ABD8DDEF9DAD400B1291971009833,
getLoginTime()=1291971016207]

And the BrowserIdVO-Class looks like that.

public class BrowserIdVO extends BaseModel implements Serializable

{
   /**
    *
    */
   private static final long serialVersionUID = 4639762009039203914L;

   private static final String BROWSERIDVO_ID = "Id";
   private static final String BROWSERIDVO_LOGINTIME = "LoginTime";

   public BrowserIdVO( )
   {
      // TODO Auto-generated constructor stub
   }

   public BrowserIdVO( String browserId )
   {
      setId( browserId );
      setLoginTime( System.currentTimeMillis() );
   }

   public BrowserIdVO( String browserId, Long loginTime )
   {
      setId( browserId );
      setLoginTime( loginTime );
   }

   public String getId( )
   {
      return get( BROWSERIDVO_ID );
   }

   public void setId( String browserId )
   {
      set( BROWSERIDVO_ID, browserId );
   }

   public Long getLoginTime( )
   {
      return get( BROWSERIDVO_LOGINTIME );
   }

   public void setLoginTime( Long loginTime )
   {
      set( BROWSERIDVO_LOGINTIME, loginTime );
   }

   @Override
   public String toString( )
   {
      return "BrowserIdVO [getId()=" + getId() + ", getLoginTime()=" +
getLoginTime() + "]";
   }

}

Greetings Ole

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to