我在反序列化和对象时遇到错误。
13:47:00,679 INFO [stdout] (org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1) 2012-10-26 13:47:00,679 () DEBUG com.dipp.testMap - Error while reading the object to HashMap
13:47:00,680 ERROR [stderr] (org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1) java.lang.ClassNotFoundException: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl from [Module "deployment.DIPP.war:main" from Service Module Loader]
13:47:00,682 ERROR [stderr] (org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
13:47:00,682 ERROR [stderr] (org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
这是我的代码。
try{
transferObject = (HashMap)o.readObject();
}
catch(Exception e)
{
log.debug("Error while reading the object to HashMap");
e.printStackTrace();
}
我有一个名为 EPOCHDATE 的字段,它位于 transferObject 中,并且具有 XMLGregorianCalendar 数据类型。有解决此问题的想法吗?我收到 classNotFound 异常。我相信,我必须在 POM 文件中添加依赖项。
提前致谢
健达富