org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultDengineManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.service.model.VirtualServerService com.dianping.phoenix.lb.dengine.DefaultDengineManager.virtualServiceService; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'virtualServerServiceImpl' defined in file [D:\代码\camel\camel-admin\target\classes\com\dianping\phoenix\lb\service\model\VirtualServerServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 6 of type [com.dianping.phoenix.lb.service.NginxService]: : Error creating bean with name 'defaultNginxServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private boolean com.dianping.phoenix.lb.service.DefaultNginxServiceImpl.m_ifNeedCheck; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'boolean'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [${local.nginx.config.check}]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultNginxServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private boolean com.dianping.phoenix.lb.service.DefaultNginxServiceImpl.m_ifNeedCheck; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'boolean'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [${local.nginx.config.check}]

GitHub | 0312birdzhang | 3 months ago
  1. 0

    GitHub comment 1#245217793

    GitHub | 3 months ago | 0312birdzhang
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultDengineManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dianping.phoenix.lb.service.model.VirtualServerService com.dianping.phoenix.lb.dengine.DefaultDengineManager.virtualServiceService; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'virtualServerServiceImpl' defined in file [D:\代码\camel\camel-admin\target\classes\com\dianping\phoenix\lb\service\model\VirtualServerServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 6 of type [com.dianping.phoenix.lb.service.NginxService]: : Error creating bean with name 'defaultNginxServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private boolean com.dianping.phoenix.lb.service.DefaultNginxServiceImpl.m_ifNeedCheck; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'boolean'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [${local.nginx.config.check}]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultNginxServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private boolean com.dianping.phoenix.lb.service.DefaultNginxServiceImpl.m_ifNeedCheck; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'boolean'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [${local.nginx.config.check}]
  2. 0

    What could be the possible cause of this error [ERROR,ContextLoader] Context initialization failed?

    Stack Overflow | 4 years ago | Janderson Almeida
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not instantiate collection persister org.hibernate.persister.collection.OneToManyPersister
  3. 0

    Spring ...BeanCreationException: Error creating bean with name 'sqlSessionFactoryWrite' - CSDN博客

    csdn.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactoryWrite' defined in URL [file:/E:/zhonglian/CanYin-www/target/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 17; The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?,databaseIdProvider?,mappers?)".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Vaadin 6 + Spring 3 Integration | Navin Peiris

    wordpress.com | 11 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘vaadinSpringDemoApplication’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.navinpeiris.vaadin_spring.MainWindow com.navinpeiris.vaadin_spring.VaadinSpringDemoApplication.mainWindow; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mainWindow’: Scope ‘session’ is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
  6. 0

    mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案 - zengdeqing2012的专栏 - 博客频道 - CSDN.NET

    csdn.net | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tempTestTableMapper' defined in URL [jar:file:/E:/.m2/repository/cn/xyx/xyx.dsw.dao/1.0/xyx.dsw.dao-1.0.jar!/xyx/dsw/dao/mapper/admin/quotationwish/TempTestTableMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult

  1. Andreas Häber 2 times, last 3 weeks ago
  2. wendellpereira 12 times, last 2 months ago
  3. marcbouvierdav 7 times, last 3 months ago
  4. linxiaolong 7 times, last 4 months ago
  5. ggghjh 1 times, last 4 months ago
1 more registered users
94 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. java.lang.IllegalArgumentException

    Invalid boolean value [${local.nginx.config.check}]

    at org.springframework.beans.propertyeditors.CustomBooleanEditor.setAsText()
  2. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.propertyeditors.CustomBooleanEditor.setAsText(CustomBooleanEditor.java:124)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    2. org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:455)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    3. org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:427)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    4. org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:181)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    5. org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:110)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    6. org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:58)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    7. org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:51)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    8. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    9. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    10. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    11. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    12. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1147)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    14. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    15. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    16. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    17. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    18. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    19. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    20. org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:917)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    21. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    22. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    23. org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:817)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    24. org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:745)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    25. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    26. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1076)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    27. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:980)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    28. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    29. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    30. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    31. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    32. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    33. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    34. org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:917)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    35. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    36. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    37. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    38. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    39. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    40. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1147)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    41. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    42. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    43. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    44. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    45. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    46. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    47. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)[spring-beans-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    47 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)[spring-context-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)[spring-context-3.2.10.RELEASE.jar:3.2.10.RELEASE]
    2 frames
  4. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    3 frames
  5. Jetty Server
    WebAppContext.doStart
    1. org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)[jetty-6.1.26.jar:6.1.26]
    2. org.mortbay.jetty.servlet.Context.startContext(Context.java:136)[jetty-6.1.26.jar:6.1.26]
    3. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)[jetty-6.1.26.jar:6.1.26]
    4. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)[jetty-6.1.26.jar:6.1.26]
    5. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)[jetty-6.1.26.jar:6.1.26]
    5 frames
  6. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.26.jar:6.1.26]
    1 frame
  7. Jetty Server
    Server.doStart
    1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)[jetty-6.1.26.jar:6.1.26]
    2. org.mortbay.jetty.Server.doStart(Server.java:224)[jetty-6.1.26.jar:6.1.26]
    2 frames
  8. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.26.jar:6.1.26]
    1 frame
  9. runjettyrun
    Bootstrap.main
    1. runjettyrun.Bootstrap.main(Bootstrap.java:97)[bootstrap.jar:na]
    1 frame