Hi, I am new in SolrJ, at present using Solr 1.2. I have included follwoing jar files in my project, when we run our code we get the following exception. after getting decompiled "SolrServer.class" we found not incompilation problem in add(SolerServer s) and UpdateResponse.process( ) method I am just wonderring that why this is behaving like this. Please help me to resolve this problem or any one have code to index by solrJ please send. is there any more jar file inlcuded? Source code of SolrJ Client to index the docuement is attached with this mail.
Jar files are: commons-io-1.3.1.jar commons-httpclient-3.1.jar commons-codec-1.3.jar commons-logging-1.0.4.jar apache-solr-common-nightly.jar apache-solr-solrj-nightly.jar stax-1.2.0-dev.jar stax-api-1.0.jar stax-utils.jar Exception are: java.lang.ClassCastException: java.lang.Long at org.apache.solr.common.util.NamedListCodec.unmarshal(NamedListCodec.java:89) at org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:39) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:385) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183) at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:63) Thanks & Regards, Ranjeet Jha