[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gemini-dev] Not recurring exception at runtime

Hi all,
I have the following exception when I start my karaf server. It is strange; it is not occurred each time.
Did you already see it. It's look like an optional dependency that is not resolved in time...

java.lang.IllegalStateException: Cannot load configuration class: test.MyClass
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:346)[57:org.springframework.context:3.1.1.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:222)[57:org.springframework.context:3.1.1.RELEASE]
    at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:444)[61:org.eclipse.gemini.blueprint.core:1.0.1.M1]
    at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:431)[61:org.eclipse.gemini.blueprint.core:1.0.1.M1]
    at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:362)[61:org.eclipse.gemini.blueprint.core:1.0.1.M1]
    at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:254)[61:org.eclipse.gemini.blueprint.core:1.0.1.M1]
    at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[61:org.eclipse.gemini.blueprint.core:1.0.1.M1]
    at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:220)[61:org.eclipse.gemini.blueprint.core:1.0.1.M1]
    at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:224)[62:org.eclipse.gemini.blueprint.extender:1.0.1.M1]
    at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:177)[62:org.eclipse.gemini.blueprint.extender:1.0.1.M1]
    at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)[61:org.eclipse.gemini.blueprint.core:1.0.1.M1]
    at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:222)[62:org.eclipse.gemini.blueprint.extender:1.0.1.M1]
    at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/proxy/MethodProxy
    at java.lang.Class.getDeclaredMethods0(Native Method)[:1.7.0_03]
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)[:1.7.0_03]
    at java.lang.Class.getDeclaredMethod(Class.java:1952)[:1.7.0_03]
    at net.sf.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:627)
    at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:615)
    at net.sf.cglib.proxy.Enhancer.registerStaticCallbacks(Enhancer.java:591)
    at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:156)
    at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:109)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:336)
    ... 12 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.MethodProxy
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)[osgi-3.6.2.R36x_v20110210.jar:]
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)[osgi-3.6.2.R36x_v20110210.jar:]
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)[osgi-3.6.2.R36x_v20110210.jar:]
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[osgi-3.6.2.R36x_v20110210.jar:]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_03]
    ... 21 more


Romain