java.lang.ClassNotFoundException引起的钝化错误:org.jboss.wsf.spi.serviceref.ServiceRefMetaData

时间:2012-07-31 11:18:30

标签: java jboss

我们有一个完美的有状态会话bean。有状态会话bean具有以下注释:

@Stateful
@SerializedConcurrentAccess
@Scope(ScopeType.SESSION)
@Name("XXXSession")
@Interceptors(SeamInterceptor.class)

当超时超过(在ejb3-interceptors-aop.xml中定义)时,会话bean被钝化。但钝化过程失败,我们收到以下堆栈跟踪。 我想深入调试,但我不知道从哪里开始。我想我们看不到实际的异常,但我怎么能看出出了什么问题呢?

所以我不是在寻找ClassNotFoundException的答案。我们做了一些错误的开发人员,但我正在寻找一种方法来找出我做错了什么。因为这个例外实际上很难找出问题所在......: - (

我正在使用JBoss 6.1.0.Final(在Mac OS X 10.7和Java 1.6上运行)

org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,080 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,080 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,080 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,081 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,082 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.io.MarshalledObject.(MarshalledObject.java:51)
2012-07-18 17:06:19,083 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:1048)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceMan$
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:397)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:301)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3) Caused by: java.lang.NoClassDefFoundError: org/jboss/wsf/spi/serviceref/ServiceRefMetaData
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at java.lang.Class.getDeclaredMethods0(Native Method)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at java.lang.Class.getDeclaredMethod(Class.java:1935)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.classmetamodel.ClassMetaData.lookupMethodOnHierarchy(ClassMetaData.java:102)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.classmetamodel.ClassMetaData.lookupInternalMethods(ClassMetaData.java:432)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.classmetamodel.ClassMetaData.(ClassMetaData.java:122)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:350)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:168)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,084 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.ObjectOutputStreamProxy.writeFields(ObjectOutputStreamProxy.java:79)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.serial.persister.ObjectOutputStreamProxy.defaultWriteObject(ObjectOutputStreamProxy.java:68)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at java.util.Vector.writeObject(Vector.java:1012)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       ... 256 more
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3) Caused by: java.lang.ClassNotFoundException: org.jboss.wsf.spi.serviceref.ServiceRefMetaData from BaseClassLoader@12f483b4{vf$
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:480)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
2012-07-18 17:06:19,085 ERROR [STDERR] (SFSB Passivation Thread - jboss.j2ee:ear=XXX.ear,jar=XXX-YYY.jar,name=XXXSessionBean,service=EJB3)       ... 273 more

1 个答案:

答案 0 :(得分:0)

我查看了JBoss Serialization的源代码,并将代码附加到我的JBoss安装中。 问题似乎与我的XXXSessionBean中的属性ResourceBundle有关。钝化在此属性上失败,因为此对象无法序列化(http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html)。当我将其标记为" transient"时,问题似乎已得到解决!

如果您想了解我如何使用此解决方案,请阅读以下博文:http://www.jochus.be/site/2012-08-06/java/debugging-passivation-errors-in-jboss