lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pulkit Singhal (Created) (JIRA)" <>
Subject [jira] [Created] (SOLR-2804) Logging error causes entire DIH process to fail
Date Sun, 02 Oct 2011 04:14:34 GMT
Logging error causes entire DIH process to fail

                 Key: SOLR-2804
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 4.0
         Environment: java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)

Model Name:	MacBook Pro
  Model Identifier:	MacBookPro8,2
  Processor Name:	Intel Core i7
  Processor Speed:	2.2 GHz
  Number of Processors:	1
  Total Number of Cores:	4
  L2 Cache (per Core):	256 KB
  L3 Cache:	6 MB
  Memory:	4 GB

System Software Overview:
  System Version:	Mac OS X 10.6.8 (10K549)
  Kernel Version:	Darwin 10.8.0
            Reporter: Pulkit Singhal

Its rather strange stacktrace(at the bottom). An entire 10000+ dataset finishes up only to
end up crashing & burning
due to a log statement :)

Based on what I can tell from the stacktrace and the 4.x trunk source
code, it seems that the follwoign log statement dies:
   // ""+toLog + " 0 " + (elapsed) );

Eventually at the strict cast:
   return (String)nvPairs.get(idx << 1);

I was wondering what kind of mistaken data would I have to be crunching in order to have it
end up getting misplaced into:
   private final NamedList<Object> toLog;
to cause the java.util.ArrayList cannot be cast to java.lang.String issue?

Could it be due to the multivalued fields that I'm trying to index?
Is this a bug or just a mistake in how I use DIH, please let me know
your thoughts!

SEVERE: Full Import failed:java.lang.ClassCastException:
java.util.ArrayList cannot be cast to java.lang.String
       at org.apache.solr.common.util.NamedList.getName(
       at org.apache.solr.common.util.NamedList.toString(
       at java.lang.String.valueOf(
       at java.lang.StringBuilder.append(
       at org.apache.solr.update.processor.LogUpdateProcessor.finish(
       at org.apache.solr.handler.dataimport.SolrWriter.close(
       at org.apache.solr.handler.dataimport.DocBuilder.execute(
       at org.apache.solr.handler.dataimport.DataImporter.doFullImport(
       at org.apache.solr.handler.dataimport.DataImporter.runCmd(
       at org.apache.solr.handler.dataimport.DataImporter$

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message