Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1177

java.lang.IllegalArgumentException attempting to create Logger for HotRod Client when building Infinispan from sources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 5.0.0.CR4
    • Core
    • None
    • Hide

      This single line HotRod Client app fails (worked with 4.2.1.FINAL):

      final CacheContainer cacheContainer = new RemoteCacheManager("localhost", 11222);

      with:

      Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.infinispan.client.hotrod.logging.Log (implementation not found)
      at org.jboss.logging.Logger.getMessageLogger(Logger.java:2254)
      at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215)
      at org.infinispan.util.logging.LogFactory.getLog(LogFactory.java:55)
      at org.infinispan.client.hotrod.RemoteCacheManager.<clinit>(RemoteCacheManager.java:148)
      ... 1 more

      Show
      This single line HotRod Client app fails (worked with 4.2.1.FINAL): final CacheContainer cacheContainer = new RemoteCacheManager("localhost", 11222); with: Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.infinispan.client.hotrod.logging.Log (implementation not found) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2254) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215) at org.infinispan.util.logging.LogFactory.getLog(LogFactory.java:55) at org.infinispan.client.hotrod.RemoteCacheManager.<clinit>(RemoteCacheManager.java:148) ... 1 more
    • Workaround Exists
    • Hide

      Use Maven 3.x

      Show
      Use Maven 3.x

      Changes to 5.0.0 (CR4, in my case) related to logging break my app. I use slf4j for logging and route commons-logging, log4j, and java.util.logging to slf4j to route to Logback.

            rh-ee-galder Galder ZamarreƱo
            jramsdale Jeff Ramsdale (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: