jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sascha.The...@bosch-si.com>
Subject How should I use RepositoryCopier in Jackrabbit 2.2.9
Date Fri, 28 Oct 2011 13:31:57 GMT
Hi all,

 

my code that uses the RepositoryCopier tool doesn`t work in Jackrabbit
2.2.9 anymore. In Jackrabbit 1.6 I had to shutdown the Repository
_before_ using the RepositoryCopier#copy method. Now that causes an
exception:

 

-10-28 15:26:24,821 [main] [ERROR] (o.a.j.c.RepositoryImpl:383) - failed
to start Repository: File system initialization failure.

javax.jcr.RepositoryException: File system initialization failure.

                at
org.apache.jackrabbit.core.config.RepositoryConfigurationParser$6.getFil
eSystem(RepositoryConfigurationParser.java:1060)
~[jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.config.RepositoryConfig.getFileSystem(Reposit
oryConfig.java:911) ~[jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:285
) [jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:605
) [jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:1
49) [jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:1
12) [jackrabbit-core-2.2.9.jar:2.2.9]

                ...

Caused by: org.apache.jackrabbit.core.fs.FileSystemException: failed to
initialize file system

                at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSys
tem.java:210) ~[jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.config.RepositoryConfigurationParser$6.getFil
eSystem(RepositoryConfigurationParser.java:1057)
~[jackrabbit-core-2.2.9.jar:2.2.9]

                ... 51 common frames omitted

Caused by: java.lang.IllegalStateException: this factory has already
been closed

                at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(Connect
ionFactory.java:213) ~[jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(Conne
ctionFactory.java:163) ~[jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.fs.db.DbFileSystem.getDataSource(DbFileSystem
.java:226) ~[jackrabbit-core-2.2.9.jar:2.2.9]

                at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSys
tem.java:190) ~[jackrabbit-core-2.2.9.jar:2.2.9]

                ... 52 common frames omitted

 

 

My question is now: How do I use the RepositoryCopier in Jackrabbit
2.2.9? Is the RepositoryCopier now able to produce hot-backups, that
means I can use the Copier while Jackrabbit is running?

 

BR,

 

Sascha


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