XStream
  1. XStream
  2. XSTR-657

ConversionException exception using xstream to convert org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Not A Bug
    • Affects Version/s: 1.2.1, 1.3.1
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None
    • JDK version and platform:
      JDK 1.5.0_18 for windows

      Description

      Hi,

      I am trying to parse an xml to the corresponding object. My xml contains some date fields which are pointing to the class "org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl". While trying to convert this xml to the object , I got the following exception. I ahd include the xercesImpl.jar in the classpath. But still issue not solved . The exception is given below.

      com.thoughtworks.xstream.converters.ConversionException: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl : org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl : org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl : org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
      ---- Debugging information ----
      message : org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl : org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
      cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
      cause-message : org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl : org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
      class : com.att.csi.wlclient.InquireFanProfileResponseInfo
      required-type : com.att.csi.wlclient.InquireFanProfileResponseInfo$Profile
      path : /com.att.csi.wlclient.InquireFanProfileResponseInfo/profile/contractExpirationDate
      line number : 112
      -------------------------------

      My xml file contains :

      <contractExpirationDate class="org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl">
      <orig_year>2013</orig_year>
      <orig_month>4</orig_month>
      <orig_day>24</orig_day>
      <orig_hour>-2147483648</orig_hour>
      <orig_minute>-2147483648</orig_minute>
      <orig_second>-2147483648</orig_second>
      <orig_timezone>0</orig_timezone>
      <year>2013</year>
      <month>4</month>
      <day>24</day>
      <timezone>0</timezone>
      <hour>-2147483648</hour>
      <minute>-2147483648</minute>
      <second>-2147483648</second>
      </contractExpirationDate>

      Pls help me ..its a critical situation.. Why xstream fails to convert org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl to javax.xml.datatype.XMLGregorianCalendar ??????

      Thanks,
      Ziyad

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Ziyad Shan
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: