lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris sleeman" <>
Subject IllegalArgumentException with Solrj DocumentObjectBinder
Date Sat, 19 Jul 2008 13:40:09 GMT

I have a multivalued Solr text field, called 'categories', which is mapped
to a String[] in my java bean. I am directly converting the search results
to this bean.
This works absolutely fine if the field has two or more values, but If the
field has exactly one value, I get the following exception -

*Caused by: java.lang.RuntimeException: Exception while setting value
: [Ljava.lang.Object;@15b48b2 on private java.lang.String[]
	at org.apache.solr.client.solrj.beans.DocumentObjectBinder$DocField.set(
	at org.apache.solr.client.solrj.beans.DocumentObjectBinder$DocField.inject(
	at org.apache.solr.client.solrj.beans.DocumentObjectBinder.getBeans(
	at org.apache.solr.client.solrj.response.QueryResponse.getBeans(

Is this a bug or am I missing something? I am using the latest 1.3 build.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message