You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2004/12/10 12:17:13 UTC
[jira] Resolved: (JCR-27) ArrayIndexOutofBoundException while setting a reference property
[ http://nagoya.apache.org/jira/browse/JCR-27?page=history ]
Stefan Guggisberg resolved JCR-27:
----------------------------------
Resolution: Fixed
fixed in rev. 111495
thanks for reporting this bug!
> ArrayIndexOutofBoundException while setting a reference property
> ----------------------------------------------------------------
>
> Key: JCR-27
> URL: http://nagoya.apache.org/jira/browse/JCR-27
> Project: Jackrabbit
> Type: Bug
> Environment: 111372
> Reporter: Markus Joschko
> Assignee: Stefan Guggisberg
>
> I have a node whith a multivalued reference property.
> I try to add a reference as follows (the spec is outdated at this point, so I'm not sure if I use the right approach to add a reference):
> ReferenceValue rv = new ReferenceValue(rn.getNode("pages/mjo:page"));
> Value[] values = {rv};
> tstN.setProperty("mjo:testCon",values);
> session.save();
> This results in a
> 2004-12-09 16:11:43,614 WARN org.apache.jackrabbit.core.ItemManager - node at /pages/mjo:page has invalid definitionId (1512950840)
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java:626)
> at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1148)
> at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:633)
> at de.freaquac.test.JCRTest.main(JCRTest.java:174)
> ArrayIndexOutOfBoundsException is never a good sign, so I assume it's a bug. I should say that crx throws the same exception if I try it there.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira