Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11147

XStreamMarshaller doesn't set the converterRegistry field with XStream 1.4.5

    XMLWordPrintable

    Details

    • Last commented by a User:
      true

      Description

      When using XStreamMarshaller, I get following error

      XStream marshalling ended with exception org.springframework.oxm.MarshallingFailureException: XStream marshalling exception;
      nested exception is com.thoughtworks.xstream.converters.ConversionException: No converter specified for class springtest.xmlmarshalling.Data
      

      After some debugging, I think the problem is that XStreamMarshaller's converterRegistry field is not initialized (it remains NULL, unlike the converterLookup field just a line above) and when the XStream object is being created in constructXStream() method, the NULL value causes that no converter is registered.

      Let me know if you need more details or example war to reproduce this.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            trepel Tomas Repel
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 23 weeks, 6 days ago