java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature

Terracotta | hubbardr | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ehcache-probe includes org.slf4j

    Terracotta | 7 years ago | hubbardr
    java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature

      at org.slf4j.LoggerFactory.getILoggerFactory()
    2. SLF4J API Module
      LoggerFactory.getILoggerFactory
      1. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:274)
      1 frame