Hey,
I stumbled upon a problem when trying to use CouchDB with GWT (the
JCouchDB framework has unserializable fields in the lists they return,
that are not really relevant in GWT clientside). So I created a simple
test case (maven project) that tries to emulate the non-serializable
class using <super-source> in gwt module. Everything compiles without
warnings, but I am getting an error when returning the emulated class
from the server side ('This application is out of date, please click
the refresh button on your browser.'). The classes in question are:
[code]
package dao;
public class EntityWithObjectReference {
public Object objReference;
private String text;
public EntityWithObjectReference() {
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
[/code]
emulated class is defined as follows:
[code]
package dao;
import java.io.Serializable;
public class EntityWithObjectReference implements Serializable {
private String text;
public EntityWithObjectReference() {}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
[/code]
note the lack of Object reference. The module descriptor I use is:
[code]
<!DOCTYPE module SYSTEM
"http://google-web-toolkit.googlecode.com/svn/releases/1.7/
distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.google.gwt.core.Core"/>
<source path="dao">
</source>
<super-source path="substituted"/>
</module>
[/code]
I have a crawling suspicion, the server tries to serialize the
original class, and the client gets additional object reference int
the stream, that it doesn't know how to handle. What is the correct
way to solve this problem, apart from rewriting the library in
question to get rid of object references?
thanks in advance,
Andrius
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---