com.thoughtworks.xstream.converters.ConversionException: test : test ---- Debugging information ---- message : test : test cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : test : test class : org.kuali.kra.proposaldevelopment.bo.AbstractType required-type : org.kuali.kra.proposaldevelopment.bo.AbstractType path : /org.kuali.kra.proposaldevelopment.bo.AbstractType/test line number : 2 -------------------------------

Kuali JIRA | Gayathri Athreya | 4 years ago
  1. 0

    Steps to reproduce. 1. Add a new property to any maintenance document BO and set it to a non-null value in the constructor. 2. Start the application and create a maintenance document for the BO. Submit the document. Make sure the document comes up in the doc search and you can open it fine. 3. Stop the server and remove the new property. Start the server and redo the search. The previously added maintenance document will now throw a stack trace when you try to open it. Looks like this is because of document serialization issues since the old property is still in the serialized document data.Perhaps some kind of check needs to be performed to make sure the properties in the serialized data are still available? This is an issue for us because if in a newer version of KC, we remove a property from a maintenance document, implementors who have existing documents created with the older version of KC can no longer view those documents. We have bugs being reported because of this. Here is the stack trace I saw when I added an element called test with value "test". {code} ******************Stack Trace-Only shown when not in production***************** com.thoughtworks.xstream.converters.ConversionException: test : test ---- Debugging information ---- message : test : test cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : test : test class : org.kuali.kra.proposaldevelopment.bo.AbstractType required-type : org.kuali.kra.proposaldevelopment.bo.AbstractType path : /org.kuali.kra.proposaldevelopment.bo.AbstractType/test line number : 2 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117) at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:773) at org.kuali.rice.krad.service.impl.XmlObjectSerializerServiceImpl.fromXml(XmlObjectSerializerServiceImpl.java:98) at org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.getDataObjectFromXML(MaintenanceDocumentBase.java:383) at org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.populateMaintainablesFromXmlDocumentContents(MaintenanceDocumentBase.java:288) at org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.processAfterRetrieve(MaintenanceDocumentBase.java:542) at org.kuali.rice.krad.service.impl.DocumentServiceImpl.postProcessDocument(DocumentServiceImpl.java:777) at org.kuali.rice.krad.service.impl.DocumentServiceImpl.getByDocumentHeaderId(DocumentServiceImpl.java:692) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:381) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:349) at org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.docHandler(KualiMaintenanceDocumentAction.java:626) {code}

    Kuali JIRA | 4 years ago | Gayathri Athreya
    com.thoughtworks.xstream.converters.ConversionException: test : test ---- Debugging information ---- message : test : test cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : test : test class : org.kuali.kra.proposaldevelopment.bo.AbstractType required-type : org.kuali.kra.proposaldevelopment.bo.AbstractType path : /org.kuali.kra.proposaldevelopment.bo.AbstractType/test line number : 2 -------------------------------
  2. 0

    Steps to reproduce. 1. Add a new property to any maintenance document BO and set it to a non-null value in the constructor. 2. Start the application and create a maintenance document for the BO. Submit the document. Make sure the document comes up in the doc search and you can open it fine. 3. Stop the server and remove the new property. Start the server and redo the search. The previously added maintenance document will now throw a stack trace when you try to open it. Looks like this is because of document serialization issues since the old property is still in the serialized document data.Perhaps some kind of check needs to be performed to make sure the properties in the serialized data are still available? This is an issue for us because if in a newer version of KC, we remove a property from a maintenance document, implementors who have existing documents created with the older version of KC can no longer view those documents. We have bugs being reported because of this. Here is the stack trace I saw when I added an element called test with value "test". {code} ******************Stack Trace-Only shown when not in production***************** com.thoughtworks.xstream.converters.ConversionException: test : test ---- Debugging information ---- message : test : test cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : test : test class : org.kuali.kra.proposaldevelopment.bo.AbstractType required-type : org.kuali.kra.proposaldevelopment.bo.AbstractType path : /org.kuali.kra.proposaldevelopment.bo.AbstractType/test line number : 2 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117) at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:773) at org.kuali.rice.krad.service.impl.XmlObjectSerializerServiceImpl.fromXml(XmlObjectSerializerServiceImpl.java:98) at org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.getDataObjectFromXML(MaintenanceDocumentBase.java:383) at org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.populateMaintainablesFromXmlDocumentContents(MaintenanceDocumentBase.java:288) at org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.processAfterRetrieve(MaintenanceDocumentBase.java:542) at org.kuali.rice.krad.service.impl.DocumentServiceImpl.postProcessDocument(DocumentServiceImpl.java:777) at org.kuali.rice.krad.service.impl.DocumentServiceImpl.getByDocumentHeaderId(DocumentServiceImpl.java:692) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:381) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:349) at org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.docHandler(KualiMaintenanceDocumentAction.java:626) {code}

    Kuali JIRA | 4 years ago | Gayathri Athreya
    com.thoughtworks.xstream.converters.ConversionException: test : test ---- Debugging information ---- message : test : test cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : test : test class : org.kuali.kra.proposaldevelopment.bo.AbstractType required-type : org.kuali.kra.proposaldevelopment.bo.AbstractType path : /org.kuali.kra.proposaldevelopment.bo.AbstractType/test line number : 2 -------------------------------
  3. 0

    Xstream incorrectly interpreting a list item as part of another list item

    Stack Overflow | 3 years ago | Xynariz
    com.thoughtworks.xstream.converters.ConversionException: Element user of type shared.model.User is not defined as field in type shared.model.User ---- Debugging information ---- class : shared.model.User required-type : shared.model.User converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /data/users/user line number : 19 class[1] : indexer.shared.model.Model version : null -------------------------------
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error loading fresh starter Oracle

    GitHub | 5 years ago | dotjorgeu
    com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2012-03-01 00:00:00.0 ---- Debugging information ---- class : java.util.ArrayList required-type : java.util.Date path : /list/com.dotmarketing.portlets.contentlet.model.ContentletVersionInfo/lockedOn line number : 5 -------------------------------
  6. 0

    Java Reading XML with XStream

    Stack Overflow | 3 years ago | user2686811
    com.thoughtworks.xstream.converters.ConversionException: Authors : Authors ---- Debugging information ---- message : Authors cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : Authors class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter path : /ListOfDBook/DBook/Authors class[1] : com.test.books.ListOfDBook converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter version : null -------------------------------

  1. Kelly O'Hair 1 times, last 4 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.thoughtworks.xstream.converters.ConversionException

    test : test ---- Debugging information ---- message : test : test cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : test : test class : org.kuali.kra.proposaldevelopment.bo.AbstractType required-type : org.kuali.kra.proposaldevelopment.bo.AbstractType path : /org.kuali.kra.proposaldevelopment.bo.AbstractType/test line number : 2 -------------------------------

    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert()
  2. XStream Core
    XStream.fromXML
    1. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
    2. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
    3. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
    4. com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
    5. com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
    6. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
    7. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833)
    8. com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)
    9. com.thoughtworks.xstream.XStream.fromXML(XStream.java:773)
    9 frames
  3. org.kuali.rice
    KualiMaintenanceDocumentAction.docHandler
    1. org.kuali.rice.krad.service.impl.XmlObjectSerializerServiceImpl.fromXml(XmlObjectSerializerServiceImpl.java:98)
    2. org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.getDataObjectFromXML(MaintenanceDocumentBase.java:383)
    3. org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.populateMaintainablesFromXmlDocumentContents(MaintenanceDocumentBase.java:288)
    4. org.kuali.rice.krad.maintenance.MaintenanceDocumentBase.processAfterRetrieve(MaintenanceDocumentBase.java:542)
    5. org.kuali.rice.krad.service.impl.DocumentServiceImpl.postProcessDocument(DocumentServiceImpl.java:777)
    6. org.kuali.rice.krad.service.impl.DocumentServiceImpl.getByDocumentHeaderId(DocumentServiceImpl.java:692)
    7. org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:381)
    8. org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:349)
    9. org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.docHandler(KualiMaintenanceDocumentAction.java:626)
    9 frames