jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hakutechien <c...@inmail.sk>
Subject ERROR org.apache.jackrabbit.core.RepositoryImpl - Failed to initialize workspace 'default'
Date Thu, 28 Aug 2008 18:33:15 GMT

Hello,

I am new to jackrabbit, and I was just trying First Hobs. But it seems not
working for me. Could you please help me? The code from website compiles
fine, but in runtime it throws an exception.

this is the full output log:

172 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting
repository...
188 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path repository\repository
375 [main] INFO org.apache.jackrabbit.core.nodetype.NodeTypeRegistry - no
custom node type definitions found
375 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path repository\version
969 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
- Database: Apache Derby / 10.2.1.6 - (452058)
969 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
- Driver: Apache Derby Embedded JDBC Driver / 10.2.1.6 - (452058)
1719 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing
workspace 'default'...
1719 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path repository\workspaces\default
1766 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
- Database: Apache Derby / 10.2.1.6 - (452058)
1766 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
- Driver: Apache Derby Embedded JDBC Driver / 10.2.1.6 - (452058)
1984 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace
'default' initialized
2156 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path repository\repository\index
2188 [main] ERROR org.apache.jackrabbit.core.RepositoryImpl - Failed to
initialize workspace 'default'
javax.jcr.RepositoryException: Unknown format version: -4: Unknown format
version: -4: Unknown format version: -4
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:584)
        at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
        at
org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:625)
        at
org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:104)
        at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
        at
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
        at
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
        at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
        at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
        at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
        at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
        at jackandrabbit.Main.main(Main.java:13)
Caused by: org.apache.lucene.index.CorruptIndexException: Unknown format
version: -4
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204)
        at
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:610)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
        at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:223)
        at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.getNumDocuments(PersistentIndex.java:178)
        at
org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:295)
        at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
        at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
        ... 13 more
org.apache.lucene.index.CorruptIndexException: Unknown format version: -4
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204)
        at
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:610)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
        at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:223)
        at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.getNumDocuments(PersistentIndex.java:178)
        at
org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:295)
        at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
        at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
        at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
        at
org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:625)
        at
org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:104)
        at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
        at
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
        at
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
        at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
        at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
        at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
        at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
        at jackandrabbit.Main.main(Main.java:13)
2328 [main] ERROR org.apache.jackrabbit.core.RepositoryImpl - Unable to
start repository, forcing shutdown...
2328 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Shutting down
repository...
2328 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - shutting down
workspace 'default'...
2328 [main] INFO
org.apache.jackrabbit.core.observation.ObservationDispatcher - Notification
of EventListeners stopped.
2406 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager -
Database 'repository\workspaces\default/db' shutdown.
2406 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace
'default' has been shutdown
2453 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager -
Database 'repository/version/db' shutdown.
2469 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository has
been shutdown
2469 [main] ERROR org.apache.jackrabbit.core.RepositoryImpl - failed to
start Repository: Unknown format version: -4: Unknown format version: -4
javax.jcr.RepositoryException: Unknown format version: -4: Unknown format
version: -4: Unknown format version: -4
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:584)
        at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
        at
org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:625)
        at
org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:104)
        at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
        at
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
        at
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
        at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
        at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
        at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
        at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
        at jackandrabbit.Main.main(Main.java:13)
Caused by: org.apache.lucene.index.CorruptIndexException: Unknown format
version: -4
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204)
        at
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:610)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
        at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:223)
        at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.getNumDocuments(PersistentIndex.java:178)
        at
org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:295)
        at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
        at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
        ... 13 more
org.apache.lucene.index.CorruptIndexException: Unknown format version: -4
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204)
        at
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:610)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
        at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:223)
        at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.getNumDocuments(PersistentIndex.java:178)
        at
org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:295)
        at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
        at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
        at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
        at
org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:625)
        at
org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:104)
        at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
        at
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
        at
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
        at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
        at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
        at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
        at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
        at jackandrabbit.Main.main(Main.java:13)
Exception in thread "main" javax.jcr.RepositoryException: Unknown format
version: -4: Unknown format version: -4: Unknown format version: -4
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:584)
        at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
        at
org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:625)
        at
org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:104)
        at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
        at
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
        at
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
        at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
        at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
        at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
        at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
        at jackandrabbit.Main.main(Main.java:13)
Caused by: org.apache.lucene.index.CorruptIndexException: Unknown format
version: -4
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204)
        at
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:610)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
        at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:223)
        at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.getNumDocuments(PersistentIndex.java:178)
        at
org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:295)
        at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
        at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
        ... 13 more
org.apache.lucene.index.CorruptIndexException: Unknown format version: -4
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204)
        at
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:610)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
        at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:223)
        at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.getNumDocuments(PersistentIndex.java:178)
        at
org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:295)
        at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
        at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
        at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
        at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
        at
org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:625)
        at
org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:104)
        at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
        at
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
        at
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
        at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
        at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
        at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
        at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
        at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
        at jackandrabbit.Main.main(Main.java:13)






I tried to do various things, but the thing is, error message is not clear
for me to understand, version of What is in unknown format? I mean that is
what the exception is complaining about. I tried to change version of APIs
e.g. core module is on 1.4.5 now and i replaced it with 1.4 instead. no
effect. I could not find anything on google or here in mailing lists. looks
like i am the only having this error. please could someone help me?
-- 
View this message in context: http://www.nabble.com/ERROR-org.apache.jackrabbit.core.RepositoryImpl---Failed-to-initialize-workspace-%27default%27-tp19206336p19206336.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message