Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-100

Cannot set com.thoughtworks.xstream.converters.basic.DateConverter in XStreamMarshaller.setConverters(Converter[])

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 M3
    • Fix Version/s: 1.0 RC1
    • Component/s: OXM
    • Labels:
      None
    • Environment:
      WL 9.2 + Oracle RAC 10g + Solaris 10

      Description

      Method XStreamMarshaller.setConverters can only accept an array of Converter, which is not the root class in the converter hierarchy in XStream. The root class is ConverterMatcher, which is parent to Converter. I tried to set a DateConverter and instantiation of the Marshaller threw a ClassCastException. I suggest the method signature be changed to accept an array of ConverterMatcher as a parameter.

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        It seems like the ConverterMatcher was introduced in XStream 1.2, so we have to upgrade to this version

        Show
        arjen.poutsma Arjen Poutsma added a comment - It seems like the ConverterMatcher was introduced in XStream 1.2, so we have to upgrade to this version
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing RC1 issues.

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing RC1 issues.

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            jsramos Jesus Ramos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: