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

startup project logger error,not set nacos.config.data-ids value #174

Open
HPxianliru opened this issue Feb 8, 2021 · 1 comment
Open

Comments

@HPxianliru
Copy link
Contributor

Describe the bug
startup project logger error,not set nacos.config.data-ids value . the log-enable is true and remote-first is true
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:

not set application.yml nacos.config.data-ids value
Startup Project
logger error java.lang.NullPointerException: null
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

@HPxianliru
Copy link
Contributor Author

@i will solve it@

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