0
我使用SerializationUtils.clone克隆我的對象。相同的代碼在JBOss EAP 6.0中工作正常。當我做了移植到Glassfish的3.1.2.2,而處理我收到以下錯誤Glassfish 3.1.2.2版本中的SerializationUtils.clone問題5
2013-12-10 16:55:44,069 ERROR ge.nbsm.weGGI.Workflow.WorkflowManager - Exception in Manage Workflow -->
org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException: ge.nbsm.weGGI.valueObjects.DataContainerVO
at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:165)
at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:192)
at org.apache.commons.lang.SerializationUtils.clone(SerializationUtils.java:80)
at ge.nbsm.weGGI.Workflow.ObjectInterface.makeDACall(ObjectInterface.java:54)
at ge.nbsm.weGGI.Workflow.WorkflowManager.makeDACall(WorkflowManager.java:648)
at ge.nbsm.weGGI.Workflow.WorkflowManager.manageWorkflow(WorkflowManager.java:395)
at ge.nbsm.weGGI.common.utility.XMLProcessor.parseXML(XMLProcessor.java:487)
at ge.nbsm.weGGI.queue.QueueManager.processRequest(QueueManager.java:169)
Caused by: java.lang.ClassNotFoundException: ge.nbsm.weGGI.valueObjects.DataContainerVO
at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:787)
at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:696)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:603)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:162)
... 66 more
其strange..The相同的代碼並未造成任何的疑難問題。現在用公地郎2.4.jar。正常的java接口克隆不能滿足我的要求。請幫助解決這個問題,並讓我知道如果你需要更多的細節
是否確實部署了'ge.nbsm.weGGI.valueObjects.DataContainerVO'類呢? –
是的,我確信我的包裏有這個課程。清理和構建成功。在運行時處理我的應用程序時遇到此問題。 – Karthik