lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-2084) ContentStreamUpdateRequest should play nice even with no streams
Date Mon, 23 Aug 2010 22:47:16 GMT
ContentStreamUpdateRequest should play nice even with no streams
----------------------------------------------------------------

                 Key: SOLR-2084
                 URL: https://issues.apache.org/jira/browse/SOLR-2084
             Project: Solr
          Issue Type: Improvement
            Reporter: Hoss Man


As noted by a user, attempting to use stream.file or stream.url with the ContentStreamUpdateRequest
(an understandable situation that might arise if people aren't completely clear on when it's
needed) can result in an NPE from CommonsHttpSolrServer (because it has no streams to send)
...

{code}
java.lang.NullPointerException
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:381)
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243)
        at CommonTest.indexFilesSolrCell(CommonTest.java:59)
        at CommonTest.main(CommonTest.java:26)
{code}

UpdateRequest doesn't have this problem, In the pathological case of no streams ContentStreamUpdateRequest
should behave just like UpdateRequest and QueryRequest.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message