org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uploadController' defined in BeanDefinition defined in URL [bundleresource://277.fwk32550604/ndx/web/bill/payments/UploadController.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class ndx.web.bill.payments.UploadController]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: class ndx.web.bill.payments.UploadController$$EnhancerByCGLIB$$9cfb1ed is not an enhanced class

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Pavel Kuzin, 1 year ago
Error creating bean with name 'uploadController' defined in BeanDefinition defined in URL [bundleresource://277.fwk32550604/ndx/web/bill/payments/UploadController.class]: Initialization of bean failed; nested exception is
via Spring JIRA by Pavel Kuzin, 1 year ago
Error creating bean with name 'uploadController' defined in BeanDefinition defined in URL [bundleresource://277.fwk32550604/ndx/web/bill/payments/UploadController.class]: Initialization of bean failed; nested exception is
via spring.io by Unknown author, 2 years ago
Error creating bean with name 'uploadController' defined in BeanDefinition defined in URL [bundleresource://277.fwk32550604/ndx/web/bill/payments/UploadController.class]: Initialization of bean failed; nested exception is
via liferay.com by Unknown author, 1 year ago
Error creating bean with name 'com.liferay.migration.service.AgeEnlacesLocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is
via Stack Overflow by rts_carl
, 6 months ago
Error creating bean with name 'requestMappingHandlerMapping' defined in org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: Initialization of bean failed; nested exception is
via Stack Overflow by user3715985
, 2 years ago
Error creating bean with name 'repositoryPersistenceDAO' defined in class path resource [spring/application-config.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uploadController' defined in BeanDefinition defined in URL [bundleresource://277.fwk32550604/ndx/web/bill/payments/UploadController.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class ndx.web.bill.payments.UploadController]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: class ndx.web.bill.payments.UploadController$$EnhancerByCGLIB$$9cfb1ed is not an enhanced class
at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:618)
at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:609)
at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:631)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:225)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:200)
at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1416)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1383)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:289)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:188)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:730)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:62)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:170)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:166)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:80)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:270)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at ndx.web.cp.MyContextLoadListener.contextInitialized(MyContextLoadListener.java:21)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4664)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5289)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1831)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1515)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:219)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:308)
at org.glassfish.web.osgi.JavaEEDeploymentRequest.deploy(JavaEEDeploymentRequest.java:167)
at org.glassfish.web.osgi.JavaEEDeploymentRequest.execute(JavaEEDeploymentRequest.java:119)
at org.glassfish.web.osgi.OSGiWebContainer.deployJavaEEArtifacts(OSGiWebContainer.java:141)
at org.glassfish.web.osgi.OSGiWebContainer.deploy(OSGiWebContainer.java:106)
at org.glassfish.web.osgi.WebExtender.deploy(WebExtender.java:158)
at org.glassfish.web.osgi.WebExtender.bundleChanged(WebExtender.java:110)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350)
at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:338)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(AbstractBundle.java:625)
at org.apache.felix.fileinstall.DirectoryWatcher.update(DirectoryWatcher.java:786)
at org.apache.felix.fileinstall.DirectoryWatcher.update(DirectoryWatcher.java:679)
at org.apache.felix.fileinstall.DirectoryWatcher.doInstalled(DirectoryWatcher.java:380)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.