jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HUI BON HOA, Cécile (ext.) <cecile.huibonhoa.prestata...@sfr.com>
Subject Problem while upgrading from Jackrabbit 1.6.4 to jackrabbit 2.2.9
Date Tue, 13 Dec 2011 08:17:32 GMT
Hello everyone,

    We were using our Jackrabbit content repository in version 1.6.4 on JBOSS 4.2.3. Everything
worked well, and we decided to upgrade to Jackrabbit v2.2.9.
We can now add documents and get documents created with the 1.6.4 version but if we try to
get the history versions of a document we have an error :

Code :
VersionManager versionManager = getVersionManager(session);
String pathNode = resNode.getPath();
VersionHistory history = versionManager.getVersionHistory(pathNode);

Error :
Caused by: java.lang.NullPointerException
                at org.apache.jackrabbit.core.VersionManagerImpl$4.perform(VersionManagerImpl.java:184)
                at org.apache.jackrabbit.core.VersionManagerImpl$4.perform(VersionManagerImpl.java:179)
                at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
                at org.apache.jackrabbit.core.VersionManagerImpl.perform(VersionManagerImpl.java:95)
                at org.apache.jackrabbit.core.VersionManagerImpl.getVersionHistory(VersionManagerImpl.java:179)
                at com.soa.document.RepositoryManagerImpl.handleGetVersions(RepositoryManagerImpl.java:319)
                at com.soa.document.RepositoryManagerBase.getVersions(RepositoryManagerBase.java:194)
                at sun.reflect.GeneratedMethodAccessor3645.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
                at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
                at $Proxy189.getVersions(Unknown Source)

We think that it may correct the problem if we rebuild all of the indexes, can you tell me
if it is the solution or if there is another one ?

Thanks,

Cécile.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message