You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Hervé Agnoux <he...@diaam-informatique.com> on 2009/01/29 23:41:25 UTC
A Property exists, but no it's value ?
Hi,
I have this stack trace :
Caused by: javax.jcr.RepositoryException: property
/iaa:autonome/iaa:recueil/iaa:copies/iaa:copie_gimick_22_147/valeurs: single-
valued property with no value
at
org.apache.jackrabbit.core.PropertyImpl.internalGetValue(PropertyImpl.java:471)
at
org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:489)
at
org.apache.jackrabbit.core.PropertyImpl.getStream(PropertyImpl.java:502)
If I look at the PropertyImpl.java source, line 470, I see this comment : "//
should never be the case, but being a little paranoid can't hurt..."
It's midnight for me, so it's time to be paranoid...
What do you think of that ? How can I control that ?
It's jackarabbit 1.5.
Re: A Property exists, but no it's value ?
Posted by Hervé Agnoux <he...@diaam-informatique.com>.
Le vendredi 30 janvier 2009, Stefan Guggisberg a écrit :
>
> did you perhaps modify the node type definitions? the name of the property
> 'valeurs' suggests a multi-value property, but apparently it's declared as
> being single-valued. multi-value properties are allowed to have an empty
> value array.
>
I think it's a bad multi-threads gestion. My fault.
Yes, ti's a single-value property.
I look at my "synchronized" stuff. Thank you for your help.
Re: A Property exists, but no it's value ?
Posted by Stefan Guggisberg <st...@gmail.com>.
On Thu, Jan 29, 2009 at 11:41 PM, Hervé Agnoux
<he...@diaam-informatique.com> wrote:
> Hi,
>
> I have this stack trace :
> Caused by: javax.jcr.RepositoryException: property
> /iaa:autonome/iaa:recueil/iaa:copies/iaa:copie_gimick_22_147/valeurs: single-
> valued property with no value
> at
> org.apache.jackrabbit.core.PropertyImpl.internalGetValue(PropertyImpl.java:471)
> at
> org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:489)
> at
> org.apache.jackrabbit.core.PropertyImpl.getStream(PropertyImpl.java:502)
>
> If I look at the PropertyImpl.java source, line 470, I see this comment : "//
> should never be the case, but being a little paranoid can't hurt..."
>
> It's midnight for me, so it's time to be paranoid...
>
> What do you think of that ? How can I control that ?
did you perhaps modify the node type definitions? the name of the property
'valeurs' suggests a multi-value property, but apparently it's declared as
being single-valued. multi-value properties are allowed to have an empty
value array.
cheers
stefan
>
> It's jackarabbit 1.5.
>
>
>
>