jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Haderka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-2655) initVersions crashes with NPE
Date Thu, 07 Jul 2011 11:52:16 GMT

    [ https://issues.apache.org/jira/browse/JCR-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061229#comment-13061229
] 

Jan Haderka commented on JCR-2655:
----------------------------------

Hi Jukka,

can I ask why you "unblocked" the 1.6.3 when the issue is fixed only in 2.2.0? Imho this issue
is still a blocker for 1.6 branch.
Would it be possible to backport the fix?

Also the fix in 2.2.0 seems to be just working around the problem, but not attempting to fix
already corrupted version history. Is there a way to fix this problem by removing the invalid
versions?

Thanks.

> initVersions crashes with NPE
> -----------------------------
>
>                 Key: JCR-2655
>                 URL: https://issues.apache.org/jira/browse/JCR-2655
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: versioning
>    Affects Versions: 1.6.2, 2.1.0
>            Reporter: Juergen Melzer
>            Assignee: Tobias Bocanegra
>            Priority: Blocker
>              Labels: VersionHistory, VersionIterator
>             Fix For: 2.2.0
>
>
> After delete some old versions. I get serious problems accessing the version history.
> This is the stacktrace:
> java.lang.NullPointerException
> 	at org.apache.jackrabbit.core.version.VersionIteratorImpl.initVersions(VersionIteratorImpl.java:169)
> 	at org.apache.jackrabbit.core.version.VersionIteratorImpl.<init>(VersionIteratorImpl.java:87)
> 	at org.apache.jackrabbit.core.version.VersionIteratorImpl.<init>(VersionIteratorImpl.java:72)
> 	at org.apache.jackrabbit.core.version.VersionHistoryImpl.getAllVersions(VersionHistoryImpl.java:92)
> I stepped threw the code and see that the Method 
>     currentVersion.getSuccessors() 
> returns an empty Array.
> After all the VersionHistory seems to be corrupt!!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message