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


JIRA is for tracking bugs in the XStream software, not a help forum. You have a classloader or jar version problem. If you search for help, please use the user's list and provide more info: How was the XML generated, in what environment, which xerces version you're using, ...