[jira] [Updated] (JCR-2655) initVersions crashes with NPE
[ https://issues.apache.org/jira/browse/JCR-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-2655: --- Fix Version/s: 2.1.6 2.0.4 > can I ask why you "unblocked" the 1.6.3 when the issue is fixed only in 2.2.0? We didn't have a fix ready in time for 1.6.3, and I considered it more important to have the other fixes in the 1.6.x branches released at the time without waiting for this fix. > Would it be possible to backport the fix? Backporting the fix to 1.6.x is non-trivial, since the relevant code has evolved quite a bit since the 1.6 branch was created. I have now backported the fix to the 2.1 and 2.0 branches (see revisions 1174686 and 1174688). I would recommend upgrading to 2.x since we're in any case about to declare the end of life of the 1.6 branch after the next patch release. > 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? I haven't tried it, but with this fix in place you should be able to access and modify the version history, so removing broken versions should be possible. > 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.0.4, 2.1.6, 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.(VersionIteratorImpl.java:87) > at > org.apache.jackrabbit.core.version.VersionIteratorImpl.(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
[jira] Updated: (JCR-2655) initVersions crashes with NPE
[ https://issues.apache.org/jira/browse/JCR-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-2655: --- Fix Version/s: (was: 2.1.1) (was: 1.6.3) Unblocking 2.1.1 and 1.6.3. > 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 > 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.(VersionIteratorImpl.java:87) > at > org.apache.jackrabbit.core.version.VersionIteratorImpl.(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. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCR-2655) initVersions crashes with NPE
[ https://issues.apache.org/jira/browse/JCR-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tobias Bocanegra updated JCR-2655: -- Assignee: Tobias Bocanegra Fix Version/s: 1.6.3 2.1.1 i will look at this before the respective releases > 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 > Fix For: 1.6.3, 2.1.1, 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.(VersionIteratorImpl.java:87) > at > org.apache.jackrabbit.core.version.VersionIteratorImpl.(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. - You can reply to this email to add a comment to the issue online.