lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Commented: (SOLR-1546) When querying solrj the SolrServerException's cause is null
Date Sun, 08 Nov 2009 23:49:32 GMT


Hoss Man commented on SOLR-1546:

It would be helpful if you could post the stacktraces for the exception(s) you are seeing
where there is no nested clause but you feel like there should be -- that way we'd have methods
and line numbers of where the Exception originalted in order to determine why the cause isn't
being set properly.

the current bug description feels like a needle in a hay stack.

> When querying solrj the SolrServerException's cause is null
> -----------------------------------------------------------
>                 Key: SOLR-1546
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>    Affects Versions: 1.4
>         Environment: solrj
>            Reporter: Jake Brownell
>            Priority: Minor
> Our application processes queries like so:
> {code}
>         try {
>             final SolrServer server = getServer();
>             final QueryResponse resp = server.query(query);
>             return resp;
>         } catch (final SolrServerException e) {
>              /// bad things probably happened, invoke error processing and possibly switch
to the backup
>         }
> {code}
> Given SOLR-874 with dismax queries sometimes causing ParseException from Lucene, I'd
like to be able to interrogate the cause chain of the SolrServerException. For example if
I found ParseException in the chain, I could provide a specific error message and know that
it's not necessary to switch to the backup server.
> As it is now, getCause is giving null. The undesirable fix right now is looking inside
the toString/description for the "ParseException" phrase.
> Thanks.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message