Skip to content

Commit

Permalink
Update PersistenceContextsImpl.java
Browse files Browse the repository at this point in the history
I´m facing some problems using seam persistence(3.0.0.Final) in clustered tomcat6.
When using session replication throught DeltaManager, the following exception occurs:

org.apache.catalina.ha.session.DeltaManager requestCompleted
SEVERE: Unable to serialize delta request for sessionid [4F3785FD97924B5DD4D948B562F057E2.node2]
java.io.NotSerializableException: org.jboss.seam.persistence.PersistenceContextsImpl$PersistenceContextDefintition
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

		
		
I´ve modified the inner class PersistenceContextDefintition removing static and implementing Serializable to solve my problem.
  • Loading branch information
hernandazevedo committed Aug 30, 2013
1 parent 144ea39 commit ccf73ee
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -132,7 +132,9 @@ public void afterRender() {
restoreFlushMode();
}

public static class PersistenceContextDefintition {
public class PersistenceContextDefintition implements Serializable {

private static final long serialVersionUID = 1L;
private final Set<Annotation> qualifiers;
private final Class<?> type;

Expand Down

0 comments on commit ccf73ee

Please sign in to comment.