Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializing Siena Models fails #21

Open
simplysoft opened this issue Jul 4, 2012 · 2 comments
Open

Serializing Siena Models fails #21

simplysoft opened this issue Jul 4, 2012 · 2 comments

Comments

@simplysoft
Copy link

Model$ProxyMany seems not to be serializable, thus serializing of a siena model fails

play.exceptions.CacheException: Cannot cache a non-serializable value of type <model>
[snip]
Caused by: java.io.NotSerializableException: siena.Model$ProxyMany
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
    at play.modules.gae.GAECache.wrap(GAECache.java:106)
@mandubian
Copy link
Owner

do you use Many in GAE?

Pascal

On Wed, Jul 4, 2012 at 2:30 PM, simplysoft <
[email protected]

wrote:

Model$ProxyMany seems not to be serializable, thus serializing of a siena
model fails

play.exceptions.CacheException: Cannot cache a non-serializable value of
type <model>
[snip]
Caused by: java.io.NotSerializableException: siena.Model$ProxyMany
        at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
        at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
        at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
        at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
        at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
        at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
        at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
        at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
        at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
        at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
        at play.modules.gae.GAECache.wrap(GAECache.java:106)

Reply to this email directly or view it on GitHub:
#21

@simplysoft
Copy link
Author

No, I use just the model entity type as the field type. An yes, its on GAE.
I do have a model Organization and then several several other models that have an organization field. Trying to serialize one such model results in the given error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants