You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <di...@incubator.apache.org> on 2004/10/27 22:43:32 UTC

[jira] Created: (DIREVE-54) Comparator serialization issue causing a NPE

Comparator serialization issue causing a NPE
--------------------------------------------

         Key: DIREVE-54
         URL: http://issues.apache.org/jira/browse/DIREVE-54
     Project: Directory Eve
        Type: Bug
  Components: jdbm database  
    Reporter: Alex Karasulu
 Assigned to: Alex Karasulu 
    Priority: Blocker


On a restart using an existing database, JDBM tries to resusitate serialized comparators for indices.  Some transient properties are not there when deserialized and cause the NPE.  We need to have a clear strategy for how we intend to deal with this Comparator issue.

Alex 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIREVE-54) Comparator serialization issue causing a NPE

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/DIREVE-54?page=history ]
     
Alex Karasulu closed DIREVE-54:
-------------------------------


> Comparator serialization issue causing a NPE
> --------------------------------------------
>
>          Key: DIREVE-54
>          URL: http://nagoya.apache.org/jira/browse/DIREVE-54
>      Project: Directory Eve
>         Type: Bug
>   Components: jdbm database
>     Reporter: Alex Karasulu
>     Assignee: Alex Karasulu
>     Priority: Blocker

>
> On a restart using an existing database, JDBM tries to resusitate serialized comparators for indices.  Some transient properties are not there when deserialized and cause the NPE.  We need to have a clear strategy for how we intend to deal with this Comparator issue.
> Alex 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIREVE-54) Comparator serialization issue causing a NPE

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-54?page=comments#action_54714 ]
     
Alex Karasulu commented on DIREVE-54:
-------------------------------------

Here's a test case that makes bug occur:

http://svn.apache.org/viewcvs.cgi/incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/ComparatorNPEBugTest.java?rev=55750&view=auto

When this test passes we know that the bug is gone.

> Comparator serialization issue causing a NPE
> --------------------------------------------
>
>          Key: DIREVE-54
>          URL: http://issues.apache.org/jira/browse/DIREVE-54
>      Project: Directory Eve
>         Type: Bug
>   Components: jdbm database
>     Reporter: Alex Karasulu
>     Assignee: Alex Karasulu
>     Priority: Blocker

>
> On a restart using an existing database, JDBM tries to resusitate serialized comparators for indices.  Some transient properties are not there when deserialized and cause the NPE.  We need to have a clear strategy for how we intend to deal with this Comparator issue.
> Alex 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DIREVE-54) Comparator serialization issue causing a NPE

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-54?page=history ]
     
Alex Karasulu resolved DIREVE-54:
---------------------------------

    Resolution: Fixed

Committed revision 55762.

Switch from using a ThreadLocal as the basis for recovering underlying non-serializable comparators to using the global comparator registry.  Did on mass replacement of things.  You can take a look at the changes here:

http://svn.apache.org/viewcvs.cgi?rev=55762&view=rev



> Comparator serialization issue causing a NPE
> --------------------------------------------
>
>          Key: DIREVE-54
>          URL: http://issues.apache.org/jira/browse/DIREVE-54
>      Project: Directory Eve
>         Type: Bug
>   Components: jdbm database
>     Reporter: Alex Karasulu
>     Assignee: Alex Karasulu
>     Priority: Blocker

>
> On a restart using an existing database, JDBM tries to resusitate serialized comparators for indices.  Some transient properties are not there when deserialized and cause the NPE.  We need to have a clear strategy for how we intend to deal with this Comparator issue.
> Alex 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira