You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Torgeir Veimo <to...@gmail.com> on 2014/07/11 17:54:05 UTC
oak-run upgrade
Am getting
Exception in thread "main" javax.jcr.RepositoryException: Failed to copy content
at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUpgrade.java:307)
at org.apache.jackrabbit.oak.run.Main.upgrade(Main.java:342)
at org.apache.jackrabbit.oak.run.Main.main(Main.java:113)
Caused by: java.lang.IllegalArgumentException: Invalid name:
at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.checkValidName(AbstractNodeState.java:61)
when I try to upgrade a jackrabbit 2.8.0 repository. Is there any way
to specify a verbosity parameter or trace log in order to see which
node has an invalid name?
Also, it looks like the README.md file for oak run has swapped the
order of the parameters for repository directory and repository.xml
file in the example?
--
-Tor
Re: oak-run upgrade
Posted by Torgeir Veimo <to...@gmail.com>.
Just to complete this issue, it seems that having
org.apache.jackrabbit.oak.plugins.name.NameSpaces.addCustomMapping()
return "" for empty name spaces instead of throwing an exception lets
the upgrade complete successfully.
On 12 July 2014 14:43, Torgeir Veimo <to...@gmail.com> wrote:
> On 11 July 2014 17:54, Torgeir Veimo <to...@gmail.com> wrote:
>> Am getting
>>
>> Exception in thread "main" javax.jcr.RepositoryException: Failed to copy content
>>
>> at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUpgrade.java:307)
>>
>> at org.apache.jackrabbit.oak.run.Main.upgrade(Main.java:342)
>>
>> at org.apache.jackrabbit.oak.run.Main.main(Main.java:113)
>>
>> Caused by: java.lang.IllegalArgumentException: Invalid name:
>>
>> at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.checkValidName(AbstractNodeState.java:61)
>>
>> when I try to upgrade a jackrabbit 2.8.0 repository. Is there any way
>> to specify a verbosity parameter or trace log in order to see which
>> node has an invalid name?
>>
>> Also, it looks like the README.md file for oak run has swapped the
>> order of the parameters for repository directory and repository.xml
>> file in the example?
>
> It seems this is due to my repository having the namespace "":"". I am
> not sure how this has happened, and jackrabbit has never complained.
> Also, I can't remove them using jackrabbit itself since I then get the
> exception
>
> javax.jcr.NamespaceException: unregistering namespaces is not supported.
--
-Tor
Re: oak-run upgrade
Posted by Torgeir Veimo <to...@gmail.com>.
On 11 July 2014 17:54, Torgeir Veimo <to...@gmail.com> wrote:
> Am getting
>
> Exception in thread "main" javax.jcr.RepositoryException: Failed to copy content
>
> at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUpgrade.java:307)
>
> at org.apache.jackrabbit.oak.run.Main.upgrade(Main.java:342)
>
> at org.apache.jackrabbit.oak.run.Main.main(Main.java:113)
>
> Caused by: java.lang.IllegalArgumentException: Invalid name:
>
> at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.checkValidName(AbstractNodeState.java:61)
>
> when I try to upgrade a jackrabbit 2.8.0 repository. Is there any way
> to specify a verbosity parameter or trace log in order to see which
> node has an invalid name?
>
> Also, it looks like the README.md file for oak run has swapped the
> order of the parameters for repository directory and repository.xml
> file in the example?
It seems this is due to my repository having the namespace "":"". I am
not sure how this has happened, and jackrabbit has never complained.
Also, I can't remove them using jackrabbit itself since I then get the
exception
javax.jcr.NamespaceException: unregistering namespaces is not supported.