Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 88115 invoked from network); 13 Dec 2010 10:42:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 10:42:24 -0000 Received: (qmail 75393 invoked by uid 500); 13 Dec 2010 10:42:23 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 75293 invoked by uid 500); 13 Dec 2010 10:42:23 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 75286 invoked by uid 99); 13 Dec 2010 10:42:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 10:42:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 10:42:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBDAg2DK023278 for ; Mon, 13 Dec 2010 10:42:02 GMT Message-ID: <12649070.87901292236922169.JavaMail.jira@thor> Date: Mon, 13 Dec 2010 05:42:02 -0500 (EST) From: "Maxim Valyanskiy (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1993) SolrJ binary update erro when commitWithin is set. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970771#action_12970771 ] Maxim Valyanskiy commented on SOLR-1993: ---------------------------------------- Paul, could you show workaround code example? > SolrJ binary update erro when commitWithin is set. > -------------------------------------------------- > > Key: SOLR-1993 > URL: https://issues.apache.org/jira/browse/SOLR-1993 > Project: Solr > Issue Type: Bug > Components: clients - java > Affects Versions: 1.4, 1.4.1 > Reporter: Phil Bingley > Priority: Minor > Attachments: SOLR-1993.patch > > > Solr server is unable to unmarshall a binary update request where the commitWithin property is set on the UpdateRequest class. > The client marshalls the request with the following code > if (updateRequest.getCommitWithin() != -1) { > params.add("commitWithin", updateRequest.getCommitWithin()); > } > The property is an int and when the server unmarshalls, the following error happens (can't cast to List due to an Integer element) > SEVERE: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.List > at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.namedListToSolrParams(JavaBinUpdateRequestCodec.java:213) > at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.access$100(JavaBinUpdateRequestCodec.java:40) > at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$2.readOuterMostDocIterator(JavaBinUpdateRequestCodec.java:131) > at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$2.readIterator(JavaBinUpdateRequestCodec.java:126) > at org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:210) > at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$2.readNamedList(JavaBinUpdateRequestCodec.java:112) > at org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:175) > at org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:101) > at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.unmarshal(JavaBinUpdateRequestCodec.java:141) > at org.apache.solr.handler.BinaryUpdateRequestHandler.parseAndLoadDocs(BinaryUpdateRequestHandler.java:68) > at org.apache.solr.handler.BinaryUpdateRequestHandler.access$000(BinaryUpdateRequestHandler.java:46) > at org.apache.solr.handler.BinaryUpdateRequestHandler$1.load(BinaryUpdateRequestHandler.java:55) > at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54) > at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) > at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) > at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) > at java.lang.Thread.run(Thread.java:619) > Workaround is to set the parameter manually as a string value instead of setting using the property on the UpdateRequest class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org