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

Dataimport fails with java.lang.NoSuchMethodError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 4.0-BETA
    • Fix Version/s: 4.0-ALPHA
    • Labels:
      None
    • Environment:

      Red Hat Enterprise Linux Server release 6.3 (Santiago)
      jboss-as-7.1.1.Final
      Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
      Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)

      Description

      While running dataimport with JdbcDataSoure and SQLEntityProcessor
      This worked with Solr-4.0.0-ALPHA. Bug apparently introduced in 4.0.0-BETA.
      Here is the exception from the full-import command:

      21:00:28,982 ERROR [org.apache.solr.handler.dataimport.JdbcDataSource] (Thread-70) Ignoring Error when closing connection: java.sql.SQLException: Streaming result set com.mysql.jdbc.RowDataDynamic@30163b85 is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
      at com.mysql.jdbc.MysqlIO.checkForOutstandingStreamingData(MysqlIO.java:2747)
      at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1911)
      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
      at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2618)
      at com.mysql.jdbc.ConnectionImpl.rollbackNoChecks(ConnectionImpl.java:4833)
      at com.mysql.jdbc.ConnectionImpl.rollback(ConnectionImpl.java:4719)
      at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4328)
      at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1556)
      at org.apache.solr.handler.dataimport.JdbcDataSource.closeConnection(JdbcDataSource.java:400)
      at org.apache.solr.handler.dataimport.JdbcDataSource.close(JdbcDataSource.java:391)
      at org.apache.solr.handler.dataimport.DocBuilder.closeEntityProcessorWrappers(DocBuilder.java:291)
      at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:280)
      at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:382)
      at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:448)
      at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:429)

      21:00:28,991 ERROR [org.apache.solr.handler.dataimport.DataImporter] (Thread-70) Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.NoSuchMethodError: org.apache.lucene.analysis.charfilter.HTMLStripCharFilter.<init>(Ljava/io/Reader;)V
      at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:273)
      at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:382)
      at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:448)
      at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:429)
      Caused by: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.NoSuchMethodError: org.apache.lucene.analysis.charfilter.HTMLStripCharFilter.<init>(Ljava/io/Reader;)V
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:413)
      at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:326)
      at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:234)
      ... 3 more
      Caused by: org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.NoSuchMethodError: org.apache.lucene.analysis.charfilter.HTMLStripCharFilter.<init>(Ljava/io/Reader;)V
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:542)
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:411)
      ... 5 more
      Caused by: java.lang.NoSuchMethodError: org.apache.lucene.analysis.charfilter.HTMLStripCharFilter.<init>(Ljava/io/Reader;)V
      at org.apache.solr.handler.dataimport.HTMLStripTransformer.stripHTML(HTMLStripTransformer.java:75)
      at org.apache.solr.handler.dataimport.HTMLStripTransformer.transformRow(HTMLStripTransformer.java:63)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              magnarito Magnar Martinsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: