1 2 3 4 Previous Next 47 Replies Latest reply on Feb 10, 2011 7:32 AM by Nicklas Karlsson

    CNFE: org.apache.AnnotationProcessor from BaseClassLoader

    Juergen Zimmermann Master

      After some time (probabely a timeout) in my web app I get the following stacktrace. I tried JBossAS 6.0.0.Final and also the latest successful Hudson build #2296. Any hint is appreciated.

       

      09:26:11,305 FATAL [org.jboss.serial.persister.RegularObjectPersister] error:

      java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeMethodAccessorImpl.invoke0(

      Native Method) [:1.6.0_23]

      at sun.reflect.NativeMethodAccessorImpl.invoke(

      NativeMethodAccessorImpl.java:39) [:1.6.0_23]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(

      DelegatingMethodAccessorImpl.java:25) [:1.6.0_23]

      at java.lang.reflect.Method.invoke(

      Method.java:597) [:1.6.0_23]

      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.ObjectOutputStreamProxy.writeObjectOverride(

      ObjectOutputStreamProxy.java:60) [:]

      at java.io.ObjectOutputStream.writeObject(

      ObjectOutputStream.java:326) [:1.6.0_23]

      at java.util.HashMap.writeObject(

      HashMap.java:1001) [:1.6.0_23]

      at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source) [:1.6.0_23]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(

      DelegatingMethodAccessorImpl.java:25) [:1.6.0_23]

      at java.lang.reflect.Method.invoke(

      Method.java:597) [:1.6.0_23]

      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.ObjectOutputStreamProxy.writeObjectOverride(

      ObjectOutputStreamProxy.java:60) [:]

      at java.io.ObjectOutputStream.writeObject(

      ObjectOutputStream.java:326) [:1.6.0_23]

      at java.util.concurrent.ConcurrentHashMap.writeObject(

      ConcurrentHashMap.java:1247) [:1.6.0_23]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(

      Native Method) [:1.6.0_23]

      at sun.reflect.NativeMethodAccessorImpl.invoke(

      NativeMethodAccessorImpl.java:39) [:1.6.0_23]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(

      DelegatingMethodAccessorImpl.java:25) [:1.6.0_23]

      at java.lang.reflect.Method.invoke(

      Method.java:597) [:1.6.0_23]

      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.ObjectOutputStreamProxy.writeObjectOverride(

      ObjectOutputStreamProxy.java:60) [:]

      at java.io.ObjectOutputStream.writeObject(

      ObjectOutputStream.java:326) [:1.6.0_23]

      at java.util.concurrent.ConcurrentHashMap.writeObject(

      ConcurrentHashMap.java:1247) [:1.6.0_23]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(

      Native Method) [:1.6.0_23]

      at sun.reflect.NativeMethodAccessorImpl.invoke(

      NativeMethodAccessorImpl.java:39) [:1.6.0_23]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(

      DelegatingMethodAccessorImpl.java:25) [:1.6.0_23]

      at java.lang.reflect.Method.invoke(

      Method.java:597) [:1.6.0_23]

      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.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.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.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.ObjectDescriptorFactory.describeObject(

      ObjectDescriptorFactory.java:188) [:]

      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:326) [:1.6.0_23]

      at org.jboss.serial.io.MarshalledObject.<init>(

      MarshalledObject.java:51) [:]

      at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(

      StatefulBeanContext.java:1048) [:1.7.20]

      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:326) [:1.6.0_23]

      at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(

      StatefulSessionFilePersistenceManager.java:393) [:1.7.20]

      at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(

      SimpleStatefulCache.java:397) [:1.7.20]

      at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(

      SimpleStatefulCache.java:301) [:1.7.20]

      Caused by: java.lang.NoClassDefFoundError: org/apache/AnnotationProcessor

      at java.lang.Class.getDeclaredMethods0(

      Native Method) [:1.6.0_23]

      at java.lang.Class.privateGetDeclaredMethods(

      Class.java:2427) [:1.6.0_23]

      at java.lang.Class.getDeclaredMethod(

      Class.java:1935) [:1.6.0_23]

      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.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:326) [:1.6.0_23]

      at java.util.concurrent.ConcurrentHashMap.writeObject(

      ConcurrentHashMap.java:1247) [:1.6.0_23]

      ... 205 more

      Caused by:

      java.lang.ClassNotFoundException: org.apache.AnnotationProcessor from BaseClassLoader@1d0740e{vfs:///C:/Software/jboss-6.0.1-SNAPSHOT/server/default/deploy/swe2.ear}

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(

      BaseClassLoader.java:480) [jboss-classloader.jar:2.2.0.GA]

      at java.lang.ClassLoader.loadClass(

      ClassLoader.java:248) [:1.6.0_23]

      ... 222 more

        • 1. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
          Nicklas Karlsson Master

          My guess is that you have a stateful EJB that goes into passivation and doesn't find a dependecy...

          • 2. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
            Nicklas Karlsson Master

            and regarding fixing the problem I don't think there are any other alternatives than a) provide the class or b) disable stateful EJB passivation

            • 3. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
              Juergen Zimmermann Master

              I have several SFSBs. I guess the problem is related to the following fragment where I was expecting that the objects at (a) and (b) would be the same, i.e. the one that is named "auth". Any hint is appreciated.

               

              @Named("auth")
              @SessionScoped
              @Stateful
              @TransactionAttribute(SUPPORTS)
              public class AuthController implements Serializable {...}

               

              @Named("kv")
              @SessionScoped
              @Stateful
              public class KundenverwaltungController implements Serializable {
              @EJB
              private AuthController auth; // (a) should the one named "auth", see above
              ...
              }

               

              @Named("wk")
              @SessionScoped
              @Stateful
              @TransactionAttribute(SUPPORTS)
              public class Warenkorb implements Serializable {
              @EJB
              private AuthController auth; // (b) should be the one named "auth", see above
              ...
              }

              • 4. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                Nicklas Karlsson Master

                They're not?

                 

                (I don't see how this could be related to the CNFE in passivation/serialization)

                • 5. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                  Juergen Zimmermann Master

                  I added an attribute "private Date date = new Date();" to the (referenced) class AuthController. In each 3 classes I added a method with @PostConstruct:

                   

                  Class AuthController:

                  @PostConstruct

                  private void postConstruct() {

                    LOGGER.info("!!! AuthController: " + date.getTime());

                  }

                   

                  Class Warenkorb:

                  @PostConstruct

                  private void postConstruct() {

                    LOGGER.info("!!! Warenkorb: " + auth.getDate().getTime());

                  }

                   

                  Class KundenverwaltungController:

                  @PostConstruct

                  private void postConstruct() {

                    LOGGER.info("!!! KundenverwaltungController: " + auth.getDate().getTime());

                  }

                   

                  Extract from the log file:

                   

                  INFO [de.swe2.admin.ui.AuthController] !!! AuthController: 1296049072430

                  INFO [de.swe2.admin.ui.AuthController] !!! AuthController: 1296049072446

                  INFO [de.swe2.bestellverwaltung.ui.Warenkorb] !!! Warenkorb: 1296049072446

                  INFO [de.swe2.admin.ui.AuthController] !!! AuthController: 1296049072564

                  INFO [de.swe2.admin.ui.AuthController] !!! AuthController: 1296049072580

                  INFO [de.swe2.kundenverwaltung.ui.KundenverwaltungController] !!! KundenverwaltungController: 1296049072580

                  INFO [de.swe2.admin.ui.AuthController] !!! AuthController: 1296049072322

                  • 6. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                    Nicklas Karlsson Master

                    @Injecting the AuthController gives the same date?

                    • 7. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                      Juergen Zimmermann Master

                      OK, @Inject (instead of @EJB) works as expected.

                       

                      However, the passivation issue remains. Since there are several classes in the ui layer I'll try to reduce them and reproduce the problem.

                      • 8. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                        Nicklas Karlsson Master

                        Yes, the @SessionScoped feature is only available if @Inject is used, otherwise you're back at plain old EJB lifecycles.

                         

                        You should be able to use Tattletale to hunt down the dependency. It should stem from some session scoped EJB.

                        • 9. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                          jaikiran pai Master

                          As Nicklas says, using http://www.jboss.org/tattletale on your project jars should help you narrow down the org.apache.AnnotationProcessor usage. I am not sure why any EJB would end up referencing a class like that one, so it would be interesting to see where it comes from.

                          • 10. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                            Juergen Zimmermann Master

                            OK, I'll try Tattletale.

                             

                            Meanwhile I added @Cache("NoPassivationCache") to the SFSBs (see also https://issues.jboss.org/browse/WELD-80), and the passivation issue seems to be gone. However, when the session timeout is reached I'll get a strange IllegalStateException https://issues.jboss.org/browse/EJBTHREE-2235

                            • 11. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                              Juergen Zimmermann Master

                              First of all: with the help of Tattletale I found out that the 2 Mojarra (in deployers\jsf.deployer) JARs are the problem.

                               

                              1) I tried Tattletale, but got no hint related to org.apache.AnnotationProcessor

                               

                              2) I ran Tattletale, but added the 2 Mojarra JARs to my WEB-INF/lib: org.apache.AnnotationProcessor is required by com.sun.faces.vendor.Tomcat6InjectionProvider. I picked up Tomcat 6, took catalina.jar, stripped everything besides the Java interface org.apache.AnnotationProcessor, and added the reduced catalina.jar to WEB-INF/lib. When running the EAR (removed the 2 Mojarra JARs) I got another CNFE related to groovy.lang.GroovyClassLoader.

                               

                              3) Tattletale indicated that groovy.lang.GroovyClassLoader is required by com.sun.faces.scripting.groovy.GroovyHelperImpl. Therefore, I picked up groovy-all.jar and put it into WEB-INF/lib. When running the EAR (removed the 2 Mojarra JARs) I got another CNFE related to com.sun.enterprise.InjectionException.

                               

                              4) Tattletale indicated that com.sun.enterprise.InjectionException is required by com.sun.faces.vendor.GlassFishInjectionProvider. Hmm, on Mondays I'll download Glassfish to pick up the JAR containing com.sun.enterprise.InjectionException...

                               

                              What does it mean for EJB 3.1 and Weld? Is it impossible to use passivating Stateful SessionBeans? I'm definitely using only the JSF classes FacesContext, ExternalContext, FacesMessage, and ValueChangeEvent inside the methods, but not as types for Java fields.

                              • 12. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                                Nicklas Karlsson Master

                                You should avoid having JSF jars in your lib. I haven't used Tattletale that much but I suspect it might also pick up stuff that's not actively used in your application (Tomcat/Glassfish stuff). What are the types of fields you have in your session bean?

                                • 13. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                                  Nicklas Karlsson Master

                                  Start with something like

                                   

                                  @Stateful

                                  @SessionScoped

                                  @Named

                                  @CacheConfig(idleTimeoutSeconds = 1)

                                  public class Mybean

                                  {

                                     @PostConstruct

                                     public void init()

                                     {

                                        System.out.println("postconstruct");

                                     }

                                   

                                   

                                     @PrePassivate

                                     public void passivate()

                                     {

                                        System.out.println("passivate");

                                     }

                                   

                                   

                                     public void ping()

                                     {

                                     }

                                   

                                   

                                  }

                                   

                                  and start filling fields and stuff until it breaks. Calling the ping method from EL should result in init and immediate passivation. For pom deps you could have something like

                                   

                                  <dependency>

                                                                <groupId>org.jboss.spec</groupId>

                                                                <artifactId>jboss-javaee-6.0</artifactId>

                                                                <version>1.0.0.Final</version>

                                                                <type>pom</type>

                                                                <scope>provided</scope>

                                                      </dependency>

                                                      <dependency>

                                                                <groupId>org.jboss.ejb3</groupId>

                                                                <artifactId>jboss-ejb3-ext-api</artifactId>

                                                                <version>1.1.1</version>

                                                                <scope>provided</scope>

                                                      </dependency>

                                  • 14. CNFE: org.apache.AnnotationProcessor from BaseClassLoader
                                    Juergen Zimmermann Master

                                    I found the main reason in my code:

                                     

                                    @Named("kv")

                                    @SessionScoped

                                    @Stateful

                                    public class MyController implements Serializable {

                                    @EJB

                                    private MyLogicBean bean;   // Stateless SessionBean, not being serializable

                                    }

                                     

                                    I was assuming that these Stateless SessionBeans are'nt serialized during passivation, and would be reinstantiated when the referencing stateful SessionBean is being activated. When I add "transient" to the field declarations, then everything works fine.

                                     

                                    Thank you very much for your patience and helpful comments!

                                    1 2 3 4 Previous Next