Uploaded image for project: 'JBoss Logging'
  1. JBoss Logging
  2. JBLOGGING-70

JBoss LogManager detection is still incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.1.GA, 3.1.0.Beta1
    • 3.0.0.GA
    • None
    • None

      The detection in LoggerProviders is insufficient because the failure can simply be deferred, resulting in exceptions like this:

      java.lang.NoSuchMethodError: org.jboss.logmanager.LogContext.getAttachment(Ljava/lang/String;Lorg/jboss/logmanager/Logger$AttachmentKey;)Ljava/lang/Object;
      	at org.jboss.logging.JBossLogManagerProvider.doGetLogger(JBossLogManagerProvider.java:52)
      	at org.jboss.logging.JBossLogManagerProvider.getLogger(JBossLogManagerProvider.java:47)
      	at org.jboss.logging.Logger.getLogger(Logger.java:2164)
      	at org.jboss.logging.Logger.getMessageLogger(Logger.java:2263)
      	at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215)
      	at org.infinispan.util.logging.LogFactory.getLog(LogFactory.java:41)
              [...]
      

              dlloyd@redhat.com David Lloyd
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: