From jackrabbit-dev-return-440-apmail-incubator-jackrabbit-dev-archive=www.apache.org@incubator.apache.org Fri Dec 10 11:17:19 2004 Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 9171 invoked from network); 10 Dec 2004 11:17:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Dec 2004 11:17:19 -0000 Received: (qmail 75835 invoked by uid 500); 10 Dec 2004 11:17:17 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 75791 invoked by uid 99); 10 Dec 2004 11:17:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from exchange.sun.com (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 10 Dec 2004 03:17:16 -0800 Received: (qmail 18192 invoked from network); 10 Dec 2004 11:17:14 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 10 Dec 2004 11:17:14 -0000 Message-ID: <1926131103.1102677434500.JavaMail.apache@nagoya> Date: Fri, 10 Dec 2004 03:17:14 -0800 (PST) From: "Stefan Guggisberg (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Closed: (JCR-27) ArrayIndexOutofBoundException while setting a reference property In-Reply-To: <190420153.1102605910045.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/JCR-27?page=history ] Stefan Guggisberg closed JCR-27: -------------------------------- > 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