org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Trying to get search statistics I found a problem if query.filter.spiderIp = true. If this param is false stats are printed ok so it seems there is no problem in dspace-solr configuration. Nevertheless when this param is true solr complains about the url/query requested. (I minimized the spider list to 4 elements to reduce the description of this issue, the full list gives the same error) in dspace log the url sent is shown as 2015-04-09 14:13:02,944 DEBUG org.apache.http.headers @ >> GET /solr/statistics/select?rows=0&q=type%3A+2+AND++id%3A1881&facet.minco unt=1&shards=MYSERVER%2Fsolr%2Fstatistics&facet.field=city&facet=true&facet.limit=10&fq=+AND++NOT%28ip%3A+198.3.103%2 9+NOT%28ip%3A+199.172.148.105%29+NOT%28ip%3A+204.62.245%29+NOT%28ip%3A+199.172.157.28%29&fq=-isBot%3Atrue&fq=-%28bundleName%3A%5B*+TO+*%5D-bundleName%3AORIGINAL%29&fq=-%28statistics_type%3A%5B*+TO+*%5D+AND+-statistics_type%3Aview%29&wt=javabin&version=2 HTTP/1.1 In solr log I get Cannot parse ' AND NOT(ip: 198.3.103) NOT(ip: 199.172.148.105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)': Encountered " <AND> "AND "" at line 1, column 1. Was expecting one of: <NOT> ... "+" ... "-" ... <BAREOPER> ... "(" ... "*" ... Full text 2015-04-09 14:13:02,949 DEBUG org.apache.http.headers @ << HTTP/1.1 400 Petición incorrecta 2015-04-09 14:13:02,949 DEBUG org.apache.http.headers @ << Server: Apache-Coyote/1.1 2015-04-09 14:13:02,949 DEBUG org.apache.http.headers @ << Cache-Control: no-cache, no-store 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Pragma: no-cache 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Expires: Sat, 01 Jan 2000 01:00:00 GMT 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Last-Modified: Thu, 09 Apr 2015 12:13:02 GMT 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << ETag: "14c9e190863" 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Content-Type: application/octet-stream 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Content-Length: 928 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Date: Thu, 09 Apr 2015 12:13:02 GMT 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Connection: close 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << "[0x2][0xa2][0xe0].responseHeader[0xa3][0xe0]&statusP[0x19][0xe0]%QTimeA[0x e0]&params[0xaa][0xe0]%facet$true[0xe0]&shards?[0x6]MYSERVER/solr/statistics[0xe0].facet.mincount!1[0xe0]!q4type: 2 AND id:1881[0xe0]+facet.limit"10[0xe0]+facet.field$city[0xe0]"wt'javabin[0xe0]"fq[0x84]?> AND NOT(ip: 198.3.103) NOT(ip: 199.172.148. 105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)+-isBot:true?[0xb]-(bundleName:[* TO *]-bundleName:ORIGINAL)?[0x16]-(statistics_type :[* TO *] AND -statistics_type:view)[0xe0]'version!2[0xe0]$rows!0[0xe0]%error[0xa2][0xe0]#msg?[0xc2][0x3]org.apache.solr.search.Synt axError: Cannot parse ' AND NOT(ip: 198.3.103) NOT(ip: 199.172.148.105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)': Encountered " <AND> "AND "" at line 1, column 1.[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << "Was expecting one of:[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " <NOT> ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "+" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "-" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " <BAREOPER> ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "(" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "*" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " <QUOTED> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <TERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <PREFIXTERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <WILDTERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <REGEXPTERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " "[" ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " "{" ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <LPARAMS> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <NUMBER> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <TERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " "*" ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " [0xe0]$codeP[0x19]" 2015-04-09 14:13:02,953 DEBUG org.apache.http.impl.conn.DefaultClientConnection @ Connection 0.0.0.0:36689<->172.18.96.103:8888 closed 2015-04-09 14:13:02,953 DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager @ Connection released: [id: 4][route: {}->http://MYSERVER][total kept alive: 0; route allocated: 0 of 32; total allocated: 0 of 128] 2015-04-09 14:13:02,953 ERROR org.dspace.app.webui.servlet.DisplayStatisticsServlet @ Error occurred while creating statistics for dso with ID: 1881 and type 2 and handle: 2454/1858 org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: org.apache.solr.search.SyntaxError: Cannot parse ' AND NOT(ip : 198.3.103) NOT(ip: 199.172.148.105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)': Encountered " <AND> "AND "" at line 1, column 1. Was expecting one of: <NOT> ... "+" ... "-" ... <BAREOPER> ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... <REGEXPTERM> ... "[" ... "{" ... <LPARAMS> ... <NUMBER> ... <TERM> ... "*" ... at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
    via by Carlos Alonso,
  • Trying to get search statistics I found a problem if query.filter.spiderIp = true. If this param is false stats are printed ok so it seems there is no problem in dspace-solr configuration. Nevertheless when this param is true solr complains about the url/query requested. (I minimized the spider list to 4 elements to reduce the description of this issue, the full list gives the same error) in dspace log the url sent is shown as 2015-04-09 14:13:02,944 DEBUG org.apache.http.headers @ >> GET /solr/statistics/select?rows=0&q=type%3A+2+AND++id%3A1881&facet.minco unt=1&shards=MYSERVER%2Fsolr%2Fstatistics&facet.field=city&facet=true&facet.limit=10&fq=+AND++NOT%28ip%3A+198.3.103%2 9+NOT%28ip%3A+199.172.148.105%29+NOT%28ip%3A+204.62.245%29+NOT%28ip%3A+199.172.157.28%29&fq=-isBot%3Atrue&fq=-%28bundleName%3A%5B*+TO+*%5D-bundleName%3AORIGINAL%29&fq=-%28statistics_type%3A%5B*+TO+*%5D+AND+-statistics_type%3Aview%29&wt=javabin&version=2 HTTP/1.1 In solr log I get Cannot parse ' AND NOT(ip: 198.3.103) NOT(ip: 199.172.148.105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)': Encountered " <AND> "AND "" at line 1, column 1. Was expecting one of: <NOT> ... "+" ... "-" ... <BAREOPER> ... "(" ... "*" ... Full text 2015-04-09 14:13:02,949 DEBUG org.apache.http.headers @ << HTTP/1.1 400 Petición incorrecta 2015-04-09 14:13:02,949 DEBUG org.apache.http.headers @ << Server: Apache-Coyote/1.1 2015-04-09 14:13:02,949 DEBUG org.apache.http.headers @ << Cache-Control: no-cache, no-store 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Pragma: no-cache 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Expires: Sat, 01 Jan 2000 01:00:00 GMT 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Last-Modified: Thu, 09 Apr 2015 12:13:02 GMT 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << ETag: "14c9e190863" 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Content-Type: application/octet-stream 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Content-Length: 928 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Date: Thu, 09 Apr 2015 12:13:02 GMT 2015-04-09 14:13:02,950 DEBUG org.apache.http.headers @ << Connection: close 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << "[0x2][0xa2][0xe0].responseHeader[0xa3][0xe0]&statusP[0x19][0xe0]%QTimeA[0x e0]&params[0xaa][0xe0]%facet$true[0xe0]&shards?[0x6]MYSERVER/solr/statistics[0xe0].facet.mincount!1[0xe0]!q4type: 2 AND id:1881[0xe0]+facet.limit"10[0xe0]+facet.field$city[0xe0]"wt'javabin[0xe0]"fq[0x84]?> AND NOT(ip: 198.3.103) NOT(ip: 199.172.148. 105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)+-isBot:true?[0xb]-(bundleName:[* TO *]-bundleName:ORIGINAL)?[0x16]-(statistics_type :[* TO *] AND -statistics_type:view)[0xe0]'version!2[0xe0]$rows!0[0xe0]%error[0xa2][0xe0]#msg?[0xc2][0x3]org.apache.solr.search.Synt axError: Cannot parse ' AND NOT(ip: 198.3.103) NOT(ip: 199.172.148.105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)': Encountered " <AND> "AND "" at line 1, column 1.[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << "Was expecting one of:[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " <NOT> ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "+" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "-" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " <BAREOPER> ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "(" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " "*" ...[\n]" 2015-04-09 14:13:02,951 DEBUG org.apache.http.wire @ << " <QUOTED> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <TERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <PREFIXTERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <WILDTERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <REGEXPTERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " "[" ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " "{" ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <LPARAMS> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <NUMBER> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " <TERM> ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " "*" ...[\n]" 2015-04-09 14:13:02,952 DEBUG org.apache.http.wire @ << " [0xe0]$codeP[0x19]" 2015-04-09 14:13:02,953 DEBUG org.apache.http.impl.conn.DefaultClientConnection @ Connection 0.0.0.0:36689<->172.18.96.103:8888 closed 2015-04-09 14:13:02,953 DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager @ Connection released: [id: 4][route: {}->http://MYSERVER][total kept alive: 0; route allocated: 0 of 32; total allocated: 0 of 128] 2015-04-09 14:13:02,953 ERROR org.dspace.app.webui.servlet.DisplayStatisticsServlet @ Error occurred while creating statistics for dso with ID: 1881 and type 2 and handle: 2454/1858 org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: org.apache.solr.search.SyntaxError: Cannot parse ' AND NOT(ip : 198.3.103) NOT(ip: 199.172.148.105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)': Encountered " <AND> "AND "" at line 1, column 1. Was expecting one of: <NOT> ... "+" ... "-" ... <BAREOPER> ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... <REGEXPTERM> ... "[" ... "{" ... <LPARAMS> ... <NUMBER> ... <TERM> ... "*" ... at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
    via by Carlos Alonso,
  • Liferay 6.2 + Solr 4 Error
    via Stack Overflow by Emanuele Righetto
    ,
    • org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: org.apache.solr.search.SyntaxError: Cannot parse ' AND NOT(ip : 198.3.103) NOT(ip: 199.172.148.105) NOT(ip: 204.62.245) NOT(ip: 199.172.157.28)': Encountered " <AND> "AND "" at line 1, column 1. Was expecting one of: <NOT> ... "+" ... "-" ... <BAREOPER> ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... <REGEXPTERM> ... "[" ... "{" ... <LPARAMS> ... <NUMBER> ... <TERM> ... "*" ... at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    3 more bugmates