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

config start NullPointerException #4905

Closed
HPxianliru opened this issue Feb 8, 2021 · 2 comments
Closed

config start NullPointerException #4905

HPxianliru opened this issue Feb 8, 2021 · 2 comments

Comments

@HPxianliru
Copy link

Describe the bug
startup project logger error,not set nacos.config.data-ids value
Expected behavior
not set data-ids successful startup without loading configuration
the Process Is Now Blocked
Acutally behavior
logger error NullPointerException

How to Reproduce
Steps to reproduce the behavior:

  1. not set application.yml nacos.config.data-ids value
  2. Startup Project
  3. logger error java.lang.NullPointerException: null
  4. java.lang.NullPointerException: null
    at org.springframework.core.env.MutablePropertySources.assertLegalRelativeAddition(MutablePropertySources.java:176)
    at org.springframework.core.env.MutablePropertySources.addAfter(MutablePropertySources.java:125)
    at com.alibaba.boot.nacos.config.util.NacosConfigLoader.loadConfig(NacosConfigLoader.java:76)
    at com.alibaba.boot.nacos.config.autoconfigure.NacosConfigEnvironmentProcessor.loadConfig(NacosConfigEnvironmentProcessor.java:94)

Desktop (please complete the following information):

  • OS: windows
  • Version nacos-server 1.3.0, nacos-client 1.2.0
  • Module naming/config
  • nacos:
    config:
    server-addr: ${nacos.address:10.247.121.124:8848}
    bootstrap:
    enable: true
    log-enable: true
    remote-first: true
    type: yaml
    auto-refresh: false
    data-ids:
  • SDK groupId: com.alibaba.boot artifactId: nacos-config-spring-boot-starter version 0.2.7

Additional context
Add any other context about the problem here.

@HPxianliru
Copy link
Author

@i will solve it@

@HPxianliru
Copy link
Author

Ask the administrator to close this question, this question is another project question

groupId: com.alibaba.boot artifactId: nacos-config-spring-boot-starter version 0.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant