I have done the following steps:
- cleaned the repository completely
- added a prefix to category0 property (cmed:category0)

and now I cannot reproduce anymore the problem. This should be the good part
of the story.

The questions now:
- why do these incompatibilities appear when upgrading jackrabbit version?
- what is the way to recover content before/after an upgrade?
- are there any known solutions for this kind of problem?
- is this gonna be a problem in the future?

I am asking all these questions because I am wondering what can be done at
the moment the repository contains tones (and I mean it) of data and a
serious bug is found and I would consider uprading.

Please give me any ideas, comments on these questions. You help is highly
appreciated and needed, before deciding to go in production with such a
system.

many, many thanks in advance,

./alex
--
.w( the_mindstorm )p.


On 3/15/06, Alexandru Popescu <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have an exception in my application that unfortunatelly I cannot
> understand. The node on which I work has a mixin: cmed:classifiable, that
> declares the following property:
>
> [code]
> <propertyDefinition name="category0" requiredType="Long"
> autoCreated="false" mandatory="false" onParentVersion="COPY"
> protected="false" multiple="true" />
> [/code]
>
> and here is the code that results in the following exception:
>
> [stack]
> javax.jcr.nodetype.ConstraintViolationException: no matching property
> definition found for {}category0
>     at
> org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef
> (EffectiveNodeType.java:797)
>     at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition
> (NodeImpl.java:884)
>     at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(
> NodeImpl.java:433)
>     at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(
> NodeImpl.java:403)
>     at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1891)
>     at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1875)
> [/stack]
>
> [code]
>        if (parentNode.hasProperty(jcrName)) {
>             parentNode.setProperty(jcrName, (Value[]) null);
>         }
>
>         if (collection == null) {
>             return;
>         }
>
>
>         // Add all collection element into an Value array
>         Value[] values = new Value[collection.getSize()];
>         // initialize the values
>         parentNode.setProperty(jcrName, values); /// <============== here
> is the exception
> [/code]
>
> I am wondering what exactly I am doing wrong. Any comments, ideas, hints
> on why this is happening would help me pass over this critical problem. I am
> using the jackrabit rc1 version.
>
> many thanks in advance,
>
> ./alex
> --
> .w( the_mindstorm )p.
>
>

Reply via email to