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

Solrj library raises MissingFormatArgumentException when comitting update requests with parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0-BETA
    • 4.0, 4.1, 6.0
    • clients - java
    • None
    • 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

        1. SOLR-3903.patch
          4 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            c.meury Cedric Meury
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: