jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vlade Maksimović <max...@gmail.com>
Subject Jackrabbit migrate repository
Date Mon, 01 Aug 2011 12:22:01 GMT
Hi, I need to migrate one jackrabbit repository.
My old repository.xml is: repository_old.xml
My new repository.xml is: repository_new.xml

For migration I download jackrabbit standalone server and execute:

java -jar jackrabbit-standalone-1.6.0.jar --backup -r
> C:\data\jackrabbit\data -c C:\data\jackrabbit\repository_old.xml -R
> C:\data\jackrabbit\data-backup\ -C C:\data\jackrabbit\repository_new.xml


When I execute command after some time I see exception:

Exception in thread "main" javax.jcr.RepositoryException: Failed to copy
> content: Unable to copy org.apache.jackrabbit.core.state.NodeState@1ca1588:
> failed to write node state: a7e21876-13cb-465c-8489-f402e53e9193: Unable to
> copy org.apache.jackrabbit.core.state.NodeState@1ca1588: failed to write
> node state: a7e21876-13cb-465c-8489-f4
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:206)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:150)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:111)
>         at org.apache.jackrabbit.standalone.Main.backup(Main.java:188)
>         at org.apache.jackrabbit.standalone.Main.run(Main.java:131)
>         at org.apache.jackrabbit.standalone.Main.main(Main.java:55)
> Caused by: javax.jcr.RepositoryException: Unable to copy
> org.apache.jackrabbit.core.state.NodeState@1ca1588: failed to write node
> state: a7e21876-13cb-465c-8489-f402e53e9193: failed to write node state:
> a7e21876-13cb-465c-8489-f402e53e9193
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:195)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:117)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copyVersionStore(RepositoryCopier.java:255)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:203)
>         ... 5 more
> Caused by: org.apache.jackrabbit.core.state.ItemStateException: failed to
> write node state: a7e21876-13cb-465c-8489-f402e53e9193
>         at
> org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager.store(OraclePersistenceManager.java:194)
>         at
> org.apache.jackrabbit.core.persistence.AbstractPersistenceManager.store(AbstractPersistenceManager.java:82)
>         at
> org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.store(DatabasePersistenceManager.java:304)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:190)
>         ... 13 more
> Caused by: java.sql.SQLException: ORA-00001: unique constraint
> (JACKRABBIT.C_VER_NODE_IDX) violated
>         at
> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
>         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
>         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
>         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
>         at
> oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219)
>         at
> oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970)
>         at
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190)
>         at
> oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370)
>         at
> oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3476)
>         at
> org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.executeStmt(DatabasePersistenceManager.java:889)
>         at
> org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager.store(OraclePersistenceManager.java:187)
>         ... 16 more
> javax.jcr.RepositoryException: Unable to copy
> org.apache.jackrabbit.core.state.NodeState@1ca1588: failed to write node
> state: a7e21876-13cb-465c-8489-f402e53e9193: failed to write node state:
> a7e21876-13cb-465c-8489-f402e53e9193
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:195)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:117)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copyVersionStore(RepositoryCopier.java:255)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:203)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:150)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:111)
>         at org.apache.jackrabbit.standalone.Main.backup(Main.java:188)
>         at org.apache.jackrabbit.standalone.Main.run(Main.java:131)
>         at org.apache.jackrabbit.standalone.Main.main(Main.java:55)
> Caused by: org.apache.jackrabbit.core.state.ItemStateException: failed to
> write node state: a7e21876-13cb-465c-8489-f402e53e9193
>         at
> org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager.store(OraclePersistenceManager.java:194)
>         at
> org.apache.jackrabbit.core.persistence.AbstractPersistenceManager.store(AbstractPersistenceManager.java:82)
>         at
> org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.store(DatabasePersistenceManager.java:304)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:190)
>         ... 13 more
> Caused by: java.sql.SQLException: ORA-00001: unique constraint
> (JACKRABBIT.C_VER_NODE_IDX) violated
>         at
> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
>         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
>         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
>         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
>         at
> oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219)
>         at
> oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970)
>         at
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190)
>         at
> oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370)
>         at
> oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3476)
>         at
> org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.executeStmt(DatabasePersistenceManager.java:889)
>         at
> org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager.store(OraclePersistenceManager.java:187)
>         ... 16 more
> org.apache.jackrabbit.core.state.ItemStateException: failed to write node
> state: a7e21876-13cb-465c-8489-f402e53e9193
>         at
> org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager.store(OraclePersistenceManager.java:194)
>         at
> org.apache.jackrabbit.core.persistence.AbstractPersistenceManager.store(AbstractPersistenceManager.java:82)
>         at
> org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.store(DatabasePersistenceManager.java:304)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:190)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:117)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.persistence.PersistenceCopier.copy(PersistenceCopier.java:114)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copyVersionStore(RepositoryCopier.java:255)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:203)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:150)
>         at
> org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:111)
>         at org.apache.jackrabbit.standalone.Main.backup(Main.java:188)
>         at org.apache.jackrabbit.standalone.Main.run(Main.java:131)
>         at org.apache.jackrabbit.standalone.Main.main(Main.java:55)
> Caused by: java.sql.SQLException: ORA-00001: unique constraint
> (JACKRABBIT.C_VER_NODE_IDX) violated
>         at
> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
>         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
>         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
>         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
>         at
> oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219)
>         at
> oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970)
>         at
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190)
>         at
> oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370)
>         at
> oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3476)
>         at
> org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.executeStmt(DatabasePersistenceManager.java:889)
>         at
> org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager.store(OraclePersistenceManager.java:187)
>         ... 16 more
>

Do you have an idea what the problem is and how I could migrate repository?
My new repository is configured to work in cluster.
Thanks

Mime
View raw message