[jira] [Updated] (SOLR-13204) ArrayIndexOutOfBoundsException in org/apache/solr/search/grouping/endresulttransformer/MainEndResultTransformer.java[36]
[ https://issues.apache.org/jira/browse/SOLR-13204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13204: - Labels: diffblue newdev (was: diffblue) > ArrayIndexOutOfBoundsException in > org/apache/solr/search/grouping/endresulttransformer/MainEndResultTransformer.java[36] > > > Key: SOLR-13204 > URL: https://issues.apache.org/jira/browse/SOLR-13204 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection and reproducing the bug > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > curl -v "URL_BUG" > {noformat} > Please check the issue description below to find the "URL_BUG" that will > allow you to reproduce the issue reported. >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > solr/films/select?group=true=true=true > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-18) [ x:films] o.a.s.s.HttpSolrCall > null:java.lang.ArrayIndexOutOfBoundsException: 0 > at > org.apache.solr.search.grouping.endresulttransformer.MainEndResultTransformer.transform(MainEndResultTransformer.java:36) > at > org.apache.solr.handler.component.QueryComponent.groupedFinishStage(QueryComponent.java:638) > at > org.apache.solr.handler.component.QueryComponent.finishStage(QueryComponent.java:601) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:432) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > [...] > {noformat} > There is accessed the first element of an empty array of strings, stored in > the member 'org.apache.solr.search.grouping.GroupingSpecification.fields'. > There is an attept to put some strings to the array at > org/apache/solr/handler/component/QueryComponent.java[283]; however, the > string "group.field" is not present in params of the processed > org.apache.solr.request.SolrQueryRequest instance. > Look into section 'Environment' above to see installation step of Solr and > films collection. > We found this issue and ~70 more like this using [Diffblue Microservices > Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more > information on this [fuzz testing > campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-13182) NullPointerException due to an invariant violation in org/apache/lucene/search/BooleanClause.java[60]
[ https://issues.apache.org/jira/browse/SOLR-13182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13182: - Labels: diffblue newdev (was: ) > NullPointerException due to an invariant violation in > org/apache/lucene/search/BooleanClause.java[60] > - > > Key: SOLR-13182 > URL: https://issues.apache.org/jira/browse/SOLR-13182 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > {noformat} >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > Attachments: home.zip > > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?q={!child%20q={} > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-14) [ x:films] o.a.s.h.RequestHandlerBase > java.lang.NullPointerException: Query must not be null > at java.util.Objects.requireNonNull(Objects.java:228) > at org.apache.lucene.search.BooleanClause.(BooleanClause.java:60) > at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:127) > at > org.apache.solr.search.join.BlockJoinChildQParser.noClausesQuery(BlockJoinChildQParser.java:50) > at org.apache.solr.search.join.FiltersQParser.parse(FiltersQParser.java:60) > at org.apache.solr.search.QParser.getQuery(QParser.java:173) > at > org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:158) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:272) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > [...] > {noformat} > In org/apache/solr/search/join/BlockJoinChildQParser.java[47] there is > computed query variable 'parents', which receives value null from call to > 'parseParentFilter()'. The null value is then passed to > 'org.apache.lucene.search.BooleanQuery.Builder.add' method at line 50. That > method calls the constructor where 'Objects.requireNonNull' failes > (the exception is thrown). > The call to 'parseParentFilter()' evaluates to null, because: > # In org/apache/solr/search/join/BlockJoinParentQParser.java[59] null is > set to string 'filter' (becase "which" is not in 'localParams' map). > # The parser 'parentParser' obtained in the next line has member 'qstr' set > to null, because the 'filter' passed to 'subQuery' is passed as the first > argument to 'org.apache.solr.search.QParserPlugin.createParser'. > # Subsequnt call to 'org.apache.solr.search.QParser.getQuery' on the > 'parentParser' at >
[jira] [Updated] (SOLR-13197) NullPointerException in org/apache/solr/handler/component/StatsField.java[251]
[ https://issues.apache.org/jira/browse/SOLR-13197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13197: - Labels: diffblue newdev (was: ) > NullPointerException in org/apache/solr/handler/component/StatsField.java[251] > -- > > Key: SOLR-13197 > URL: https://issues.apache.org/jira/browse/SOLR-13197 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > {noformat} >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > Attachments: home.zip > > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?stats=true={!cardinalit} > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-17) [ x:films] o.a.s.s.HttpSolrCall > null:java.lang.NullPointerException > at > org.apache.solr.handler.component.StatsField.(StatsField.java:251) > at > org.apache.solr.handler.component.StatsInfo.(StatsComponent.java:194) > at > org.apache.solr.handler.component.StatsComponent.prepare(StatsComponent.java:47) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:272) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > [...] > {noformat} > There is called method 'createParser' on local variable 'qplug' which is set > to null on the previous line (i.e. 250). The value null is set to the local > variable 'qplug', because of failure in finding the sting "cardinalit" in the > field 'registry' of the class org.apache.solr.core.PluginBag (at line > org/apache/solr/core/PluginBag.java[167]). > We found this bug using [Diffblue Microservices > Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more > information on this [fuzz testing > campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-13188) NullPointerException in org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667)
[ https://issues.apache.org/jira/browse/SOLR-13188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13188: - Labels: diffblue newdev (was: ) > NullPointerException in > org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) > -- > > Key: SOLR-13188 > URL: https://issues.apache.org/jira/browse/SOLR-13188 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > {noformat} >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > Attachments: home.zip > > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?q={!parent%20fq={!collapse%20field=id}} > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-21) [ x:films] o.a.s.s.HttpSolrCall > null:java.lang.NullPointerException > at > org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) > at > org.apache.lucene.search.join.QueryBitSetProducer.getBitSet(QueryBitSetProducer.java:73) > at > org.apache.solr.search.join.BlockJoinParentQParser$BitDocIdSetFilterWrapper.getDocIdSet(BlockJoinParentQParser.java:135) > at > org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.scorer(SolrConstantScoreQuery.java:99) > at org.apache.lucene.search.Weight.bulkScorer(Weight.java:177) > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:649) > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) > at > org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) > at > org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1604) > at > org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1420) > at > org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:567) > at > org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1434) > at > org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:373) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > [...] > {noformat} > In org/apache/lucene/search/join/QueryBitSetProducer.java[73] there is called > method 'org.apache.lucene.search.IndexSearcher.rewrite' with null value > stored > in the member 'query'. Inside the called method there is method
[jira] [Updated] (SOLR-13194) NullPointerException in org/apache/solr/handler/component/ExpandComponent.java[240]
[ https://issues.apache.org/jira/browse/SOLR-13194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13194: - Labels: diffblue newdev (was: ) > NullPointerException in > org/apache/solr/handler/component/ExpandComponent.java[240] > --- > > Key: SOLR-13194 > URL: https://issues.apache.org/jira/browse/SOLR-13194 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > {noformat} >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > Attachments: home.zip > > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?expand=true={!collapse%20field=id}=true=genre > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-38) [ x:films] o.a.s.s.HttpSolrCall > null:java.lang.NullPointerException > at > org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:240) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > {noformat} > There is called method 'size' on the variable 'docList', which is null. The > null value comes from parameter 'rb' (an instance of class > 'org.apache.solr.handler.component.ResponseBuilder'), where > 'rb.results.docList' is assigned to the mentioned local variable 'docList'. > We found this bug using [Diffblue Microservices > Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more > information on this [fuzz testing > campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-13179) NullPointerException in org/apache/lucene/queries/function/FunctionScoreQuery.java [109]
[ https://issues.apache.org/jira/browse/SOLR-13179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13179: - Labels: diffblue newdev (was: ) > NullPointerException in > org/apache/lucene/queries/function/FunctionScoreQuery.java [109] > > > Key: SOLR-13179 > URL: https://issues.apache.org/jira/browse/SOLR-13179 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > {noformat} >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > Attachments: home.zip > > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?facet.query=={!frange%20l=10%20u=100}boost({!v=+},3) > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-23) [ x:films] o.a.s.s.HttpSolrCall > null:java.lang.NullPointerException > at > org.apache.lucene.queries.function.FunctionScoreQuery.rewrite(FunctionScoreQuery.java:109) > at > org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) > at > org.apache.lucene.queries.function.valuesource.QueryValueSource.createWeight(QueryValueSource.java:75) > at > org.apache.solr.search.function.ValueSourceRangeFilter.createWeight(ValueSourceRangeFilter.java:105) > at > org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.(SolrConstantScoreQuery.java:94) > at > org.apache.solr.search.SolrConstantScoreQuery.createWeight(SolrConstantScoreQuery.java:119) > at > org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:717) > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) > at > org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) > at > org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1604) > at > org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1420) > at > org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:567) > at > org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1434) > at > org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:373) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > [...] > {noformat} > 1. In org/apache/solr/search/ValueSourceParser.java[330] a variable query 'q' > is assigned
[jira] [Updated] (SOLR-13201) NullPointerException in ConcurrentHashMap caused by passing null to get mmethod in org/apache/solr/schema/IndexSchema.java[1201]
[ https://issues.apache.org/jira/browse/SOLR-13201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13201: - Labels: diffblue newdev (was: ) > NullPointerException in ConcurrentHashMap caused by passing null to get > mmethod in org/apache/solr/schema/IndexSchema.java[1201] > > > Key: SOLR-13201 > URL: https://issues.apache.org/jira/browse/SOLR-13201 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > {noformat} >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > Attachments: home.zip > > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?q=initial_release_date:[*%20TO%20NOW-18YEAR]=php=2 > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-19) [ x:films] o.a.s.h.RequestHandlerBase > java.lang.NullPointerException > at > java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) > at > org.apache.solr.schema.IndexSchema.getFieldOrNull(IndexSchema.java:1201) > at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:1225) > at > org.apache.solr.search.facet.FacetField.createFacetProcessor(FacetField.java:118) > at > org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:397) > at > org.apache.solr.search.facet.FacetProcessor.processSubs(FacetProcessor.java:472) > at > org.apache.solr.search.facet.FacetProcessor.fillBucket(FacetProcessor.java:429) > at > org.apache.solr.search.facet.FacetQueryProcessor.process(FacetQuery.java:64) > at > org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:401) > at > org.apache.solr.search.facet.FacetModule.process(FacetModule.java:139) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > [...] > {noformat} > There is called method 'get' on the member > 'org.apache.solr.schema.IndexSchema.dynamicFieldCache' (which os a > 'ConcurrentHashMap') with null as an argument; that leads to a crash inside > 'get' method. The null value (passed to 'get' method) comes from from member > 'field' of 'org.apache.solr.search.facet.FacetField' instance' at > org/apache/solr/search/facet/FacetField.java[118]. > We found this bug using [Diffblue Microservices > Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more > information on
[jira] [Updated] (SOLR-13206) ArrayIndexOutOfBoundsException in org/apache/solr/request/SimpleFacets.java[705]
[ https://issues.apache.org/jira/browse/SOLR-13206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13206: - Labels: diffblue newdev (was: diffblue) > ArrayIndexOutOfBoundsException in > org/apache/solr/request/SimpleFacets.java[705] > > > Key: SOLR-13206 > URL: https://issues.apache.org/jira/browse/SOLR-13206 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection and reproducing the bug > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > curl -v "URL_BUG" > {noformat} > Please check the issue description below to find the "URL_BUG" that will > allow you to reproduce the issue reported. >Reporter: Marek >Priority: Minor > Labels: diffblue, newdev > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?group=true=genre=true=_version_=true > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-21) [ x:films] o.a.s.h.RequestHandlerBase > java.lang.ArrayIndexOutOfBoundsException: 0 > at > org.apache.solr.request.SimpleFacets.getGroupedCounts(SimpleFacets.java:705) > at > org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:495) > at > org.apache.solr.request.SimpleFacets.getTermCountsForPivots(SimpleFacets.java:414) > at > org.apache.solr.handler.component.PivotFacetProcessor.processSingle(PivotFacetProcessor.java:221) > at > org.apache.solr.handler.component.PivotFacetProcessor.process(PivotFacetProcessor.java:169) > at > org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:279) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > 394) > [...] > {noformat} > There is accessed the first element of an empty array of strings, stored in > the member 'org.apache.solr.search.grouping.GroupingSpecification.fields'. > There is an attept to put some strings to the array at > org/apache/solr/handler/component/QueryComponent.java[283]; however, the > string "group.field" is not present in params of the processed > org.apache.solr.request.SolrQueryRequest instance. > The cause of the issue seems to be similar to one reported in SOLR-13204. > To set up an environment to reproduce this bug, follow the description in the > 'Environment' field. > We automatically found this issue and ~70 more like this using [Diffblue > Microservices Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. > Find more information on this [fuzz testing >
[jira] [Created] (SOLR-13206) ArrayIndexOutOfBoundsException in org/apache/solr/request/SimpleFacets.java[705]
Marek created SOLR-13206: Summary: ArrayIndexOutOfBoundsException in org/apache/solr/request/SimpleFacets.java[705] Key: SOLR-13206 URL: https://issues.apache.org/jira/browse/SOLR-13206 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection and reproducing the bug We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json curl -v "URL_BUG" {noformat} Please check the issue description below to find the "URL_BUG" that will allow you to reproduce the issue reported. Reporter: Marek Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?group=true=genre=true=_version_=true {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-21) [ x:films] o.a.s.h.RequestHandlerBase java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.solr.request.SimpleFacets.getGroupedCounts(SimpleFacets.java:705) at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:495) at org.apache.solr.request.SimpleFacets.getTermCountsForPivots(SimpleFacets.java:414) at org.apache.solr.handler.component.PivotFacetProcessor.processSingle(PivotFacetProcessor.java:221) at org.apache.solr.handler.component.PivotFacetProcessor.process(PivotFacetProcessor.java:169) at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:279) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) 394) [...] {noformat} There is accessed the first element of an empty array of strings, stored in the member 'org.apache.solr.search.grouping.GroupingSpecification.fields'. There is an attept to put some strings to the array at org/apache/solr/handler/component/QueryComponent.java[283]; however, the string "group.field" is not present in params of the processed org.apache.solr.request.SolrQueryRequest instance. The cause of the issue seems to be similar to one reported in SOLR-13204. To set up an environment to reproduce this bug, follow the description in the 'Environment' field. We automatically found this issue and ~70 more like this using [Diffblue Microservices Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Created] (SOLR-13204) ArrayIndexOutOfBoundsException in org/apache/solr/search/grouping/endresulttransformer/MainEndResultTransformer.java[36]
Marek created SOLR-13204: Summary: ArrayIndexOutOfBoundsException in org/apache/solr/search/grouping/endresulttransformer/MainEndResultTransformer.java[36] Key: SOLR-13204 URL: https://issues.apache.org/jira/browse/SOLR-13204 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection and reproducing the bug We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json curl -v "URL_BUG" {noformat} Please check the issue description below to find the "URL_BUG" that will allow you to reproduce the issue reported. Reporter: Marek Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} solr/films/select?group=true=true=true {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-18) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.solr.search.grouping.endresulttransformer.MainEndResultTransformer.transform(MainEndResultTransformer.java:36) at org.apache.solr.handler.component.QueryComponent.groupedFinishStage(QueryComponent.java:638) at org.apache.solr.handler.component.QueryComponent.finishStage(QueryComponent.java:601) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:432) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) [...] {noformat} There is accessed the first element of an empty array of strings, stored in the member 'org.apache.solr.search.grouping.GroupingSpecification.fields'. There is an attept to put some strings to the array at org/apache/solr/handler/component/QueryComponent.java[283]; however, the string "group.field" is not present in params of the processed org.apache.solr.request.SolrQueryRequest instance. Look into section 'Environment' above to see installation step of Solr and films collection. We found this issue and ~70 more like this using [Diffblue Microservices Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Created] (SOLR-13201) NullPointerException in ConcurrentHashMap caused by passing null to get mmethod in org/apache/solr/schema/IndexSchema.java[1201]
Marek created SOLR-13201: Summary: NullPointerException in ConcurrentHashMap caused by passing null to get mmethod in org/apache/solr/schema/IndexSchema.java[1201] Key: SOLR-13201 URL: https://issues.apache.org/jira/browse/SOLR-13201 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that you will obtain by following the steps below: {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json {noformat} Reporter: Marek Attachments: home.zip Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?q=initial_release_date:[*%20TO%20NOW-18YEAR]=php=2 {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-19) [ x:films] o.a.s.h.RequestHandlerBase java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) at org.apache.solr.schema.IndexSchema.getFieldOrNull(IndexSchema.java:1201) at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:1225) at org.apache.solr.search.facet.FacetField.createFacetProcessor(FacetField.java:118) at org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:397) at org.apache.solr.search.facet.FacetProcessor.processSubs(FacetProcessor.java:472) at org.apache.solr.search.facet.FacetProcessor.fillBucket(FacetProcessor.java:429) at org.apache.solr.search.facet.FacetQueryProcessor.process(FacetQuery.java:64) at org.apache.solr.search.facet.FacetRequest.process(FacetRequest.java:401) at org.apache.solr.search.facet.FacetModule.process(FacetModule.java:139) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) [...] {noformat} There is called method 'get' on the member 'org.apache.solr.schema.IndexSchema.dynamicFieldCache' (which os a 'ConcurrentHashMap') with null as an argument; that leads to a crash inside 'get' method. The null value (passed to 'get' method) comes from from member 'field' of 'org.apache.solr.search.facet.FacetField' instance' at org/apache/solr/search/facet/FacetField.java[118]. We found this bug using [Diffblue Microservices Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-13194) NullPointerException in org/apache/solr/handler/component/ExpandComponent.java[240]
[ https://issues.apache.org/jira/browse/SOLR-13194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13194: - Attachment: home.zip > NullPointerException in > org/apache/solr/handler/component/ExpandComponent.java[240] > --- > > Key: SOLR-13194 > URL: https://issues.apache.org/jira/browse/SOLR-13194 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X POST -H 'Content-type:application/json' --data-binary > '{"add-copy-field" : {"source":"*","dest":"_text_"}}' > http://localhost:8983/solr/films/schema > ./bin/post -c films example/films/films.json > {noformat} >Reporter: Marek >Priority: Minor > Attachments: home.zip > > > Requesting the following URL causes Solr to return an HTTP 500 error response: > {noformat} > http://localhost:8983/solr/films/select?expand=true={!collapse%20field=id}=true=genre > {noformat} > The error response seems to be caused by the following uncaught exception: > {noformat} > ERROR (qtp689401025-38) [ x:films] o.a.s.s.HttpSolrCall > null:java.lang.NullPointerException > at > org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:240) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) > {noformat} > There is called method 'size' on the variable 'docList', which is null. The > null value comes from parameter 'rb' (an instance of class > 'org.apache.solr.handler.component.ResponseBuilder'), where > 'rb.results.docList' is assigned to the mentioned local variable 'docList'. > We found this bug using [Diffblue Microservices > Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more > information on this [fuzz testing > campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Created] (SOLR-13197) NullPointerException in org/apache/solr/handler/component/StatsField.java[251]
Marek created SOLR-13197: Summary: NullPointerException in org/apache/solr/handler/component/StatsField.java[251] Key: SOLR-13197 URL: https://issues.apache.org/jira/browse/SOLR-13197 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that you will obtain by following the steps below: {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json {noformat} Reporter: Marek Attachments: home.zip Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?stats=true={!cardinalit} {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-17) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.solr.handler.component.StatsField.(StatsField.java:251) at org.apache.solr.handler.component.StatsInfo.(StatsComponent.java:194) at org.apache.solr.handler.component.StatsComponent.prepare(StatsComponent.java:47) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:272) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) [...] {noformat} There is called method 'createParser' on local variable 'qplug' which is set to null on the previous line (i.e. 250). The value null is set to the local variable 'qplug', because of failure in finding the sting "cardinalit" in the field 'registry' of the class org.apache.solr.core.PluginBag (at line org/apache/solr/core/PluginBag.java[167]). We found this bug using [Diffblue Microservices Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Created] (SOLR-13194) NullPointerException in org/apache/solr/handler/component/ExpandComponent.java[240]
Marek created SOLR-13194: Summary: NullPointerException in org/apache/solr/handler/component/ExpandComponent.java[240] Key: SOLR-13194 URL: https://issues.apache.org/jira/browse/SOLR-13194 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that you will obtain by following the steps below: {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json {noformat} Reporter: Marek Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?expand=true={!collapse%20field=id}=true=genre {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-38) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:240) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) {noformat} There is called method 'size' on the variable 'docList', which is null. The null value comes from parameter 'rb' (an instance of class 'org.apache.solr.handler.component.ResponseBuilder'), where 'rb.results.docList' is assigned to the mentioned local variable 'docList'. We found this bug using [Diffblue Microservices Testing|https://www.diffblue.com/labs/?utm_source=solr-br]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results?utm_source=solr-br]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Created] (SOLR-13188) NullPointerException in org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667)
Marek created SOLR-13188: Summary: NullPointerException in org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) Key: SOLR-13188 URL: https://issues.apache.org/jira/browse/SOLR-13188 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that you will obtain by following the steps below: {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json {noformat} Reporter: Marek Attachments: home.zip Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?q={!parent%20fq={!collapse%20field=id}} {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-21) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) at org.apache.lucene.search.join.QueryBitSetProducer.getBitSet(QueryBitSetProducer.java:73) at org.apache.solr.search.join.BlockJoinParentQParser$BitDocIdSetFilterWrapper.getDocIdSet(BlockJoinParentQParser.java:135) at org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.scorer(SolrConstantScoreQuery.java:99) at org.apache.lucene.search.Weight.bulkScorer(Weight.java:177) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:649) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1604) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1420) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:567) at org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1434) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:373) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) [...] {noformat} In org/apache/lucene/search/join/QueryBitSetProducer.java[73] there is called method 'org.apache.lucene.search.IndexSearcher.rewrite' with null value stored in the member 'query'. Inside the called method there is method 'rewrite' on the accepted argument. The member 'query' of QueryBitSetProducer is initialised only once (i.e. only for the first query issued; for subsequent queries it is not created again) from 'org.apache.solr.search.join.BlockJoinParentQParser.getCachedFilter' (org/apache/solr/search/join/BlockJoinParentQParser.java[98]), where is called 'createParentFilter' with null. --- We found this bug using [Diffblue
[jira] [Updated] (SOLR-13179) NullPointerException in org/apache/lucene/queries/function/FunctionScoreQuery.java [109]
[ https://issues.apache.org/jira/browse/SOLR-13179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13179: - Description: Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?facet.query=={!frange%20l=10%20u=100}boost({!v=+},3) {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-23) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.lucene.queries.function.FunctionScoreQuery.rewrite(FunctionScoreQuery.java:109) at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) at org.apache.lucene.queries.function.valuesource.QueryValueSource.createWeight(QueryValueSource.java:75) at org.apache.solr.search.function.ValueSourceRangeFilter.createWeight(ValueSourceRangeFilter.java:105) at org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.(SolrConstantScoreQuery.java:94) at org.apache.solr.search.SolrConstantScoreQuery.createWeight(SolrConstantScoreQuery.java:119) at org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:717) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1604) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1420) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:567) at org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1434) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:373) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) [...] {noformat} 1. In org/apache/solr/search/ValueSourceParser.java[330] a variable query 'q' is assigned the value null, which is obtained from org/apache/solr/search/LuceneQParser.java[39], because a variable 'qstr' is the empty string. 2. In org/apache/solr/search/ValueSourceParser.java[332] the null value of 'q' is passed to function 'FunctionScoreQuery.boostByValue', which in turn leads to initialisation of member 'in' of org.apache.lucene.queries.function.FunctionScoreQuery to null at org/apache/lucene/queries/function/FunctionScoreQuery.java[56]. 3. Later, during execution of the query, there is dereferenced the member 'in' (still having the null value) at org/apache/lucene/queries/function/FunctionScoreQuery.java[109]. We found this bug using [Diffblue Microservices Testing|https://www.diffblue.com/labs/]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results]. was: Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?facet.query=={!frange%20l=10%20u=100}boost({!v=+},3)&~ama=on=true {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp1067599825-23) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.lucene.queries.function.FunctionScoreQuery.rewrite(FunctionScoreQuery.java:109) at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) at org.apache.lucene.queries.function.valuesource.QueryValueSource.createWeight(QueryValueSource.java:75) at org.apache.solr.search.function.ValueSourceRangeFilter.createWeight(ValueSourceRangeFilter.java:105) at org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.(SolrConstantScoreQuery.java:94) at org.apache.solr.search.SolrConstantScoreQuery.createWeight(SolrConstantScoreQuery.java:119) at org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:717) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) at
[jira] [Updated] (SOLR-13179) NullPointerException in org/apache/lucene/queries/function/FunctionScoreQuery.java [109]
[ https://issues.apache.org/jira/browse/SOLR-13179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13179: - Description: Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?facet.query=={!frange%20l=10%20u=100}boost({!v=+},3)&~ama=on=true {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp1067599825-23) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.lucene.queries.function.FunctionScoreQuery.rewrite(FunctionScoreQuery.java:109) at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) at org.apache.lucene.queries.function.valuesource.QueryValueSource.createWeight(QueryValueSource.java:75) at org.apache.solr.search.function.ValueSourceRangeFilter.createWeight(ValueSourceRangeFilter.java:105) at org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.(SolrConstantScoreQuery.java:94) at org.apache.solr.search.SolrConstantScoreQuery.createWeight(SolrConstantScoreQuery.java:119) at org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:717) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) at org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC(SolrIndexSearcher.java:1711) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1416) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:567) at org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1434) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:373) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:306) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) [...] {noformat} 1. In org/apache/solr/search/ValueSourceParser.java[330] a variable query 'q' is assigned the value null, which is obtained from org/apache/solr/search/LuceneQParser.java[39], because a variable 'qstr' is the empty string. 2. In org/apache/solr/search/ValueSourceParser.java[332] the null value of 'q' is passed to function 'FunctionScoreQuery.boostByValue', which in turn leads to initialisation of member 'in' of org.apache.lucene.queries.function.FunctionScoreQuery to null at org/apache/lucene/queries/function/FunctionScoreQuery.java[56]. 3. Later, during execution of the query, there is dereferenced the member 'in' (still having the null value) at org/apache/lucene/queries/function/FunctionScoreQuery.java[109]. We found this bug using [Diffblue Microservices Testing|https://www.diffblue.com/labs/]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results]. was: Execution of the URL query: *http://localhost:8983/solr/films/select?q=\{!frange%20l=10%20u=100}boost(\{!v=+},3)* leads to a NullPointerException: 2019-01-29 13:42:04.662 ERROR (qtp689401025-21) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.lucene.queries.function.FunctionScoreQuery.rewrite(FunctionScoreQuery.java:109) at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) at org.apache.lucene.queries.function.valuesource.QueryValueSource.createWeight(QueryValueSource.java:75) at org.apache.solr.search.function.ValueSourceRangeFilter.createWeight(ValueSourceRangeFilter.java:105) at org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.(SolrConstantScoreQuery.java:94) at org.apache.solr.search.SolrConstantScoreQuery.createWeight(SolrConstantScoreQuery.java:119) at org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:717) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1604) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1420) at
[jira] [Updated] (SOLR-13179) NullPointerException in org/apache/lucene/queries/function/FunctionScoreQuery.java [109]
[ https://issues.apache.org/jira/browse/SOLR-13179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marek updated SOLR-13179: - Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that you will obtain by following the steps below: {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json {noformat} was: h2. Steps to reproduce * Build commit ea2c8ba of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command "./bin/solr start -f -p 8983 -s /tmp/home" * Request the URL above. h2. Compiling the server git clone [https://github.com/apache/lucene-solr ]cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server h2. Building the collection We followed Exercise 2 from the quick start tutorial ([http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2]). The attached file (home.zip) gives the contents of folder /tmp/home that you will obtain by following the steps below. mkdir -p /tmp/home echo '' > /tmp/home/solr.xml In one terminal start a Solr instance in foreground: ./bin/solr start -f -p 8983 -s /tmp/home In another terminal, create a collection of movies, with no shards and no replication: bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '\{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' [http://localhost:8983/solr/films/schema] curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' [http://localhost:8983/solr/films/schema] ./bin/post -c films example/films/films.json > NullPointerException in > org/apache/lucene/queries/function/FunctionScoreQuery.java [109] > > > Key: SOLR-13179 > URL: https://issues.apache.org/jira/browse/SOLR-13179 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) >Affects Versions: master (9.0) > Environment: h1. Steps to reproduce > * Use a Linux machine. > * Build commit {{ea2c8ba}} of Solr as described in the section below. > * Build the films collection as described below. > * Start the server using the command {{./bin/solr start -f -p 8983 -s > /tmp/home}} > * Request the URL given in the bug description. > h1. Compiling the server > {noformat} > git clone https://github.com/apache/lucene-solr > cd lucene-solr > git checkout ea2c8ba > ant compile > cd solr > ant server > {noformat} > h1. Building the collection > We followed [Exercise > 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from > the [Solr > Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The > attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that > you will obtain by following the steps below: > {noformat} > mkdir -p /tmp/home > echo '' > > /tmp/home/solr.xml > {noformat} > In one terminal start a Solr instance in foreground: > {noformat} > ./bin/solr start -f -p 8983 -s /tmp/home > {noformat} > In another terminal, create a collection of movies, with no shards and no > replication, and initialize it: > {noformat} > bin/solr create -c films > curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": > {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' > http://localhost:8983/solr/films/schema > curl -X
[jira] [Created] (SOLR-13182) NullPointerException due to an invariant violation in org/apache/lucene/search/BooleanClause.java[60]
Marek created SOLR-13182: Summary: NullPointerException due to an invariant violation in org/apache/lucene/search/BooleanClause.java[60] Key: SOLR-13182 URL: https://issues.apache.org/jira/browse/SOLR-13182 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h1. Steps to reproduce * Use a Linux machine. * Build commit {{ea2c8ba}} of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command {{./bin/solr start -f -p 8983 -s /tmp/home}} * Request the URL given in the bug description. h1. Compiling the server {noformat} git clone https://github.com/apache/lucene-solr cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server {noformat} h1. Building the collection We followed [Exercise 2|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2] from the [Solr Tutorial|http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html]. The attached file ({{home.zip}}) gives the contents of folder {{/tmp/home}} that you will obtain by following the steps below: {noformat} mkdir -p /tmp/home echo '' > /tmp/home/solr.xml {noformat} In one terminal start a Solr instance in foreground: {noformat} ./bin/solr start -f -p 8983 -s /tmp/home {noformat} In another terminal, create a collection of movies, with no shards and no replication, and initialize it: {noformat} bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' http://localhost:8983/solr/films/schema curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' http://localhost:8983/solr/films/schema ./bin/post -c films example/films/films.json {noformat} Reporter: Marek Attachments: home.zip Requesting the following URL causes Solr to return an HTTP 500 error response: {noformat} http://localhost:8983/solr/films/select?q={!child%20q={} {noformat} The error response seems to be caused by the following uncaught exception: {noformat} ERROR (qtp689401025-14) [ x:films] o.a.s.h.RequestHandlerBase java.lang.NullPointerException: Query must not be null at java.util.Objects.requireNonNull(Objects.java:228) at org.apache.lucene.search.BooleanClause.(BooleanClause.java:60) at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:127) at org.apache.solr.search.join.BlockJoinChildQParser.noClausesQuery(BlockJoinChildQParser.java:50) at org.apache.solr.search.join.FiltersQParser.parse(FiltersQParser.java:60) at org.apache.solr.search.QParser.getQuery(QParser.java:173) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:158) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:272) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340) [...] {noformat} In org/apache/solr/search/join/BlockJoinChildQParser.java[47] there is computed query variable 'parents', which receives value null from call to 'parseParentFilter()'. The null value is then passed to 'org.apache.lucene.search.BooleanQuery.Builder.add' method at line 50. That method calls the constructor where 'Objects.requireNonNull' failes (the exception is thrown). The call to 'parseParentFilter()' evaluates to null, because: # In org/apache/solr/search/join/BlockJoinParentQParser.java[59] null is set to string 'filter' (becase "which" is not in 'localParams' map). # The parser 'parentParser' obtained in the next line has member 'qstr' set to null, because the 'filter' passed to 'subQuery' is passed as the first argument to 'org.apache.solr.search.QParserPlugin.createParser'. # Subsequnt call to 'org.apache.solr.search.QParser.getQuery' on the 'parentParser' at org/apache/solr/search/join/BlockJoinParentQParser.java[61] leads to retuning null in 'org.apache.solr.search.LuceneQParser.parse', because the queried string 'qstr' is the empty string. -- We found this bug using [Diffblue Microservices Testing|https://www.diffblue.com/labs/]. Find more information on this [fuzz testing campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results]. -- This message was sent by Atlassian JIRA
[jira] [Created] (SOLR-13179) NullPointerException in org/apache/lucene/queries/function/FunctionScoreQuery.java [109]
Marek created SOLR-13179: Summary: NullPointerException in org/apache/lucene/queries/function/FunctionScoreQuery.java [109] Key: SOLR-13179 URL: https://issues.apache.org/jira/browse/SOLR-13179 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: master (9.0) Environment: h2. Steps to reproduce * Build commit ea2c8ba of Solr as described in the section below. * Build the films collection as described below. * Start the server using the command "./bin/solr start -f -p 8983 -s /tmp/home" * Request the URL above. h2. Compiling the server git clone [https://github.com/apache/lucene-solr ]cd lucene-solr git checkout ea2c8ba ant compile cd solr ant server h2. Building the collection We followed Exercise 2 from the quick start tutorial ([http://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#exercise-2]). The attached file (home.zip) gives the contents of folder /tmp/home that you will obtain by following the steps below. mkdir -p /tmp/home echo '' > /tmp/home/solr.xml In one terminal start a Solr instance in foreground: ./bin/solr start -f -p 8983 -s /tmp/home In another terminal, create a collection of movies, with no shards and no replication: bin/solr create -c films curl -X POST -H 'Content-type:application/json' --data-binary '\{"add-field": {"name":"name", "type":"text_general", "multiValued":false, "stored":true}}' [http://localhost:8983/solr/films/schema] curl -X POST -H 'Content-type:application/json' --data-binary '{"add-copy-field" : {"source":"*","dest":"_text_"}}' [http://localhost:8983/solr/films/schema] ./bin/post -c films example/films/films.json Reporter: Marek Attachments: home.zip Execution of the URL query: *http://localhost:8983/solr/films/select?q=\{!frange%20l=10%20u=100}boost(\{!v=+},3)* leads to a NullPointerException: 2019-01-29 13:42:04.662 ERROR (qtp689401025-21) [ x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException at org.apache.lucene.queries.function.FunctionScoreQuery.rewrite(FunctionScoreQuery.java:109) at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:667) at org.apache.lucene.queries.function.valuesource.QueryValueSource.createWeight(QueryValueSource.java:75) at org.apache.solr.search.function.ValueSourceRangeFilter.createWeight(ValueSourceRangeFilter.java:105) at org.apache.solr.search.SolrConstantScoreQuery$ConstantWeight.(SolrConstantScoreQuery.java:94) at org.apache.solr.search.SolrConstantScoreQuery.createWeight(SolrConstantScoreQuery.java:119) at org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:717) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443) at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200) at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1604) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1420) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:567) at org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1434) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:373) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559) [...] More details: 1. In org/apache/solr/search/ValueSourceParser.java[330] a variable query 'q' is assigned the value null, which is obtained from org/apache/solr/search/LuceneQParser.java[39], because a variable 'qstr' is the empty string. 2. In org/apache/solr/search/ValueSourceParser.java[332] the null value of 'q' is passed to function 'FunctionScoreQuery.boostByValue', which in turn leads to initialisation of member 'in' of org.apache.lucene.queries.function.FunctionScoreQuery to null at org/apache/lucene/queries/function/FunctionScoreQuery.java[56]. 3. Later, during execution of the query, there is dereferenced the member 'in' (still having the null value) at org/apache/lucene/queries/function/FunctionScoreQuery.java[109]. See section 'Environment' to see how Solr and data (films collection) were installed and configured. - This bug was found using [Diffblue Microservices Testing|http://www.diffblue.com/labs]. Find more information on this [test campaign|https://www.diffblue.com/blog/2018/12/19/diffblue-microservice-testing-a-sneak-peek-at-our-early-product-and-results]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: