Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8659 Improve Solr JDBC Driver to support more SQL Clients
  3. SOLR-8828

SolrJ JDBC - ClassNotFoundException: com.google.common.base.MoreObjects

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None

      Description

      I clicked on rows in the IntelliJ results box and received the following error:

      java.sql.SQLException: java.io.IOException: --> http://default.attlocal.net:8983/solr/test_shard1_replica1/: An exception has occurred on the server, refer to server log for details.
                  java.io.IOException: --> http://default.attlocal.net:8983/solr/test_shard1_replica1/: An exception has occurred on the server, refer to server log for details.
      

      The resulting server error is:

      246341930 ERROR (qtp1173643169-67) [c:test s:shard1 r:core_node1 x:test_shard1_replica1] o.a.s.s.HttpSolrCall null:java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/google/common/base/MoreObjects
      	at org.apache.solr.servlet.HttpSolrCall.sendError(HttpSolrCall.java:602)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:472)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:229)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:184)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
      	at org.eclipse.jetty.server.Server.handle(Server.java:517)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
      	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
      	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
      	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoClassDefFoundError: com/google/common/base/MoreObjects
      	at com.facebook.presto.sql.tree.TableSubquery.toString(TableSubquery.java:42)
      	at java.lang.String.valueOf(String.java:2994)
      	at java.lang.StringBuilder.append(StringBuilder.java:131)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitNode(SQLHandler.java:949)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitNode(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.AstVisitor.visitRelation(AstVisitor.java:177)
      	at com.facebook.presto.sql.tree.AstVisitor.visitQueryBody(AstVisitor.java:182)
      	at com.facebook.presto.sql.tree.AstVisitor.visitTableSubquery(AstVisitor.java:372)
      	at com.facebook.presto.sql.tree.TableSubquery.accept(TableSubquery.java:36)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitAliasedRelation(SQLHandler.java:1131)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitAliasedRelation(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.AliasedRelation.accept(AliasedRelation.java:56)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuerySpecification(SQLHandler.java:1013)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuerySpecification(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.QuerySpecification.accept(QuerySpecification.java:98)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.processRelation(SQLHandler.java:1149)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuery(SQLHandler.java:995)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuery(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.Query.accept(Query.java:80)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLTupleStreamParser.parse(SQLHandler.java:163)
      	at org.apache.solr.handler.SQLHandler.handleRequestBody(SQLHandler.java:118)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)
      	at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:649)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:457)
      	... 26 more
      Caused by: java.lang.ClassNotFoundException: com.google.common.base.MoreObjects
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:487)
      	at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:428)
      	... 55 more
      
      246341932 WARN  (qtp1173643169-67) [c:test s:shard1 r:core_node1 x:test_shard1_replica1] o.e.j.s.ServletHandler Error for /solr/test_shard1_replica1/sql
      java.lang.NoClassDefFoundError: com/google/common/base/MoreObjects
      	at com.facebook.presto.sql.tree.TableSubquery.toString(TableSubquery.java:42)
      	at java.lang.String.valueOf(String.java:2994)
      	at java.lang.StringBuilder.append(StringBuilder.java:131)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitNode(SQLHandler.java:949)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitNode(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.AstVisitor.visitRelation(AstVisitor.java:177)
      	at com.facebook.presto.sql.tree.AstVisitor.visitQueryBody(AstVisitor.java:182)
      	at com.facebook.presto.sql.tree.AstVisitor.visitTableSubquery(AstVisitor.java:372)
      	at com.facebook.presto.sql.tree.TableSubquery.accept(TableSubquery.java:36)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitAliasedRelation(SQLHandler.java:1131)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitAliasedRelation(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.AliasedRelation.accept(AliasedRelation.java:56)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuerySpecification(SQLHandler.java:1013)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuerySpecification(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.QuerySpecification.accept(QuerySpecification.java:98)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.processRelation(SQLHandler.java:1149)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuery(SQLHandler.java:995)
      	at org.apache.solr.handler.SQLHandler$SQLVisitor.visitQuery(SQLHandler.java:929)
      	at com.facebook.presto.sql.tree.Query.accept(Query.java:80)
      	at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
      	at org.apache.solr.handler.SQLHandler$SQLTupleStreamParser.parse(SQLHandler.java:163)
      	at org.apache.solr.handler.SQLHandler.handleRequestBody(SQLHandler.java:118)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)
      	at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:649)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:457)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:229)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:184)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
      	at org.eclipse.jetty.server.Server.handle(Server.java:517)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
      	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
      	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
      	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: com.google.common.base.MoreObjects
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:487)
      	at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:428)
      	... 55 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                krisden Kevin Risden
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: