History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XSTR-366
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Assignee: Unassigned
Reporter: Joe Walnes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XStream

Cannot instantiate XStream if old version of CGLib is in classpath

Created: 01/Dec/06 05:33 AM   Updated: 24/May/07 12:38 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.2


 Description  « Hide
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.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible - 30/Apr/07 11:52 AM
Joe, can I close this? It is really only happening for the cglib-2.0 version that is more than 3 years old. Since 2.0.1 and later anything works as expected. Since upgrading cglib is quite flawless, I'd like to ignore this as known problem with easy workaround.