Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 44529 invoked from network); 10 Nov 2005 16:35:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Nov 2005 16:35:39 -0000 Received: (qmail 39685 invoked by uid 500); 10 Nov 2005 16:35:30 -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 39661 invoked by uid 99); 10 Nov 2005 16:35:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2005 08:35:29 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 238D5223 for ; Thu, 10 Nov 2005 17:35:08 +0100 (CET) Message-ID: <695816027.1131640508143.JavaMail.jira@ajax.apache.org> Date: Thu, 10 Nov 2005 17:35:08 +0100 (CET) From: "Stefan Guggisberg (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Closed: (JCR-25) default value with autocreated fields like null In-Reply-To: <1262774518.1102449009896.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-25?page=all ] Stefan Guggisberg closed JCR-25: -------------------------------- closing resolved issue > default value with autocreated fields like null > ----------------------------------------------- > > Key: JCR-25 > URL: http://issues.apache.org/jira/browse/JCR-25 > Project: Jackrabbit > Type: Wish > Reporter: Markus Joschko > Assignee: Stefan Guggisberg > Priority: Minor > > I have a custom nodetype which has two properties, both autocreated (but not mandatory). > If I create the node and want to read the first property (not filling in any value), I get a: > javax.jcr.RepositoryException: Unable to get value of /pages/mjo:page/jcr:content/mjo:title:java.lang.ArrayIndexOutOfBoundsException: 0 > at org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:378) > at de.freaquac.test.JCRTest.propIterator(JCRTest.java:207) > After setting the property the exception is no longer thrown. Not sure if this really an error but is a little bit anyoing. Are there any default values (null) in jsr170? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira