XStream
  1. XStream
  2. XSTR-366

Cannot instantiate XStream if old version of CGLib is in classpath

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 1.2.2
    • Component/s: None
    • Labels:
      None

      Description

      Environment: Java 1.5, with cglib-full-2.0.jar in the path.

      Calling: new XSteam();

      Throws:
      java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.isEnhanced(Ljava/lang/Class;)Z
      at com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter.canConvert(CGLIBEnhancedConverter.java:59)
      at com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter(DefaultConverterLookup.java:58)
      at com.thoughtworks.xstream.XStream.registerConverter(XStream.java:975)
      at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:646)
      at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:629)
      at com.thoughtworks.xstream.XStream.<init>(XStream.java:371)
      at com.thoughtworks.xstream.XStream.<init>(XStream.java:297)

      cglib-full-2.0.jar is in the path for a completely unrelated reason (and not something I can easily change). I'd like to use XStream but don't care about CGLib support.

        People

        • Assignee:
          Unassigned
          Reporter:
          Joe Walnes
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: