java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List;

Sakai JIRA | Terry Brady | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [DS-2212] Statistics Shard not working, version conflict - DuraSpace JIRA

    duraspace.org | 1 year ago
    java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List;
  2. 0

    When attempting to run the command, it creates an initial solr core and then fails. The process cannot be restarted due to the existence of that solr core. Based on my experience, I would not recommend this command to folks with older records in their statistics core. Error (DSpace 4.2) ------------------------ Moving: 317727 into core statistics-2010 Exception: Document is missing mandatory uniqueKey field: uid org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document is missing mandatory uniqueKey field: uid at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1345) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Error (DSpace 3.x) --------------------- [dspace@dspace-aux-1 ~]$ /opt/dspace/bin/dspace stats-util -s INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org.dspace:name=0f8afeda-81b7-4bd1-80d3-d73a7f686f32,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null INFO [main] (ConfigurationManager.java:1217) - Loading from classloader: file:/opt/dspace/config/dspace.cfg INFO [main] (ConfigurationManager.java:1217) - Using dspace provided log configuration (log.init.config) INFO [main] (ConfigurationManager.java:1217) - Loading: /opt/dspace/config/log4j.properties Exception: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1184) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) Error when attempting to re-run the command ---------------------------------------------------------- Exception: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.apache.solr.client.solrj.request.CoreAdminRequest.process(CoreAdminRequest.java:462) at org.dspace.statistics.SolrLogger.createCore(SolrLogger.java:1370) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1318) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

    Sakai JIRA | 2 years ago | Terry Brady
    java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List;
  3. 0

    When attempting to run the command, it creates an initial solr core and then fails. The process cannot be restarted due to the existence of that solr core. Based on my experience, I would not recommend this command to folks with older records in their statistics core. Error (DSpace 4.2) ------------------------ Moving: 317727 into core statistics-2010 Exception: Document is missing mandatory uniqueKey field: uid org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document is missing mandatory uniqueKey field: uid at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1345) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Error (DSpace 3.x) --------------------- [dspace@dspace-aux-1 ~]$ /opt/dspace/bin/dspace stats-util -s INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org.dspace:name=0f8afeda-81b7-4bd1-80d3-d73a7f686f32,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null INFO [main] (ConfigurationManager.java:1217) - Loading from classloader: file:/opt/dspace/config/dspace.cfg INFO [main] (ConfigurationManager.java:1217) - Using dspace provided log configuration (log.init.config) INFO [main] (ConfigurationManager.java:1217) - Loading: /opt/dspace/config/log4j.properties Exception: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1184) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) Error when attempting to re-run the command ---------------------------------------------------------- Exception: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.apache.solr.client.solrj.request.CoreAdminRequest.process(CoreAdminRequest.java:462) at org.dspace.statistics.SolrLogger.createCore(SolrLogger.java:1370) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1318) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

    Sakai JIRA | 3 years ago | Terry Brady
    java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When attempting to run the command, it creates an initial solr core and then fails. The process cannot be restarted due to the existence of that solr core. Based on my experience, I would not recommend this command to folks with older records in their statistics core. Error (DSpace 4.2) ------------------------ Moving: 317727 into core statistics-2010 Exception: Document is missing mandatory uniqueKey field: uid org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document is missing mandatory uniqueKey field: uid at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1345) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Error (DSpace 3.x) --------------------- [dspace@dspace-aux-1 ~]$ /opt/dspace/bin/dspace stats-util -s INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org.dspace:name=0f8afeda-81b7-4bd1-80d3-d73a7f686f32,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null INFO [main] (ConfigurationManager.java:1217) - Loading from classloader: file:/opt/dspace/config/dspace.cfg INFO [main] (ConfigurationManager.java:1217) - Using dspace provided log configuration (log.init.config) INFO [main] (ConfigurationManager.java:1217) - Loading: /opt/dspace/config/log4j.properties Exception: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1184) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) Error when attempting to re-run the command ---------------------------------------------------------- Exception: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.apache.solr.client.solrj.request.CoreAdminRequest.process(CoreAdminRequest.java:462) at org.dspace.statistics.SolrLogger.createCore(SolrLogger.java:1370) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1318) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

    Sakai JIRA | 2 years ago | Terry Brady
    java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List;
  6. 0

    When attempting to run the command, it creates an initial solr core and then fails. The process cannot be restarted due to the existence of that solr core. Based on my experience, I would not recommend this command to folks with older records in their statistics core. Error (DSpace 4.2) ------------------------ Moving: 317727 into core statistics-2010 Exception: Document is missing mandatory uniqueKey field: uid org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document is missing mandatory uniqueKey field: uid at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1345) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Error (DSpace 3.x) --------------------- [dspace@dspace-aux-1 ~]$ /opt/dspace/bin/dspace stats-util -s INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org.dspace:name=0f8afeda-81b7-4bd1-80d3-d73a7f686f32,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null INFO [main] (ConfigurationManager.java:1217) - Loading from classloader: file:/opt/dspace/config/dspace.cfg INFO [main] (ConfigurationManager.java:1217) - Using dspace provided log configuration (log.init.config) INFO [main] (ConfigurationManager.java:1217) - Loading: /opt/dspace/config/log4j.properties Exception: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List; at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1184) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) Error when attempting to re-run the command ---------------------------------------------------------- Exception: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error CREATEing SolrCore 'statistics-2010': Core with name 'statistics-2010' already exists. at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:424) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.apache.solr.client.solrj.request.CoreAdminRequest.process(CoreAdminRequest.java:462) at org.dspace.statistics.SolrLogger.createCore(SolrLogger.java:1370) at org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1318) at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

    Sakai JIRA | 3 years ago | Terry Brady
    java.lang.NoSuchMethodError: org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.solr.client.solrj.response.QueryResponse.getFacetRanges()Ljava/util/List;

      at org.dspace.statistics.SolrLogger.shardSolrIndex()
    2. DSpace Kernel :: API and Implementation
      StatisticsClient.main
      1. org.dspace.statistics.SolrLogger.shardSolrIndex(SolrLogger.java:1184)
      2. org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:101)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
      1 frame