Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 61935 invoked from network); 5 Nov 2009 13:31:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 13:31:13 -0000 Received: (qmail 5230 invoked by uid 500); 5 Nov 2009 13:31:12 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 5145 invoked by uid 500); 5 Nov 2009 13:31:12 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 5135 invoked by uid 99); 5 Nov 2009 13:31:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 13:31:12 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 13:31:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A7FEE234C052 for ; Thu, 5 Nov 2009 05:30:48 -0800 (PST) Message-ID: <1431936554.1257427848686.JavaMail.jira@brutus> Date: Thu, 5 Nov 2009 13:30:48 +0000 (UTC) From: "Joey Surls (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (LUCENE-2032) Spatial Filters not Serializable In-Reply-To: <256148576.1257369152582.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773925#action_12773925 ] Joey Surls edited comment on LUCENE-2032 at 11/5/09 1:28 PM: ------------------------------------------------------------- CartesianShapeFilter also uses the non-Serializable class Shape I think all that is needed is to add Serializable to Shape The following code can be used to verify any other embedded classes not serialized: {code:title=Test.java|borderStyle=solid} private static boolean isSerializable(Serializable o) throws IOException{ try{ ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(bos); oos.writeObject(o); return true; }catch(NotSerializableException e){ e.printStackTrace(); return false; } } {code} was (Author: jsurls): CartesianShapeFilter also uses the non-Serializable class Shape I think all that is needed is to add Serializable to Shape The following code can be used to verify any other embedded classes not serialized: private static boolean isSerializable(Serializable o) throws IOException{ try{ ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(bos); oos.writeObject(o); return true; }catch(NotSerializableException e){ e.printStackTrace(); return false; } } > Spatial Filters not Serializable > -------------------------------- > > Key: LUCENE-2032 > URL: https://issues.apache.org/jira/browse/LUCENE-2032 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.9 > Reporter: Joey Surls > Assignee: Uwe Schindler > Fix For: 3.0 > > Attachments: LUCENE-2032.patch > > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > I am using Lucene in a distributed setup. > The Filters in the spatial project aren't Serializable even though it inherits it from Filter. Filter is a Serializable class. > DistanceFilter contains the non-Serializable class WeakHashMap. > CartesianShapeFilter contains the non-Serializable class java.util.logging.Logger -- 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: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org