Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3903

Solrj library raises MissingFormatArgumentException when comitting update requests with parameters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-BETA
    • Fix Version/s: 4.0, 4.1, 6.0
    • Component/s: clients - java
    • Labels:
      None
    • Environment:

      Ubuntu 12.04, Solr 4.0.0-BETA running in a VirtualBox

      Description

      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.
      • 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.
      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();
      

        Attachments

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              c.meury Cedric Meury
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: