XStream
  1. XStream
  2. XSTR-660

Issue with XStream jar while migrating from WAS 6.1 to WAS 7.0

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None
    • JDK version and platform:
      JDK 1.6, Web Sphere 7.0, Windows XP

      Description

      We were using xstream-1.2.jar with WAS 6.1
      When we migrated our application from WAS 6.1 to WAS 7.0, xstream-1.2.jar was throwing exception. To resolve this exception, we upgraded to xstream-1.3.1.jar but getting following exception:

      Exception in thread "main" com.thoughtworks.xstream.converters.ConversionException: Invalid reference

      Also we are getting null pointer exception in canConvert(Object class) method of convertor. Here parameter class is coming as null. As per our analysis, this method is called by XStream framework internally.

      When we looked into Stream jar code, came to following part which was throwing exception:

      final Object result;
      String attributeName = getMapper().aliasForSystemAttribute("reference");
      String reference = attributeName == null ? null : reader.getAttribute(attributeName);
      if (reference != null) {
      result = values.get(getReferenceKey(reference));
      if (result == null)

      { final ConversionException ex = new ConversionException("Invalid reference"); ex.add("reference", reference); throw ex; }

      }
      When we searched XStream user mailing list, got a similar issue at following URL:
      http://comments.gmane.org/gmane.comp.java.xstream.user/6103

      We tried to implement solution given in this thread like but did not get expected results.

      Please advice.

        People

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

          Dates

          • Created:
            Updated:
            Resolved: