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> ... "*" ...

Sakai JIRA | Carlos Alonso | 2 years ago
  1. 0

    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)

    Sakai JIRA | 2 years ago | Carlos Alonso
    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> ... "*" ...
  2. 0

    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)

    Sakai JIRA | 2 years ago | Carlos Alonso
    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> ... "*" ...
  3. 0

    Liferay 6.2 + Solr 4 Error

    Stack Overflow | 1 year ago | Emanuele Righetto
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Invalid fieldsStream maxPointer (file truncated?): maxPointer=536, length=559
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Normalizing SOLR records for sharding: _version_ issues

    Stack Overflow | 2 years ago
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: version conflict for e8b7ba64-8c1e-4963-8bcb-f36b33216d69 expected=1484794833191043072 actual=-1
  6. 0

    Solr : Server at http://localhost:8080//solr returned non ok status:500, message:Internal Server Error

    Stack Overflow | 3 years ago | Rohit Deshpande
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Server at `http://localhost:8080//solr` returned non ok status:500, message:Internal Server Error

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Apache Solr Solrj
      HttpSolrServer.request
      1. org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552)
      2. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
      3. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
      3 frames