如何修复/摆脱这些 Eclipse 2019.09 错误?

时间:2021-02-02 15:19:55

标签: java eclipse eclipse-cdt slf4j

我在 SLES 15 机器上使用 2019-09 的 Eclipse CDT 发行版(v4.13,构建 ID:I20190916-1045)(不要问...)

当我启动 Eclipse 时,我在控制台上看到以下文本:

org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: /home/lh156516/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.13.0.20190716-1624.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://470.fwk441444733:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://470.fwk441444733:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

我的问题:

  1. 为什么“在状态位置初始化之前激活了 logback 配置包”?
  2. 如何才能让“捆绑包”仅在应该激活时激活?
  3. 为什么 Java 类路径的 Simple Logging Facade 包含多个 SLF4J 绑定?
  4. 我可以,并且应该更改类路径,使其只包含一个“SLF4J 绑定”?

注意:我不是一个“Java 人”,也不熟悉 Eclipse 平台的内部工作原理;把我当成一个普通的 Eclipse 用户。

1 个答案:

答案 0 :(得分:1)

这是一个错误,自 2016 年以来就已知:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=506676

相关问题