com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2009-05-19T07:40:00 ---- Debugging information ---- class : com.vangenechten.system.edi.model.DelForHeader required-type : java.util.Date path : /com.vangenechten.system.edi.model.DelForHeader/createDate line number : 6 -------------------------------

MuleSoft JIRA | Patrick Santana | 7 years ago
  1. 0

    Using the transformer XMLToObject, if you have inside the XML this: ... .... <createDate>2009-05-19T07:40:00</createDate> .... .... When I try to convert to the object using xml-to-object-transformer I got this exception: Exception stack trace: com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2009-05-19T07:40:00 ---- Debugging information ---- class : com.vangenechten.system.edi.model.DelForHeader required-type : java.util.Date path : /com.vangenechten.system.edi.model.DelForHeader/createDate line number : 6 ------------------------------- at com.thoughtworks.xstream.converters.basic.DateConverter.fromString(DateConverter.java:52) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:31) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:39) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) at com.thoughtworks.xstream.annotations.AnnotationReflectionConverter.unmarshallField(AnnotationReflectionConverter.java:66) A solution for that would be extend a little bit the transformer with some details like gregorian date, locale and others. To solve this problem, I will create a customize Transformer, like: import org.mule.api.transformer.TransformerException; import org.mule.module.xml.transformer.XmlToObject; import com.thoughtworks.xstream.converters.extended.ISO8601GregorianCalendarConverter; public class SoapMessageConverter extends XmlToObject { public SoapMessageConverter() { super(); try { getXStream().registerConverter(new ISO8601GregorianCalendarConverter()); } catch (TransformerException e) { throw new RuntimeException("unable to get xstream " + "in converter constructor "+e.getMessage()); } } }

    MuleSoft JIRA | 7 years ago | Patrick Santana
    com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2009-05-19T07:40:00 ---- Debugging information ---- class : com.vangenechten.system.edi.model.DelForHeader required-type : java.util.Date path : /com.vangenechten.system.edi.model.DelForHeader/createDate line number : 6 -------------------------------
  2. 0

    Using the transformer XMLToObject, if you have inside the XML this: ... .... <createDate>2009-05-19T07:40:00</createDate> .... .... When I try to convert to the object using xml-to-object-transformer I got this exception: Exception stack trace: com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2009-05-19T07:40:00 ---- Debugging information ---- class : com.vangenechten.system.edi.model.DelForHeader required-type : java.util.Date path : /com.vangenechten.system.edi.model.DelForHeader/createDate line number : 6 ------------------------------- at com.thoughtworks.xstream.converters.basic.DateConverter.fromString(DateConverter.java:52) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:31) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:39) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) at com.thoughtworks.xstream.annotations.AnnotationReflectionConverter.unmarshallField(AnnotationReflectionConverter.java:66) A solution for that would be extend a little bit the transformer with some details like gregorian date, locale and others. To solve this problem, I will create a customize Transformer, like: import org.mule.api.transformer.TransformerException; import org.mule.module.xml.transformer.XmlToObject; import com.thoughtworks.xstream.converters.extended.ISO8601GregorianCalendarConverter; public class SoapMessageConverter extends XmlToObject { public SoapMessageConverter() { super(); try { getXStream().registerConverter(new ISO8601GregorianCalendarConverter()); } catch (TransformerException e) { throw new RuntimeException("unable to get xstream " + "in converter constructor "+e.getMessage()); } } }

    MuleSoft JIRA | 7 years ago | Patrick Santana
    com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2009-05-19T07:40:00 ---- Debugging information ---- class : com.vangenechten.system.edi.model.DelForHeader required-type : java.util.Date path : /com.vangenechten.system.edi.model.DelForHeader/createDate line number : 6 -------------------------------
  3. 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 -------------------------------
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    XStream marshalling unmarshalling XMLGregorianCalendar and Java.util.Date

    Stack Overflow | 2 years ago | Tim Glover
    com.thoughtworks.xstream.converters.ConversionException: Cannot convert type com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl to type java.util.Date ---- Debugging information ---- class : SampleEntityJavaUtil required-type : SampleEntityJavaUtil converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /SampleEntityGregorian.class/date line number : 2 version : 1.4.7 -------------------------------
  6. 0

    User - NPE @ Sun14ReflectionProvider.java:94 - Help needed

    nabble.com | 1 year ago
    com.thoughtworks.xstream.converters.ConversionException: null : null ---- Debugging information ---- cause-exception     : java.lang.NullPointerException cause-message       : null class               : com.some.bean required-type       : com.some.bean path                : /Response line number         : 2 -------------------------------

    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

      Cannot parse date 2009-05-19T07:40:00 ---- Debugging information ---- class : com.vangenechten.system.edi.model.DelForHeader required-type : java.util.Date path : /com.vangenechten.system.edi.model.DelForHeader/createDate line number : 6 -------------------------------

      at com.thoughtworks.xstream.converters.basic.DateConverter.fromString()
    2. XStream Core
      AnnotationReflectionConverter.unmarshallField
      1. com.thoughtworks.xstream.converters.basic.DateConverter.fromString(DateConverter.java:52)
      2. com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:31)
      3. com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:39)
      4. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
      5. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
      6. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
      7. com.thoughtworks.xstream.annotations.AnnotationReflectionConverter.unmarshallField(AnnotationReflectionConverter.java:66)
      7 frames