lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3903) Solrj library raises MissingFormatArgumentException when comitting update requests with parameters
Date Fri, 22 Mar 2013 16:29:22 GMT

    [ https://issues.apache.org/jira/browse/SOLR-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610712#comment-13610712
] 

Commit Tag Bot commented on SOLR-3903:
--------------------------------------

[branch_4x commit] Chris M. Hostetter
http://svn.apache.org/viewvc?view=revision&revision=1393801

SOLR-3903: Fixed MissingFormatArgumentException in ConcurrentUpdateSolrServer (merge r1393794
from trunk)

                
> Solrj library raises MissingFormatArgumentException when comitting update requests with
parameters 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3903
>                 URL: https://issues.apache.org/jira/browse/SOLR-3903
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 4.0-BETA
>         Environment: Ubuntu 12.04, Solr 4.0.0-BETA running in a VirtualBox
>            Reporter: Cedric Meury
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 4.0, 4.1, 5.0
>
>         Attachments: SOLR-3903.patch
>
>
> *Observation*
> * When the code pasted below is executed, a MissingFormatArgumentException is raised
(Format specifier 's').
> * If setAction(..) is not called, no exception is thrown.
> *Solution*
> * Fixing the format call in ConcurrentUpdateSolrServer:164 might resolve the issue.
> *Information*
> * The issue is present in [trunk|http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.java?view=markup].
> * I don't have the resources available to submit a proper patch at the moment, but might
do so in the future. Meanwhile I'm posting this bug to let you know.
> {code:java}
> ConcurrentUpdateSolrServer server = new ConcurrentUpdateSolrServer("http://localhost:8983/solr/collection1",
2, 2);
> UpdateRequest updateRequest = new UpdateRequest();
> SolrInputDocument document = new SolrInputDocument();
> updateRequest.add(document);
> updateRequest.setAction(UpdateRequest.ACTION.COMMIT, false, false);
> server.request(updateRequest);
> server.commit();
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message