You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Aman Tandon <am...@gmail.com> on 2015/02/14 07:57:13 UTC

Solr 4.8.1 : Response Code 500 when creating the new request handler

Hi,

I am using Solr 4.8.1 and when i am creating the new request handler i am
getting the following error:

*Request Handler config:*

<requestHandler name="my_clothes_data" class="solr.SearchHandler">
        <lst name="invariants">
                <str name="defType">edismax</str>
                <str name="indent">on</str>
                <str name="q.alt">*:*</str>

                <float name="tie">0.01</float>
        </lst>

        <lst name="appends">
                <str name="fq">type:garments</str>
        </lst>
</requestHandler>

*Error:*

java.lang.RuntimeException at
> org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.<init>(ExtendedDismaxQParser.java:1455)
> at
> org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:239)
> at
> org.apache.solr.search.ExtendedDismaxQParser.<init>(ExtendedDismaxQParser.java:108)
> at
> org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:37)
> at org.apache.solr.search.QParser.getParser(QParser.java:315) at
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:144)
> at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:368) at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> at
> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
> at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at
> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> at
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:745)
>

Please correct me if i am doing something wrong.

*Reuested Url: *
http://localhost:8983/solr/core1/select?qt=my_clothes_data&q.alt=*:*

With Regards
Aman Tandon

Re: Solr 4.8.1 : Response Code 500 when creating the new request handler

Posted by Aman Tandon <am...@gmail.com>.
Thanks Chris, yes on providing the qf it is working fine.

With Regards
Aman Tandon

On Wed, Feb 18, 2015 at 12:25 AM, Chris Hostetter <ho...@fucit.org>
wrote:

>
> : 1. Look further down in the stack trace for the "caused by" that details
> : > the specific cause of the exception.
>
> : I am still not able to find the cause of this.
>
> jack is refering to the log file from your server ... sometimes there
> are more details there.
>
> : Sorry i but don't know it is non-standard approach. please guide me here.
>
> I'm not sure what jack was refering to -- i don't see anything "non
> standard" about how you have your handler configured.
>
> : We are trying to find all the results so we are using q.alt=*:*.
> : There are some products in our company who wants of find all the results
> *whose
> : type is garments* and i forgot to mention we are trying to find only 6
> : rows. So using this request handler we are providing the 6 rows.
>
> Jack's point here is that you have specified a q.alt in your "invariants"
> but you have also specified it in the query params -- which will be
> totally ignored.  what specifically is your goal of haivng that query
> param in the sample query you tried?
>
> As a general debugging tip: Did you try ignoring your custom
> reuqestHandler, and just running a simple /select query with all of those
> params specified in the URL?  ... it can help to try and narrow down the
> problem -- in this case, i'm pretty sure you would have gotten the same
> error, and then the distractions of hte "invariants" question owuld have
> been irellevant....
>
>
> Looking at the source code for 4.8.1 it appears that the error you are
> seeing is edismax doing a really bad job of trying to report an error
> parsing in parsing the "qf" param -- which you haven't specified at all in
> your params....
>
>       try {
>         queryFields = DisMaxQParser.parseQueryFields(req.getSchema(),
> solrParams);  // req.getSearcher() here causes searcher refcount imbalance
>       } catch (SyntaxError e) {
>         throw new RuntimeException();
>       }
>
> ..if you add a "qf" param with the list of fields you want to search, (of
> a 'df' param to specify a default field) i suspect this error will go away.
>
>
> I filed a bug to fix this terrible code to give a useful error msg in the
> future...
>
> https://issues.apache.org/jira/browse/SOLR-7120
>
>
>
>
> : > 3. You have q.alt in invariants, but also in the actual request, which
> is a
> : > contradiction in terms - what is your actual intent? This isn't the
> cause
> : > of the exception, but does raise questions of what you are trying to
> do.
> : > 4. Why don't you have a q parameter for the actual query?
> : >
> : >
> : > -- Jack Krupansky
> : >
> : > On Sat, Feb 14, 2015 at 1:57 AM, Aman Tandon <am...@gmail.com>
> : > wrote:
> : >
> : > > Hi,
> : > >
> : > > I am using Solr 4.8.1 and when i am creating the new request handler
> i am
> : > > getting the following error:
> : > >
> : > > *Request Handler config:*
> : > >
> : > > <requestHandler name="my_clothes_data" class="solr.SearchHandler">
> : > >         <lst name="invariants">
> : > >                 <str name="defType">edismax</str>
> : > >                 <str name="indent">on</str>
> : > >                 <str name="q.alt">*:*</str>
> : > >
> : > >                 <float name="tie">0.01</float>
> : > >         </lst>
> : > >
> : > >         <lst name="appends">
> : > >                 <str name="fq">type:garments</str>
> : > >         </lst>
> : > > </requestHandler>
> : > >
> : > > *Error:*
> : > >
> : > > java.lang.RuntimeException at
> : > > >
> : > >
> : >
> org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.<init>(ExtendedDismaxQParser.java:1455)
> : > > > at
> : > > >
> : > >
> : >
> org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:239)
> : > > > at
> : > > >
> : > >
> : >
> org.apache.solr.search.ExtendedDismaxQParser.<init>(ExtendedDismaxQParser.java:108)
> : > > > at
> : > > >
> : > >
> : >
> org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:37)
> : > > > at org.apache.solr.search.QParser.getParser(QParser.java:315) at
> : > > >
> : > >
> : >
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:144)
> : > > > at
> : > > >
> : > >
> : >
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
> : > > > at
> : > > >
> : > >
> : >
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> : > > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at
> : > > >
> : > >
> : >
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
> : > > > at
> : > > >
> : > >
> : >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
> : > > > at
> : > > >
> : > >
> : >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> : > > > at
> : > > >
> : >
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> : > > > at org.eclipse.jetty.server.Server.handle(Server.java:368) at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
> : > > > at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at
> : > > >
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> : > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> : > > > at
> : > > >
> : > >
> : >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> : > > > at java.lang.Thread.run(Thread.java:745)
> : > > >
> : > >
> : > > Please correct me if i am doing something wrong.
> : > >
> : > > *Reuested Url: *
> : > > http://localhost:8983/solr/core1/select?qt=my_clothes_data&q.alt=*:*
> : > >
> : > > With Regards
> : > > Aman Tandon
> : > >
> : >
> :
>
> -Hoss
> http://www.lucidworks.com/
>

Re: Solr 4.8.1 : Response Code 500 when creating the new request handler

Posted by Chris Hostetter <ho...@fucit.org>.
: 1. Look further down in the stack trace for the "caused by" that details
: > the specific cause of the exception.

: I am still not able to find the cause of this.

jack is refering to the log file from your server ... sometimes there 
are more details there.

: Sorry i but don't know it is non-standard approach. please guide me here.

I'm not sure what jack was refering to -- i don't see anything "non 
standard" about how you have your handler configured.

: We are trying to find all the results so we are using q.alt=*:*.
: There are some products in our company who wants of find all the results *whose
: type is garments* and i forgot to mention we are trying to find only 6
: rows. So using this request handler we are providing the 6 rows.

Jack's point here is that you have specified a q.alt in your "invariants" 
but you have also specified it in the query params -- which will be 
totally ignored.  what specifically is your goal of haivng that query 
param in the sample query you tried? 

As a general debugging tip: Did you try ignoring your custom 
reuqestHandler, and just running a simple /select query with all of those 
params specified in the URL?  ... it can help to try and narrow down the 
problem -- in this case, i'm pretty sure you would have gotten the same 
error, and then the distractions of hte "invariants" question owuld have 
been irellevant....


Looking at the source code for 4.8.1 it appears that the error you are 
seeing is edismax doing a really bad job of trying to report an error 
parsing in parsing the "qf" param -- which you haven't specified at all in 
your params....

      try {
        queryFields = DisMaxQParser.parseQueryFields(req.getSchema(), solrParams);  // req.getSearcher() here causes searcher refcount imbalance
      } catch (SyntaxError e) {
        throw new RuntimeException();
      }

..if you add a "qf" param with the list of fields you want to search, (of 
a 'df' param to specify a default field) i suspect this error will go away.


I filed a bug to fix this terrible code to give a useful error msg in the 
future...

https://issues.apache.org/jira/browse/SOLR-7120




: > 3. You have q.alt in invariants, but also in the actual request, which is a
: > contradiction in terms - what is your actual intent? This isn't the cause
: > of the exception, but does raise questions of what you are trying to do.
: > 4. Why don't you have a q parameter for the actual query?
: >
: >
: > -- Jack Krupansky
: >
: > On Sat, Feb 14, 2015 at 1:57 AM, Aman Tandon <am...@gmail.com>
: > wrote:
: >
: > > Hi,
: > >
: > > I am using Solr 4.8.1 and when i am creating the new request handler i am
: > > getting the following error:
: > >
: > > *Request Handler config:*
: > >
: > > <requestHandler name="my_clothes_data" class="solr.SearchHandler">
: > >         <lst name="invariants">
: > >                 <str name="defType">edismax</str>
: > >                 <str name="indent">on</str>
: > >                 <str name="q.alt">*:*</str>
: > >
: > >                 <float name="tie">0.01</float>
: > >         </lst>
: > >
: > >         <lst name="appends">
: > >                 <str name="fq">type:garments</str>
: > >         </lst>
: > > </requestHandler>
: > >
: > > *Error:*
: > >
: > > java.lang.RuntimeException at
: > > >
: > >
: > org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.<init>(ExtendedDismaxQParser.java:1455)
: > > > at
: > > >
: > >
: > org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:239)
: > > > at
: > > >
: > >
: > org.apache.solr.search.ExtendedDismaxQParser.<init>(ExtendedDismaxQParser.java:108)
: > > > at
: > > >
: > >
: > org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:37)
: > > > at org.apache.solr.search.QParser.getParser(QParser.java:315) at
: > > >
: > >
: > org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:144)
: > > > at
: > > >
: > >
: > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
: > > > at
: > > >
: > >
: > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
: > > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at
: > > >
: > >
: > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
: > > > at
: > > >
: > >
: > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
: > > > at
: > > >
: > >
: > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
: > > > at
: > > >
: > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
: > > > at org.eclipse.jetty.server.Server.handle(Server.java:368) at
: > > >
: > >
: > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
: > > > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at
: > > > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
: > at
: > > >
: > >
: > org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
: > > > at
: > > >
: > >
: > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
: > > > at java.lang.Thread.run(Thread.java:745)
: > > >
: > >
: > > Please correct me if i am doing something wrong.
: > >
: > > *Reuested Url: *
: > > http://localhost:8983/solr/core1/select?qt=my_clothes_data&q.alt=*:*
: > >
: > > With Regards
: > > Aman Tandon
: > >
: >
: 

-Hoss
http://www.lucidworks.com/

Re: Solr 4.8.1 : Response Code 500 when creating the new request handler

Posted by Aman Tandon <am...@gmail.com>.
Dear Jack,

1. Look further down in the stack trace for the "caused by" that details
> the specific cause of the exception.


I am still not able to find the cause of this.

2. Please explain in plain English what you are really trying to do with
> this non-standard approach - why aren't you just using the normal request
> handler?

Sorry i but don't know it is non-standard approach. please guide me here.

 3. You have q.alt in invariants, but also in the actual request, which is a
> contradiction in terms - what is your actual intent? This isn't the cause
> of the exception, but does raise questions of what you are trying to do.


We are trying to find all the results so we are using q.alt=*:*.
There are some products in our company who wants of find all the results *whose
type is garments* and i forgot to mention we are trying to find only 6
rows. So using this request handler we are providing the 6 rows.

4. Why don't you have a q parameter for the actual query?

In start some of the product is using the solr  as the database, so we will
stop these type of queries.

With Regards
Aman Tandon

On Sun, Feb 15, 2015 at 6:25 PM, Jack Krupansky <ja...@gmail.com>
wrote:

> 1. Look further down in the stack trace for the "caused by" that details
> the specific cause of the exception.
> 2. Please explain in plain English what you are really trying to do with
> this non-standard approach - why aren't you just using the normal request
> handler?
> 3. You have q.alt in invariants, but also in the actual request, which is a
> contradiction in terms - what is your actual intent? This isn't the cause
> of the exception, but does raise questions of what you are trying to do.
> 4. Why don't you have a q parameter for the actual query?
>
>
> -- Jack Krupansky
>
> On Sat, Feb 14, 2015 at 1:57 AM, Aman Tandon <am...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am using Solr 4.8.1 and when i am creating the new request handler i am
> > getting the following error:
> >
> > *Request Handler config:*
> >
> > <requestHandler name="my_clothes_data" class="solr.SearchHandler">
> >         <lst name="invariants">
> >                 <str name="defType">edismax</str>
> >                 <str name="indent">on</str>
> >                 <str name="q.alt">*:*</str>
> >
> >                 <float name="tie">0.01</float>
> >         </lst>
> >
> >         <lst name="appends">
> >                 <str name="fq">type:garments</str>
> >         </lst>
> > </requestHandler>
> >
> > *Error:*
> >
> > java.lang.RuntimeException at
> > >
> >
> org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.<init>(ExtendedDismaxQParser.java:1455)
> > > at
> > >
> >
> org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:239)
> > > at
> > >
> >
> org.apache.solr.search.ExtendedDismaxQParser.<init>(ExtendedDismaxQParser.java:108)
> > > at
> > >
> >
> org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:37)
> > > at org.apache.solr.search.QParser.getParser(QParser.java:315) at
> > >
> >
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:144)
> > > at
> > >
> >
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
> > > at
> > >
> >
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at
> > >
> >
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
> > > at
> > >
> >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
> > > at
> > >
> >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
> > > at
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> > > at
> > >
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> > > at
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> > > at
> > >
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> > > at
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> > > at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> > > at
> > >
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> > > at
> > >
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> > > at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> > > at
> > >
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> > > at
> > >
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> > > at
> > >
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> > > at
> > >
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> > > at org.eclipse.jetty.server.Server.handle(Server.java:368) at
> > >
> >
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> > > at
> > >
> >
> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> > > at
> > >
> >
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
> > > at
> > >
> >
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
> > > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at
> > > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> at
> > >
> >
> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> > > at
> > >
> >
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> > > at
> > >
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> > > at
> > >
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> > > at java.lang.Thread.run(Thread.java:745)
> > >
> >
> > Please correct me if i am doing something wrong.
> >
> > *Reuested Url: *
> > http://localhost:8983/solr/core1/select?qt=my_clothes_data&q.alt=*:*
> >
> > With Regards
> > Aman Tandon
> >
>

Re: Solr 4.8.1 : Response Code 500 when creating the new request handler

Posted by Jack Krupansky <ja...@gmail.com>.
1. Look further down in the stack trace for the "caused by" that details
the specific cause of the exception.
2. Please explain in plain English what you are really trying to do with
this non-standard approach - why aren't you just using the normal request
handler?
3. You have q.alt in invariants, but also in the actual request, which is a
contradiction in terms - what is your actual intent? This isn't the cause
of the exception, but does raise questions of what you are trying to do.
4. Why don't you have a q parameter for the actual query?


-- Jack Krupansky

On Sat, Feb 14, 2015 at 1:57 AM, Aman Tandon <am...@gmail.com>
wrote:

> Hi,
>
> I am using Solr 4.8.1 and when i am creating the new request handler i am
> getting the following error:
>
> *Request Handler config:*
>
> <requestHandler name="my_clothes_data" class="solr.SearchHandler">
>         <lst name="invariants">
>                 <str name="defType">edismax</str>
>                 <str name="indent">on</str>
>                 <str name="q.alt">*:*</str>
>
>                 <float name="tie">0.01</float>
>         </lst>
>
>         <lst name="appends">
>                 <str name="fq">type:garments</str>
>         </lst>
> </requestHandler>
>
> *Error:*
>
> java.lang.RuntimeException at
> >
> org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.<init>(ExtendedDismaxQParser.java:1455)
> > at
> >
> org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:239)
> > at
> >
> org.apache.solr.search.ExtendedDismaxQParser.<init>(ExtendedDismaxQParser.java:108)
> > at
> >
> org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:37)
> > at org.apache.solr.search.QParser.getParser(QParser.java:315) at
> >
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:144)
> > at
> >
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
> > at
> >
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at
> >
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
> > at
> >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
> > at
> >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
> > at
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> > at
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> > at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> > at
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> > at
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> > at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> > at
> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> > at
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> > at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> > at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> > at
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> > at
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> > at
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> > at org.eclipse.jetty.server.Server.handle(Server.java:368) at
> >
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> > at
> >
> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> > at
> >
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
> > at
> >
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
> > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at
> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at
> >
> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> > at
> >
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> > at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> > at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> > at java.lang.Thread.run(Thread.java:745)
> >
>
> Please correct me if i am doing something wrong.
>
> *Reuested Url: *
> http://localhost:8983/solr/core1/select?qt=my_clothes_data&q.alt=*:*
>
> With Regards
> Aman Tandon
>

Re: Solr 4.8.1 : Response Code 500 when creating the new request handler

Posted by Aman Tandon <am...@gmail.com>.
Please help.

With Regards
Aman Tandon

On Sat, Feb 14, 2015 at 12:27 PM, Aman Tandon <am...@gmail.com>
wrote:

> Hi,
>
> I am using Solr 4.8.1 and when i am creating the new request handler i am
> getting the following error:
>
> *Request Handler config:*
>
> <requestHandler name="my_clothes_data" class="solr.SearchHandler">
>         <lst name="invariants">
>                 <str name="defType">edismax</str>
>                 <str name="indent">on</str>
>                 <str name="q.alt">*:*</str>
>
>                 <float name="tie">0.01</float>
>         </lst>
>
>         <lst name="appends">
>                 <str name="fq">type:garments</str>
>         </lst>
> </requestHandler>
>
> *Error:*
>
> java.lang.RuntimeException at
>> org.apache.solr.search.ExtendedDismaxQParser$ExtendedDismaxConfiguration.<init>(ExtendedDismaxQParser.java:1455)
>> at
>> org.apache.solr.search.ExtendedDismaxQParser.createConfiguration(ExtendedDismaxQParser.java:239)
>> at
>> org.apache.solr.search.ExtendedDismaxQParser.<init>(ExtendedDismaxQParser.java:108)
>> at
>> org.apache.solr.search.ExtendedDismaxQParserPlugin.createParser(ExtendedDismaxQParserPlugin.java:37)
>> at org.apache.solr.search.QParser.getParser(QParser.java:315) at
>> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:144)
>> at
>> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
>> at
>> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
>> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at
>> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
>> at
>> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
>> at
>> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
>> at
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
>> at
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
>> at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
>> at
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
>> at
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
>> at
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
>> at
>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
>> at
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
>> at
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
>> at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
>> at
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
>> at
>> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
>> at
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>> at org.eclipse.jetty.server.Server.handle(Server.java:368) at
>> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
>> at
>> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
>> at
>> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
>> at
>> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
>> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at
>> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at
>> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
>> at
>> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
>> at
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
>> at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
>> at java.lang.Thread.run(Thread.java:745)
>>
>
> Please correct me if i am doing something wrong.
>
> *Reuested Url: *
> http://localhost:8983/solr/core1/select?qt=my_clothes_data&q.alt=*:*
>
> With Regards
> Aman Tandon
>