Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8180

Missing logging dependency in solrj-lib for SolrJ

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0
    • 5.4
    • SolrJ
    • None

    Description

      When using DBVisualizer, SquirrelSQL, or Java JDBC with the Solr JDBC driver, an additional logging dependency must be added otherwise the following exception occurs:

      org.apache.solr.common.SolrException: Unable to create HttpClient instance. 
      	at org.apache.solr.client.solrj.impl.HttpClientUtil$HttpClientFactory.createHttpClient(HttpClientUtil.java:393)
      	at org.apache.solr.client.solrj.impl.HttpClientUtil.createClient(HttpClientUtil.java:124)
      	at org.apache.solr.client.solrj.impl.CloudSolrClient.<init>(CloudSolrClient.java:196)
      	at org.apache.solr.client.solrj.io.SolrClientCache.getCloudSolrClient(SolrClientCache.java:47)
      	at org.apache.solr.client.solrj.io.sql.ConnectionImpl.<init>(ConnectionImpl.java:51)
      	at org.apache.solr.client.solrj.io.sql.DriverImpl.connect(DriverImpl.java:108)
      	at org.apache.solr.client.solrj.io.sql.DriverImpl.connect(DriverImpl.java:76)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at com.onseven.dbvis.h.B.D.ᅣチ(Z:1548)
      	at com.onseven.dbvis.h.B.F$A.call(Z:1369)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      	at org.apache.solr.client.solrj.impl.HttpClientUtil$HttpClientFactory.createHttpClient(HttpClientUtil.java:391)
      	... 16 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
      	at org.apache.http.impl.client.CloseableHttpClient.<init>(CloseableHttpClient.java:58)
      	at org.apache.http.impl.client.AbstractHttpClient.<init>(AbstractHttpClient.java:287)
      	at org.apache.http.impl.client.DefaultHttpClient.<init>(DefaultHttpClient.java:128)
      	at org.apache.http.impl.client.SystemDefaultHttpClient.<init>(SystemDefaultHttpClient.java:116)
      	... 21 more
      

      Attachments

        1. SOLR_8180_jcl_over_slf4j.patch
          18 kB
          David Smiley
        2. SOLR_8180_jcl_over_slf4j.patch
          19 kB
          David Smiley
        3. SOLR-8180.patch
          1 kB
          Kevin Risden

        Issue Links

          Activity

            People

              dsmiley David Smiley
              krisden Kevin Risden
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: