imom0 opened a new issue #7904:
URL: https://github.com/apache/dolphinscheduler/issues/7904


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   master cannot start
   
   ### What you expected to happen
   
   start as expected
   
   ### How to reproduce
   
   install 2.0.2 via k8s
   
   `
   $ tar -zxvf apache-dolphinscheduler-2.0.2-src.tar.gz
   $ cd apache-dolphinscheduler-2.0.2-src/docker/kubernetes/dolphinscheduler
   $ helm repo add bitnami https://charts.bitnami.com/bitnami
   $ helm dependency update .
   $ helm install dolphinscheduler .`
   
   error logs:
   
   
`org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656)
   ... 18 common frames omitted
   Caused by: org.springframework.beans.TypeMismatchException: Failed to 
convert value of type 'java.lang.String' to required type 'int'; nested 
exception is java.lang.NumberFormatException: For input string: ""
   at 
org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:79)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1328)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656)
   ... 32 common frames omitted
   Caused by: java.lang.NumberFormatException: For input string: ""
   at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
   at java.lang.Integer.parseInt(Integer.java:592)
   at java.lang.Integer.valueOf(Integer.java:766)
   at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:211)
   at 
org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:115)
   at 
org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:429)
   at 
org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:402)
   at 
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:155)
   at 
org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:73)
   ... 35 common frames omitted
   Exception in thread "Master-Server" 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'masterServer': Unsatisfied dependency expressed 
through field 'masterConfig'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'masterConfig': Unsatisfied dependency expressed 
through field 'failoverInterval'; nested exception is 
org.springframework.beans.TypeMismatchException: Failed to convert value of 
type 'java.lang.String' to required type 'int'; nested exception is 
java.lang.NumberFormatException: For input string: ""
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639)
   at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
   at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
   at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
   at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
   at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
   at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
   at 
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)
   at 
org.apache.dolphinscheduler.server.master.MasterServer.main(MasterServer.java:123)
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'masterConfig': Unsatisfied dependency expressed 
through field 'failoverInterval'; nested exception is 
org.springframework.beans.TypeMismatchException: Failed to convert value of 
type 'java.lang.String' to required type 'int'; nested exception is 
java.lang.NumberFormatException: For input string: ""
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639)
   at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
   at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
   at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656)
   ... 18 more
   Caused by: org.springframework.beans.TypeMismatchException: Failed to 
convert value of type 'java.lang.String' to required type 'int'; nested 
exception is java.lang.NumberFormatException: For input string: ""
   at 
org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:79)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1328)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656)
   ... 32 more
   Caused by: java.lang.NumberFormatException: For input string: ""
   at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
   at java.lang.Integer.parseInt(Integer.java:592)
   at java.lang.Integer.valueOf(Integer.java:766)
   at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:211)
   at 
org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:115)
   at 
org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:429)
   at 
org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:402)
   at 
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:155)
   at 
org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:73)
   ... 35 more
   End start master-server.
   2022-01-09 17:15:52,100 INFO exited: master (exit status 0; not expected)`
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.2
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to