jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Joschko (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-27) ArrayIndexOutofBoundException while setting a reference property
Date Thu, 09 Dec 2004 15:25:10 GMT
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

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};

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:
If you want more information on JIRA, or have a bug to report see:

View raw message