org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.XX.enterprise.rmi.service.EnterpriseRmiService cn.XX.XX.app.service.impl.AppUsersServiceImpl.enterpriseRmiService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enterpriseRmiService': Post-processing of the FactoryBean's object failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class $Proxy8]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy8

aiuxian.com | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Caused by: java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy8 - 爱悠闲,快乐工作,悠闲生活!

    aiuxian.com | 9 months ago
    org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.XX.enterprise.rmi.service.EnterpriseRmiService cn.XX.XX.app.service.impl.AppUsersServiceImpl.enterpriseRmiService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enterpriseRmiService': Post-processing of the FactoryBean's object failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class $Proxy8]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy8
  2. 0

    [jira] (MRM-1632) Invalid Cron in a job leads jetty to not work anymore

    apache.org | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.archiva.scheduler.indexing.DownloadRemoteIndexScheduler org.apache.archiva.rest.services.DefaultRepositoriesService.downloadRemoteIndexScheduler; nested exception is org.springframework.beans.factory.BeanCrea > tionException: Error creating bean with name 'downloadRemoteIndexScheduler#default': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: cron expression must consist of 6 fields (found 5 in */5 * * * *)
  3. 0

    Error autowiring SwaggerSpringMvcPlugin

    GitHub | 3 years ago | boeboe
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySwaggerConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void be.example.backend.configuration.MySwaggerConfig.setSpringSwaggerConfig(com.mangofactory.swagger.configuration.SpringSwaggerConfig); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mangofactory.swagger.configuration.SpringSwaggerConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.List com.mangofactory.swagger.configuration.SpringSwaggerConfig.handlerMappings; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] found for dependency [collection of org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ERROR. org.springframework.web.context.ContextLoader - Context initialization failed

    Stack Overflow | 2 years ago | S.K. Kang
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [jdbc/sqlMapper_board.xml]'; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class . Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BoardVO'. Cause: java.lang.ClassNotFoundException: Cannot find class: BoardVO
  6. 0

    Problems getting facebook client to work

    GitHub | 2 years ago | pashtika
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userApprovalHandler' defined in ServletContext resource [/WEB-INF/spring-security.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'tokenServices' of bean class [org.springframework.security.oauth2.provider.approval.TokenStoreUserApprovalHandler]: Bean property 'tokenServices' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

  1. Andreas Häber 2 times, last 3 months ago
  2. treefolk 1 times, last 4 months ago
  3. wendellpereira 12 times, last 8 months ago
  4. marcbouvierdav 8 times, last 3 months ago
  5. linxiaolong 7 times, last 10 months ago
2 more registered users
93 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.BeanCreationException

    Could not autowire field: private cn.XX.enterprise.rmi.service.EnterpriseRmiService cn.XX.XX.app.service.impl.AppUsersServiceImpl.enterpriseRmiService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enterpriseRmiService': Post-processing of the FactoryBean's object failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class $Proxy8]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy8

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject()
  2. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
    2. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    3. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:876)
    12. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:818)
    13. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
    14. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
    15. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    16. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
    17. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
    18. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    19. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    20. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    21. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    22. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    23. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    24. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    24 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    2 frames
  4. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    3 frames
  5. Jetty
    XmlConfiguration$1.run
    1. org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:645)
    2. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:229)
    3. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1158)
    4. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:588)
    5. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:436)
    6. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    7. org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
    8. org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:180)
    9. org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:479)
    10. org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:136)
    11. org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:137)
    12. org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:50)
    13. org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:477)
    14. org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:389)
    15. org.eclipse.jetty.util.Scanner.scan(Scanner.java:339)
    16. org.eclipse.jetty.util.Scanner.start(Scanner.java:275)
    17. org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:114)
    18. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    19. org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:540)
    20. org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:219)
    21. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    22. org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:42)
    23. org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:52)
    24. org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96)
    25. org.eclipse.jetty.server.Server.doStart(Server.java:258)
    26. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    27. org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1068)
    27 frames
  6. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  7. Jetty
    XmlConfiguration.main
    1. org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:993)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  9. Jetty :: Start
    Main.main
    1. org.eclipse.jetty.start.Main.invokeMain(Main.java:477)
    2. org.eclipse.jetty.start.Main.start(Main.java:623)
    3. org.eclipse.jetty.start.Main.parseCommandLine(Main.java:273)
    4. org.eclipse.jetty.start.Main.main(Main.java:81)
    4 frames