jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pamarthi, Ramakrishna" <rk.pamar...@hp.com>
Subject RE: Upgrading to Jackrabbit 1.3.1 - ERROR
Date Wed, 19 Sep 2007 13:26:51 GMT
Hi Stefan,

Thank you very much for your reply. 
We have changed the file as you suggested and now its working fine.


Best Regards,
RK

-----Original Message-----
From: Stefan Guggisberg [mailto:stefan.guggisberg@gmail.com] 
Sent: Wednesday, September 19, 2007 3:36 PM
To: users@jackrabbit.apache.org
Subject: Re: Upgrading to Jackrabbit 1.3.1 - ERROR

hi,

On 9/19/07, Pamarthi, Ramakrishna <rk.pamarthi@hp.com> wrote:
> Hi All,
>
> We are moving from version jackrabbit 1.0 to jackrabbit 1.3.1.

the exception below indicates that you're trying to read content that
was written using a pre-1.0 jackrabbit release.

in oct 2005 we've changed the low-level data model by introducing a
modCount field. jackrabbit 1.0 was released in april 2006.

for more details see
http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/4137

WRT your problem: you could e.g. create your own XMLPersistenceManager,
patching line 248 as follows:

-        state.setModCount(Short.parseShort(modCount));
+        state.setModCount(modCount != null ? Short.parseShort(modCount)

+ : 0);

however, since you're trying to migrate from an unreleased version, i am
not sure if that's the only issue you'll encounter.

cheers
stefan

> We have added following jars:
>
> jackrabbit-api-1.3.1.jar
> jackrabbit-core-1.3.1.jar
> jackrabbit-jcr-commons-1.3.1.jar
> jcl104-over-slf4j-1.4.3.jar
> log4j-1.2.15.jar
> slf4j-api-1.4.3.jar
> slf4j-log4j12-1.4.3.jar
> lucene-core-2.0.0.jar
>
> We are getting the following error while starting the repository.
>
> Please advise.
>
> Here is the error details:
>
> 19.09.2007 13:34:13 *INFO * [main] Init: [None] OCS RepositoryServlet 
> initializing.. (OcsLogger.java, line 80)
> 19.09.2007 13:34:13 *INFO * [main] Init: [None] repository-home   =
> C:\OCSWORKSPACE\data\jcr (OcsLogger.java, line 80)
> 19.09.2007 13:34:13 *INFO * [main] Init: [None] repository-config = 
> C:\OCSWORKSPACE\OCS_WEB\.deployables\OCS_WEB\WEB-INF\content-repositor
> y\ repository.xml (OcsLogger.java, line 80)
> 19.09.2007 13:34:13 *INFO * [main] Init: [None] repository-name   =
> ocs.repository (OcsLogger.java, line 80)
> 19.09.2007 13:34:13 *INFO * [main] Init: [None] jaas config       =
> C:\OCSWORKSPACE\OCS_WEB\.deployables\OCS_WEB\WEB-INF\content-repositor
> y\
> jaas.config (OcsLogger.java, line 80)
> 19.09.2007 13:34:13 *INFO * [main] RepositoryImpl: Starting 
> repository... (RepositoryImpl.java, line 223)
> 19.09.2007 13:34:13 *WARN * [main] RepositoryLock: Existing lock file 
> C:\OCSWORKSPACE\data\jcr\.lock detected. Repository was not shut down 
> properly. (RepositoryLock.java, line 111)
> 19.09.2007 13:34:13 *INFO * [main] LocalFileSystem: LocalFileSystem 
> initialized at path C:\OCSWORKSPACE\data\jcr\repository
> (LocalFileSystem.java, line 166)
> 19.09.2007 13:34:14 *INFO * [main] FileJournal: FileJournal 
> initialized at path: C:\OCSWORKSPACE\data\jcr/../shared 
> (FileJournal.java, line 126)
> 19.09.2007 13:34:14 *INFO * [main] LocalFileSystem: LocalFileSystem 
> initialized at path C:\OCSWORKSPACE\data\jcr\version 
> (LocalFileSystem.java, line 166)
> 19.09.2007 13:34:14 *INFO * [main] LocalFileSystem: LocalFileSystem 
> initialized at path C:\OCSWORKSPACE\data\jcr\version\blobs
> (LocalFileSystem.java, line 166)
> 19.09.2007 13:34:14 *ERROR* [main] [/OCS_WEB]: 
> StandardWrapper.Throwable (ApplicationContext.java, line 662)
> java.lang.NumberFormatException: null
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.lang.Short.parseShort(Unknown Source)
>         at java.lang.Short.parseShort(Unknown Source)
>         at
> org.apache.jackrabbit.core.persistence.xml.XMLPersistenceManager.readS
> ta
> te(XMLPersistenceManager.java:248)
>         at
> org.apache.jackrabbit.core.persistence.xml.XMLPersistenceManager.load(
> XM
> LPersistenceManager.java:483)
>         at
> org.apache.jackrabbit.core.state.SharedItemStateManager.loadItemState(
> Sh
> aredItemStateManager.java:1153)
>         at
> org.apache.jackrabbit.core.state.SharedItemStateManager.getNonVirtualI
> te
> mState(SharedItemStateManager.java:1080)
>         at
> org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(S
> ha
> redItemStateManager.java:252)
>         at
> org.apache.jackrabbit.core.state.LocalItemStateManager.getNodeState(Lo
> ca
> lItemStateManager.java:95)
>         at
> org.apache.jackrabbit.core.state.LocalItemStateManager.getItemState(Lo
> ca
> lItemStateManager.java:150)
>         at
> org.apache.jackrabbit.core.version.VersionManagerImpl.<init>(VersionMa
> na
> gerImpl.java:166)
>         at
> org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(Reposit
> or
> yImpl.java:365)
>         at
> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:2
> 75
> )
>         at
> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:5
> 21
> )
>         at
> com.hp.ocs.j2ee.RepositoryServlet.startRepository(RepositoryServlet.ja
> va
> :337)
>         at
> com.hp.ocs.j2ee.RepositoryServlet.init(RepositoryServlet.java:191)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
> av
> a:1068)
>         at
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext
> .j
> ava:3823)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:40
> 87
> )
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
>         at
>
org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>         at
org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
> 19.09.2007 13:34:14 *ERROR* [main] [/OCS_WEB]: Servlet /OCS_WEB threw
> load() exception (ApplicationContext.java, line 662)
> javax.servlet.ServletException: Servlet.init() for servlet Repository 
> threw exception
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
> av
> a:1109)
>         at
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext
> .j
> ava:3823)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:40
> 87
> )
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
>         at
>
org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>         at
org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>
>

Mime
View raw message