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

Add the constructor with no argument to SolrInputDocument

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.1
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None

      Description

      I'm working on create a patch to upgrade Solr 6.0.1 for Flume.

      Issue : https://issues.apache.org/jira/browse/FLUME-2919

      Since Solr 6.1.0 has been released, I'm trying to create a patch to upgrade 6.1.0 again.
      But, java.lang.NoSuchMethodError occurs at compile time owing to the constructor with no argument has been removed from the SolrInputDocument by SOLR-9065.

      Caused by: java.lang.NoSuchMethodError: org.apache.solr.common.SolrInputDocument: method <init>()V not found
        at org.apache.solr.handler.extraction.SolrContentHandler.<init>(SolrContentHandler.java:90)
        at org.apache.solr.morphlines.cell.TrimSolrContentHandlerFactory$TrimSolrContentHandler.<init>(TrimSolrContentHandlerFactory.java:50)
        at org.apache.solr.morphlines.cell.TrimSolrContentHandlerFactory.createSolrContentHandler(TrimSolrContentHandlerFactory.java:40)
        at org.apache.solr.morphlines.cell.SolrCellBuilder$SolrCell.doProcess(SolrCellBuilder.java:232)
        at org.kitesdk.morphline.stdio.AbstractParser.doProcess(AbstractParser.java:96)
        at org.kitesdk.morphline.base.AbstractCommand.process(AbstractCommand.java:156)
        at org.kitesdk.morphline.base.Connector.process(Connector.java:64)
        at org.kitesdk.morphline.base.AbstractCommand.doProcess(AbstractCommand.java:181)
        at org.kitesdk.morphline.stdlib.LogCommand.doProcess(LogCommand.java:56)
        at org.kitesdk.morphline.stdlib.LogDebugBuilder$LogDebug.doProcess(LogDebugBuilder.java:56)
        at org.kitesdk.morphline.base.AbstractCommand.process(AbstractCommand.java:156)
        at org.kitesdk.morphline.stdlib.TryRulesBuilder$TryRules.doProcess(TryRulesBuilder.java:115)
        at org.kitesdk.morphline.base.AbstractCommand.process(AbstractCommand.java:156)
        at org.kitesdk.morphline.base.Connector.process(Connector.java:64)
        at org.kitesdk.morphline.base.AbstractCommand.doProcess(AbstractCommand.java:181)
        at org.kitesdk.morphline.tika.DetectMimeTypeBuilder$DetectMimeType.doProcess(DetectMimeTypeBuilder.java:166)
        at org.kitesdk.morphline.base.AbstractCommand.process(AbstractCommand.java:156)
        at org.kitesdk.morphline.base.Connector.process(Connector.java:64)
        at org.kitesdk.morphline.scriptengine.java.scripts.MyJavaClass6.eval(MyJavaClass6.java:15)
        ... 69 more
      

      It could not invoke the constructor with variable arguments using java reflection. Please restore the no arguments constructor to SolrInputDocument.

        Attachments

        1. SOLR-9373.patch
          0.7 kB
          Minoru Osuka

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                minoru Minoru Osuka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: