I am getting the following exception:

EVERE: [1240903589531000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'org.datanucleus.store.appengine.query.StreamingQueryResult' 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.
        at
com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
(StandardSerializationPolicy.java:83)

The object which i have is very simple and look like following:

------------
package com.x2iqResearch.Monitoring.client.model;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;



@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class LogRecord implements IsSerializable {
        @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long ID;

        @Persistent
    private String level;

        @Persistent
    private Long sequenceNumber;

    @Persistent
    private String sourceClassName;

    @Persistent
    private String sourceMethodName;

    @Persistent
    private String message;

    @Persistent
    private Integer threadID;

    @Persistent
    private Date timeReceived;

        @Persistent
    private String exception;

    @Persistent
    private String loggerName;

        @Persistent
    private String threadName;

    @Persistent
    private String serverName;

    @Persistent
    private Long millis;

    @Persistent
    private Long transferID;

    @Persistent
    private String resourceBundleName;

        public LogRecord(String level, String message){
        this.level = level;
        this.message = message;
    }

        public LogRecord(){}//otherwise we get "was not serializable and has
no concrete serializable subtypes"

        public LogRecord(Long id, String level, Long sequenceNumber, String
sourceClassName, String sourceMethodName, String message, Integer
threadID, Date timeReceived, String exception, String loggerName,
String threadName, String serverName, Long millis, Long transferID,
String resourceBundleName) {
                this.ID = id;
                this.level = level;
                this.sequenceNumber = sequenceNumber;
                this.sourceClassName = sourceClassName;
                this.sourceMethodName = sourceMethodName;
                this.message = message;
                this.threadID = threadID;
                this.timeReceived = timeReceived;
                this.exception = exception;
                this.loggerName = loggerName;
                this.threadName = threadName;
                this.serverName = serverName;
                this.millis = millis;
                this.transferID = transferID;
                this.resourceBundleName = resourceBundleName;
        }

/*      public LogRecord(ExtendedLogRecord record){
        this.level  = record.getLevel().getName();
        this.loggerName = record.getLoggerName();
        this.message = record.getMessage();
        this.millis = record.getMillis();
        this.sequenceNumber = record.getSequenceNumber();
        this.sourceClassName = record.getSourceClassName();
        this.sourceMethodName = record.getSourceMethodName();
        this.threadID = record.getThreadID();
        this.exception = record.getException();
        this.threadName = record.getThreadName();
        this.serverName = record.getServerName();
        this.transferID = record.getTransferID();
        this.timeReceived = new Date();
    }
*/

    public Long getID() {
                return ID;
        }

        public void setID(Long id) {
                ID = id;
        }

        public String getLevel() {
                return level;
        }

        public void setLevel(String level) {
                this.level = level;
        }

        public Long getSequenceNumber() {
                return sequenceNumber;
        }

        public void setSequenceNumber(Long sequenceNumber) {
                this.sequenceNumber = sequenceNumber;
        }

        public String getSourceClassName() {
                return sourceClassName;
        }

        public void setSourceClassName(String sourceClassName) {
                this.sourceClassName = sourceClassName;
        }

        public String getSourceMethodName() {
                return sourceMethodName;
        }

        public void setSourceMethodName(String sourceMethodName) {
                this.sourceMethodName = sourceMethodName;
        }

        public String getMessage() {
                return message;
        }

        public void setMessage(String message) {
                this.message = message;
        }

        public Integer getThreadID() {
                return threadID;
        }

        public void setThreadID(Integer threadID) {
                this.threadID = threadID;
        }

        public String getException() {
                return exception;
        }

        public void setException(String exception) {
                this.exception = exception;
        }

        public String getLoggerName() {
                return loggerName;
        }

        public void setLoggerName(String loggerName) {
                this.loggerName = loggerName;
        }

    public String getThreadName() {
                return threadName;
        }

        public void setThreadName(String threadName) {
                this.threadName = threadName;
        }

        public String getServerName() {
                return serverName;
        }

        public void setServerName(String serverName) {
                this.serverName = serverName;
        }

        public Date getTimeReceived() {
                return timeReceived;
        }

        public void setTimeReceived(Date timeReceived) {
                this.timeReceived = timeReceived;
        }

        public Long getTransferID() {
                return transferID;
        }

        public void setTransferID(Long transferID) {
                this.transferID = transferID;
        }

    public Long getMillis() {
                return millis;
        }

        public void setMillis(Long millis) {
                this.millis = millis;
        }

    public String getResourceBundleName() {
                return resourceBundleName;
        }

        public void setResourceBundleName(String resourceBundleName) {
                this.resourceBundleName = resourceBundleName;
        }
}
------------
Any hint/help would be quite helpfull

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