org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'featureCollectorTask': Invocation of init method failed; nested exception is java.lang.NumberFormatException: For input string: ""0"

Samebug tips2

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.


rprp

This is a bug in Wise, updating to v4.10 seems to solve the problem.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3828

  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'featureCollectorTask': Invocation of init method failed; nested exception is java.lang.NumberFormatException: For input string: ""0" at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE] at com.capitalone.dashboard.Application.main(Application.java:21)[jira-feature-collector.jar!/:2.0.2-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)[jira-feature-collector.jar!/:2.0.2-SNAPSHOT] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_91] Caused by: java.lang.NumberFormatException: For input string: ""0" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)[na:1.8.0_91] at java.lang.Integer.parseInt(Integer.java:569)[na:1.8.0_91] at java.lang.Integer.valueOf(Integer.java:766)[na:1.8.0_91] at org.springframework.scheduling.support.CronSequenceGenerator.getRange(CronSequenceGenerator.java:363)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.support.CronSequenceGenerator.setNumberHits(CronSequenceGenerator.java:330)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:269)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.support.CronSequenceGenerator.<init>(CronSequenceGenerator.java:95)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.support.CronSequenceGenerator.<init>(CronSequenceGenerator.java:82)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.support.CronTrigger.<init>(CronTrigger.java:44)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at com.capitalone.dashboard.collector.CollectorTask.onStartup(CollectorTask.java:73)[core-2.0.2-SNAPSHOT.jar!/:2.0.2-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] ... 22 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    aidoanaidoan
    4 times, last one
    Михайло ТітовМихайло Тітов
    4 times, last one
    magicanmagican
    Once,
    tvrmsmithtvrmsmith
    10 times, last one
    derproggerderprogger
    3 times, last one
    206 more bugmates