: yes i am running 1.5, Any idea how we can run Solr 1.4 using Java 1.5

Solr 1.4 works just fine with Java 1.5 -- even when Using the 
DataImportHandler.

there are some features of DIH like the  ScriptTransformer that requires 
java 1.6, but that's not your issue...

: > Last I encountered that exception was with the usage of String.isEmpty
: > which is a 1.6 novelty.

...the line in question in the stack trace provided has nothign to do with 
String.isEmpty.

>> Caused by: java.lang.NoSuchMethodError: isEmpty
>> at 
>> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:391)

the object in question is a DocWrapper which inherits from 
SolrInputDocument which defines isEmpty.  if you are getting this error it 
suggests that something is wonky with your classpath, and you probably 
have multiple versions of some solr jars getting included by mistake -- in 
particular an old copy of the solr-common jar where SolrInputDocument is 
defined.



-Hoss

Reply via email to