-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate persistence in spring webflow
PostPosted: Fri Mar 28, 2008 5:15 pm 
Newbie

Joined: Fri Feb 08, 2008 2:41 pm
Posts: 18
Hi,

I am having a problem with persisting an entity within a persistence context in Spring Webflow.
I get the following error:

org.springframework.webflow.execution.repository.c ontinuation.ContinuationCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable; nested exception is java.io.NotSerializableException: org.hibernate.util.MarkerObject

java.io.NotSerializableException: org.hibernate.util.MarkerObject

Why is it trying to serialize a org.hibernate.util.MarkerObject object?
I want to point out that all my objects implement Serializable.

I have already post this on the SWF forum and have been told to try the Hibernate Forums.
See http://forum.springframework.org/showth ... post171964 for details.
Could anyone please help me out?

My model looks something like this:
Code:
/**
* @hibernate.joined-subclass table="echtgenoot"
* @hibernate.joined-subclass-key column="person_id"
*/
public class Echtgenoot extends Person {

    private boolean zelfinkomen;
    private String beroep;
    private boolean vermLB;

    // Other booleans
    // Getters and setters
}
/**
* @hibernate.class table="person"
*/
public class Person extends Base {

    private String id;
    private String name;
    private String lastname;
    private String address;
    private String phone;
    private String workphone;
    private char gender = 'M';
    private String endDate;
    private String beginDate;
    private Set<Authority> privileges;

    // Getters and setters

}

public class Base implements Serializable {
   
    @Override
    public boolean equals(Object o) {
        return EqualsBuilder.reflectionEquals(this, o);
    }
    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }
}
/**
* @hibernate.class table="authority"
*/
public class Authority extends Base {

    private Long id;
    private String name;
    // Getters and setters
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.