"Logging system failed to initialize using configuration from 'null'\njava.lang.IllegalStateException: Logback configuration error detected: \nERROR in ch.qos.logback.core.pattern.parser.Compiler@2374c53e - Failed to instantiate converter class [com.hikvision.idatafusion.dvisualmodel.core.config.converter.MaskedConverter] as a composite converter for keyword [masked] ch.qos.logback.core.util.IncompatibleClassException\nERROR in ch.qos.logback.core.pattern.parser.Compiler@2374c53e - Failed to create converter for [%masked] keyword\nERROR in ch.qos.logback.core.pattern.parser.Compiler@35b1a8b0 - Failed to instantiate converter class [com.hikvision.idatafusion.dvisualmodel.core.config.converter.MaskedConverter] as a composite converter for keyword [masked] ch.qos.logback.core.util.IncompatibleClassException\nERROR in ch.qos.logback.core.pattern.parser.Compiler@35b1a8b0 - Failed to create converter for [%masked] keyword\nERROR in ch.qos.logback.core.pattern.parser.Compiler@4f3a6be0 - Failed to instantiate converter class [com.hikvision.idatafusion.dvisualmodel.core.config.converter.MaskedConverter] as a composite converter for keyword [masked] ch.qos.logback.core.util.IncompatibleClassException\nERROR in ch.qos.logback.core.pattern.parser.Compiler@4f3a6be0 - Failed to create converter for [%masked] keyword\nERROR in ch.qos.logback.core.pattern.parser.Compiler@1768729f - Failed to instantiate converter class [com.hikvision.idatafusion.dvisualmodel.core.config.converter.MaskedConverter] as a composite converter for keyword [masked] ch.qos.logback.core.util.IncompatibleClassException\nERROR in ch.qos.logback.core.pattern.parser.Compiler@1768729f - Failed to create converter for [%masked] keyword\n\tat org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:179)\n\tat org.springframework.boot.logging.logback.LogbackLoggingSystem.reinitialize(LogbackLoggingSystem.java:232)\n\tat org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:73)\n\tat org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)\n\tat org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:132)\n\tat org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:313)\n\tat org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:282)\n\tat org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)\n\tat org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:216)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)\n\tat org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:82)\n\tat org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:63)\n\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1541)\n\tat org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)\n\tat org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111)\n\tat org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:62)\n\tat org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:379)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:337)\n\tat com.hikvision.idatafusion.dvisualmodel.Application.main(Application.java:50) "根据日志,Logback无法实例化`com.hikvision.idatafusion.dvisualmodel.core.config.converter.MaskedConverter`类作为`masked`关键字的转换器。这可能是由于`MaskedConverter`类与Logback的版本不兼容导致的。\n\n要解决这个问题,可以尝试以下步骤:\n\n1. 确保`MaskedConverter`类的版本与Logback的版本兼容。您可以查看`MaskedConverter`类的文档或与开发人员联系以获取更多信息。\n\n2. 检查Logback的配置文件,确保配置正确。可能需要更新配置文件以正确加载`MaskedConverter`类。\n\n3. 如果您有其他的自定义转换器类或配置,也要确保它们与Logback的版本兼容。\n\n4. 如果存在其他日志库或框架,尝试禁用它们,以查看是否与Logback发生冲突。\n\n5. 尝试升级Logback的版本,以解决与`MaskedConverter`类的兼容性问题。\n\n如果以上步骤都不起作用,您可能需要与开发人员或日志库的支持团队联系,以获取更多帮助和指导。\n

Logback 无法初始化:MaskedConverter 兼容性错误

原文地址: https://www.cveoy.top/t/topic/p2re 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录