jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torgeir.ve...@gmail.com>
Subject Re: builder must be a org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder
Date Tue, 05 May 2015 00:20:27 GMT
Had a look in the source, and it appears this is due to the merge()
method only being available in the DocumentRootBuilder, not in the
NodeBuilder interface?

Is there any other way to move a repository from tar storage to
mongodb without regenerating UUID / identifier values?

On 4 May 2015 at 23:26, Torgeir Veimo <torgeir.veimo@gmail.com> wrote:
> I didn't have much luck on the users list with this problem. Is there
> any work towards upgrading from tarmk to documentmk easier?
>
> I'm trying to move a repository from tarmk to mongodb, and am using
> the oak-run restore command, but am getting an exception;
>
> spazzo:oak-run torgeir$ java -jar ./target/oak-run-1.2.1.jar restore
> mongodb://localhost/oak ~/oak-repository-backup-20150427a
>
> Apache Jackrabbit Oak 1.2.1
> Exception in thread "main" java.lang.IllegalArgumentException: builder
> must be a org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder
> at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.asDocumentRootBuilder(DocumentNodeStore.java:2232)
> at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1490)
> [...]
>
> Looking at the mailing list it might be due to OAK-2049. I've tried
> running the node count script in oak console to find the offending
> node, but it detects no errors.
>
> http://oak-dev.jackrabbit.apache.narkive.com/KVUViR6K/cannot-backup-and-restore-aem-tar-repository
>
> Are there any other things I need to fix in the repository? I've run
> the check, compact and then backup commands on the repository prior to
> trying to restore it to mongodb.
>
> --
> -Tor



-- 
-Tor

Mime
View raw message