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

Solutions on the web2107

  • via Terracotta by hubbardr, 1 year ago
    , 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
  • via Coderanch by Trilochan Bharadwaj, 6 months ago
    /LoggerFactory, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
  • via jboss.org by Unknown author, 10 months ago
    , org/slf4j/LoggerFactory, and the class loader (instance of       org/jboss/classloader/spi/base/BaseClassLoader) for resolved class,       org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type       org/slf4j/ILoggerFactory used in the signature
  • Stack trace

    • 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(LoggerFactory.java:274)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 year ago
    Unknown user
    Once, 1 year ago