1 Reply Latest reply on Oct 13, 2009 7:44 PM by noelo

    Logging exception thrown when using Querying

    noelo

      Hi,
      I'm just taking a look at the Inifinispan query functionality but when I use it I get an exception thrown in the slf4j logging framework ?

      Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory
       at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
       at org.hibernate.search.util.LoggerFactory.make(LoggerFactory.java:31)
       at org.hibernate.search.Version.<clinit>(Version.java:17)
       at org.hibernate.search.impl.SearchFactoryImpl.<clinit>(SearchFactoryImpl.java:63)
       at org.infinispan.query.backend.QueryHelper.<init>(QueryHelper.java:87)
      



      The query code is as follows :
       cache = new DefaultCacheManager(resource.openStream()).getCache("distributedCache");
       Properties p = new Properties();
       p.setProperty("hibernate.search.default.directory_provider", "org.hibernate.search.store.RAMDirectoryProvider");
       qh = new QueryHelper(cache, p, VirusDataRec.class);
      


      The exception is being thrown on the construction of the QueryHelper.

      I'm using Infinispan Beta 2 and all the associated libraries that come with it.

      Any ideas or am I missing something basic ?

      Thanks
      Noel