Closed AYue-94 closed 2 months ago
@AYue-94 The cause of this problem is that when the configuration type of a configuration item is collection and the configuration content is empty, an warning log is recorded. The LogEventCollector collects and reports warning logs. However, the event configuration is not initialized, so a NullPointerException is thrown on event collection. We will fix it in the next release.
What happened?
i add myList property in config.properties and AgentConfig, and default it is empty string.
when io.sermant.core.config.utils.ConfigValueUtil#parseConfigToCollection, parse empty string, then log warn. it cause new LogEventCollector instance created, but Config is not ready, so it cause NPE, and agent mount fail.
How can we reproduce it (as minimally and precisely as possible)?
you can try set agent.config.serviceInjectList as empty string.
Anything else we need to know?
No response
Sermant version
2.0.0
OS version
MacOS14.1