Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application startup failed, start by elasticjob-lite-spring-boot-starter #2057

Closed
junfugao8 opened this issue Feb 28, 2022 · 2 comments
Closed
Assignees

Comments

@junfugao8
Copy link

junfugao8 commented Feb 28, 2022

Nearby logs

Initializing ExecutorService
spring-cloud-starter-eureka is deprecated as of Spring Cloud Netflix 1.4.0, please migrate to spring-cloud-starter-netflix-eureka
creating Job Bootstrap Beans
Stopping service [Tomcat]
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
Application startup failed
Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@eb21112: startup date [Mon Feb 28 21:32:10 CST 2022]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@23223dd8
Setting initial instance status as: STARTING
Unregistering application promotion-center with eureka with status DOWN
Unregistering JMX-exposed beans on shutdown

Only so much log
However, I can start successfully by changing the namespace
I use elasticjob-lite-spring-boot-starter to start job
by yml

elasticjob:
  reg-center:
    namespace: job-center
  jobs:
    RankingProcess:
      elasticJobClass: com.lq.activity.process.RankingProcess
      cron: 0 0 */1 * * ?
      sharding-total-count: 1
      description: update something

Why don't I need to change the namespace to start the program,How can I fix it,And avoid failure to start next time.

@TeslaCN
Copy link
Member

TeslaCN commented Apr 7, 2022

Hi @junfugao8
Could you provide more error logs?

@linghengqian
Copy link
Member

@linghengqian linghengqian self-assigned this Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants