[ 
https://issues.apache.org/jira/browse/SOLR-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man resolved SOLR-3903.
----------------------------

       Resolution: Fixed
    Fix Version/s: 5.0
                   4.1

Committed revision 1393794. - trunk
Committed revision 1393801. - branch_4x
Committed revision 1393804. - lucene_solr_4_0

                
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to