Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] Commented: (LUCENE-2032) Spatial Filters not Serializable

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Nov 4, 2009, 3:39 PM

Post #1 of 3 (190 views)
Permalink
[jira] Commented: (LUCENE-2032) Spatial Filters not Serializable

[ https://issues.apache.org/jira/browse/LUCENE-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773704#action_12773704 ]

Robert Muir commented on LUCENE-2032:
-------------------------------------

Hi Joey, do you have a patch by any chance?

i think you will have to write a readObject() to fix this.

> 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
> 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 [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene


jira at apache

Nov 5, 2009, 9:25 AM

Post #2 of 3 (169 views)
Permalink
[jira] Commented: (LUCENE-2032) Spatial Filters not Serializable [In reply to]

[ https://issues.apache.org/jira/browse/LUCENE-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773984#action_12773984 ]

Uwe Schindler commented on LUCENE-2032:
---------------------------------------

The trick is to make the logging object "static final", because it is not needed per instance. See my patch from yesterday.

> 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: Simon Willnauer
> Fix For: 3.0
>
> Attachments: LUCENE-2032.patch, LUCENE-2032.txt
>
> 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 [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene


jira at apache

Nov 5, 2009, 9:43 AM

Post #3 of 3 (165 views)
Permalink
[jira] Commented: (LUCENE-2032) Spatial Filters not Serializable [In reply to]

[ https://issues.apache.org/jira/browse/LUCENE-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773995#action_12773995 ]

Simon Willnauer commented on LUCENE-2032:
-----------------------------------------

bq. The trick is to make the logging object "static final", because it is not needed per instance. See my patch from yesterday.

I actually remove that on purpose. There is no other logging code outside of spatial and I guess consistency should go first in that case. Especially for logging it would make sense to have it static and final even if it is not serialized.

> 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: Simon Willnauer
> Fix For: 3.0
>
> Attachments: LUCENE-2032.patch, LUCENE-2032.txt
>
> 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 [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.