org.springframework.beans.factory.BeanCreationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • spring-security-oauth2
    via by Unknown author,
  • Neo4J Embedded Driver Configuration
    via Stack Overflow by Jamie White
    ,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cronMailService': Injection of autowired dependencies failed; nested exce ption is org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.lang.Integer org.synyx.urlaubsverwaltung.core.cron.CronMailServi ce.daysBeforeWaitingApplicationsReminderNotification; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type [java. lang.String] to required type [java.lang.Integer]; nested exception is java.lang.NumberFormatException: For input string: "007***" at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java: 334) ~[spring-beans-4.2.6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)[spring-beans -4.2.6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)[spring-beans- 4.2.6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4. 2.6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.2.6.RELEASE.jar!/:4.2.6.RELEA SE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.2.6.RELEAS E.jar!/:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.2.6.RELEASE.jar!/:4.2.6.RELEASE ] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.2.6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)[spring-beans-4.2. 6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)[spring-context-4 .2.6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)[spring-context-4.2.6.RELEASE.jar!/:4.2.6 .RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[spring-boot-1.3.5.RELEASE.ja r!/:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE] at org.synyx.urlaubsverwaltung.UrlaubsverwaltungApplication.main(UrlaubsverwaltungApplication.java:29)[urlaubsverwaltung-2.21.0.jar!/:2.21.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_101] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)[urlaubsverwaltung-2.21.0.jar!/:2.21.0] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_101] Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.lang.Integer org.synyx.urlaubsverwaltung.core.cron.CronMailSer vice.daysBeforeWaitingApplicationsReminderNotification; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type [jav a.lang.String] to required type [java.lang.Integer]; nested exception is java.lang.NumberFormatException: For input string: "007***" at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.ja va:573) ~[spring-beans-4.2.6.RELEASE.jar!/:4.2.6.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)[spring-beans-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]

    Users with the same issue

    linxiaolong
    6 times, last one,