1 Reply Latest reply on Jun 5, 2009 10:07 PM by Francisco Jose Peredo Noguez

    Error persisting a seam component

    marcelo gar Newbie
      Hi everyone
      After no activity happens in my application, 8 minutes, an error happens:

      In my bean...

      @Stateful
      @Local(IUserAction.class)
      @Scope(ScopeType.SESSION)
      @Name("_user")
      public class UserAction extends BasicAction implements IUserAction {

      I have two methods recommends in several forums

              @PrePassivate
              public void prePassivate() {
                      System.out.println("begining prepassivate...");
                      this.user = null;
                      this.modalUser = null;
                      System.out.println("ending prepassivate...");
              }

              @PostActivate
              public void postActivate() {
                      System.out.println("begining postpassivate...");
                      this.user = (User) this.cleanObject(User.class);
                      this.modalUser = (User) this.cleanObject(User.class);
                      System.out.println("ending postpassivate...");
              }

      After a while, this exception is thrown

      12:01:39,430 INFO  [STDOUT] begining prepassivate...
      12:01:39,430 INFO  [STDOUT] ending prepassivate...
      12:01:39,775 FATAL [RegularObjectPersister] error
      java.lang.reflect.InvocationTargetException
              at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
              at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:772)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
              at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
              at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
              at org.jboss.serial.io.MarshalledObject.<init>(MarshalledObject.java:51)
              at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:857)
              at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
              at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:390)
              at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:301)
              at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:209)
      Caused by: java.lang.NoClassDefFoundError: org/jaxen/VariableContext
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
              at java.lang.Class.getDeclaredMethod(Class.java:1935)
              at org.jboss.serial.classmetamodel.ClassMetaData.lookupMethodOnHierarchy(ClassMetaData.java:102)
              at org.jboss.serial.classmetamodel.ClassMetaData.lookupInternalMethods(ClassMetaData.java:432)
              at org.jboss.serial.classmetamodel.ClassMetaData.<init>(ClassMetaData.java:122)
              at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:350)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:168)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
              at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
              at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
              at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
              at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
              at org.jboss.serial.persister.ObjectOutputStreamProxy.writeFields(ObjectOutputStreamProxy.java:79)
              at org.jboss.serial.persister.ObjectOutputStreamProxy.defaultWriteObject(ObjectOutputStreamProxy.java:68)
              at java.util.Vector.writeObject(Vector.java:1012)
              ... 86 more
      Caused by: java.lang.ClassNotFoundException: org.jaxen.VariableContext
              at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
              ... 103 more
      12:01:39,776 ERROR [STDERR] java.lang.reflect.InvocationTargetException
      12:01:39,776 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
      12:01:39,776 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:01:39,776 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
      12:01:39,776 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
      12:01:39,776 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
      12:01:39,777 ERROR [STDERR]     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
      12:01:39,777 ERROR [STDERR]     at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:772)
      12:01:39,777 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      12:01:39,777 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      12:01:39,777 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:01:39,777 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,777 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,778 ERROR [STDERR]     at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
      12:01:39,779 ERROR [STDERR]     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.io.MarshalledObject.<init>(MarshalledObject.java:51)
      12:01:39,779 ERROR [STDERR]     at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:857)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
      12:01:39,779 ERROR [STDERR]     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
      12:01:39,779 ERROR [STDERR]     at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:390)
      12:01:39,779 ERROR [STDERR]     at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:301)
      12:01:39,779 ERROR [STDERR]     at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:209)
      12:01:39,779 ERROR [STDERR] Caused by: java.lang.NoClassDefFoundError: org/jaxen/VariableContext
      12:01:39,779 ERROR [STDERR]     at java.lang.Class.getDeclaredMethods0(Native Method)
      12:01:39,779 ERROR [STDERR]     at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      12:01:39,779 ERROR [STDERR]     at java.lang.Class.getDeclaredMethod(Class.java:1935)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.classmetamodel.ClassMetaData.lookupMethodOnHierarchy(ClassMetaData.java:102)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.classmetamodel.ClassMetaData.lookupInternalMethods(ClassMetaData.java:432)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.classmetamodel.ClassMetaData.<init>(ClassMetaData.java:122)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:350)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:168)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.persister.ObjectOutputStreamProxy.writeFields(ObjectOutputStreamProxy.java:79)
      12:01:39,779 ERROR [STDERR]     at org.jboss.serial.persister.ObjectOutputStreamProxy.defaultWriteObject(ObjectOutputStreamProxy.java:68)
      12:01:39,779 ERROR [STDERR]     at java.util.Vector.writeObject(Vector.java:1012)
      12:01:39,779 ERROR [STDERR]     ... 86 more
      12:01:39,779 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: org.jaxen.VariableContext
      12:01:39,779 ERROR [STDERR]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      12:01:39,780 ERROR [STDERR]     at java.security.AccessController.doPrivileged(Native Method)
      12:01:39,780 ERROR [STDERR]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      12:01:39,780 ERROR [STDERR]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      12:01:39,780 ERROR [STDERR]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      12:01:39,780 ERROR [STDERR]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      12:01:39,780 ERROR [STDERR]     ... 103 more
      12:01:39,780 FATAL [RegularObjectPersister] error
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)

      Some ideas?||
        • 1. Re: Error persisting a seam component
          Francisco Jose Peredo Noguez Master

          I am not 100% sure, but in your stacktrace I see:


          Caused by: java.lang.ClassNotFoundException: org.jaxen.VariableContext
                  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
                  ... 103 more
          



          That looks like the class org.jaxen.VariableContext is missing. Are you sure that
          the .jar that contains it is being deployed in your WEB-INF\lib?