Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 51311 invoked from network); 26 Dec 2005 22:20:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Dec 2005 22:20:55 -0000 Received: (qmail 63275 invoked by uid 500); 26 Dec 2005 22:20:53 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 63244 invoked by uid 500); 26 Dec 2005 22:20:53 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 63233 invoked by uid 99); 26 Dec 2005 22:20:52 -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; Mon, 26 Dec 2005 14:20:52 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id CCBC9CB for ; Mon, 26 Dec 2005 23:20:31 +0100 (CET) Message-ID: <57393956.1135635631837.JavaMail.jira@ajax.apache.org> Date: Mon, 26 Dec 2005 23:20:31 +0100 (CET) From: "Grzegorz Kossakowski (aka g[R]eK) (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Skomentowane: (COCOON-1725) Unexpected attempt to read values of JavaBean while saving form In-Reply-To: <62514195.1135618111120.JavaMail.jira@ajax.apache.org> 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/COCOON-1725?page=comments#action_12361246 ] Grzegorz Kossakowski (aka g[R]eK) commented on COCOON-1725: ----------------------------------------------------------- Forgot to add link, sorry: [1] http://jakarta.apache.org/commons/jxpath/apidocs/org/apache/commons/jxpath/JXPathContext.html#setLenient(boolean) > Unexpected attempt to read values of JavaBean while saving form > --------------------------------------------------------------- > > Key: COCOON-1725 > URL: http://issues.apache.org/jira/browse/COCOON-1725 > Project: Cocoon > Type: Bug > Components: Blocks: Forms > Versions: 2.1.8 > Reporter: Grzegorz Kossakowski (aka g[R]eK) > Priority: Minor > > Problem lays in org.apache.cocoon.forms.binding.ValueJXPathBinding.doSave at line 123: > Object oldValue = jxpc.getValue(this.xpath); //line 123 > if (getLogger().isDebugEnabled()) { > getLogger().debug("value= " + value + "-- oldvalue=" + oldValue); > } > This is for debugging purpose and it's quite handy but if there is no get method in bean exception org.apache.commons.jxpath.JXPathException: No read method will be thrown and binding will be interrupted. It will try to read value even @direction="save" is set. > I think it is not valid to require read method while it is excplicitly stressed the direction of binding. -- 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