You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sadhana <sa...@gmail.com> on 2012/12/19 20:17:00 UTC
Solrj- QueryResponse's getbeans throwing bindingexception
Hi,
I have a state column defined in schema.xml as
<field name="state" type="string" indexed="true" stored="true"
multiValued="true"/>
The getbeans method of Queryrespoinse using solj API is throwing binding
exception as follows..Probably the special characters like [ : / - might be
throwing this error..
org.apache.solr.client.solrj.beans.BindingException: Exception
while setting value : [gqd8z6cq:/A - All] on private java.lang.String
com.farmers.content.vo.ContentDBVO.State
any idea on how to solve this issue please
Thanks
Sadhana
--
View this message in context: http://lucene.472066.n3.nabble.com/Solrj-QueryResponse-s-getbeans-throwing-bindingexception-tp4028126.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solrj- QueryResponse's getbeans throwing bindingexception
Posted by Sadhana <sa...@gmail.com>.
<field name="state" type="string" indexed="true" stored="true"
multiValued="true"/>
Though the type is String its storing the datatype as List because the
mutlitvalued=true in the schema.xml. So the issue got resolved after I
change my datatype of State variable in the POJO from String to List.
Thanks
Sadhana
--
View this message in context: http://lucene.472066.n3.nabble.com/Solrj-QueryResponse-s-getbeans-throwing-bindingexception-tp4028126p4028147.html
Sent from the Solr - User mailing list archive at Nabble.com.