Java Glassfish TimerService:将vom GF 3.1更新为4.1时TimerHandle反序列化中出现异常

Java Glassfish TimerService:将vom GF 3.1更新为4.1时TimerHandle反序列化中出现异常,java,glassfish,Java,Glassfish,我正在将JavaEE6应用程序从GF 3.1.2.2更新为4.1。该应用程序大量使用EJB计时器服务,并将TimerHandle对象持久化到数据库中 当访问数据库中的计时器句柄时,出现以下异常: Exception [EclipseLink-66] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException Exception De

我正在将JavaEE6应用程序从GF 3.1.2.2更新为4.1。该应用程序大量使用EJB计时器服务,并将
TimerHandle
对象持久化到数据库中

当访问数据库中的计时器句柄时,出现以下异常:

Exception [EclipseLink-66] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Could not deserialize object from byte array.
Internal Exception: java.io.InvalidClassException: com.sun.ejb.containers.TimerWrapper$TimerHandleImpl; local class incompatible: stream classdesc serialVersionUID = 8013326429831986199, local class serialVersionUID = -7638766191514989908
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[timerHandle-->MESSAGE.TIMERHANDLE]
Descriptor: RelationalDescriptor(com.example.Message --> [DatabaseTable(MESSAGE)])
显然,串行版本ID已从GF 3.1更改为4.1。如何重用GF 4.1中的TimerHandle对象