Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: Converters
-
Labels:None
-
JDK version and platform:JDK 1.6_03, WinXP,
Description
exception that thrown:
Exception in thread "pool-2-thread-1" java.lang.ExceptionInInitializerError
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:1033)
at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:663)
at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:646)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:375)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:301)
at com.nolio.platform.server.dataservices.logic.packages.loaders.ApplicationLoader.loadApplicationsFromFile(ApplicationLoader.java:43)
at com.nolio.platform.server.dataservices.logic.packages.loaders.PackageLoader.loadPackage(PackageLoader.java:79)
at com.nolio.platform.server.dataservices.logic.packages.loaders.PackageLoader.loadPackage(PackageLoader.java:44)
at com.nolio.platform.server.dataservices.logic.packages.loaders.PackageLoader.loadFromFileObject(PackageLoader.java:36)
at com.nolio.platform.server.dataservices.logic.packages.PackagesScanner.run(PackagesScanner.java:130)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException: net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72 cannot be cast to net.sf.cglib.core.KeyFactory
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
... 15 more
don't know if this relevant: thrown inside of WebApp running in embedded Jetty 6
Hi Mirron,
I am closing this as "Cannot Reproduce", since the problem does not seem to be XStream related in first place. Have a look at the stack trace, the ClassCastException is thrown somewhere deep down in the sources of CGLIB, XStream simply tries to call a method of a class available in CGLIB. However, it seems that you have some incompatible versions of CGLIB in the class path, this ClassCastException is a typical symptom. Please have a look at the libs Jetty is loading at startup and look into your own dependencies.
If you have further questions, please ask on the user's list.