Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 78165 invoked from network); 17 Mar 2009 21:38:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2009 21:38:12 -0000 Received: (qmail 86955 invoked by uid 500); 17 Mar 2009 21:38:11 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 86925 invoked by uid 500); 17 Mar 2009 21:38:11 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 86916 invoked by uid 99); 17 Mar 2009 21:38:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 14:38:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 21:38:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B6A9234C044 for ; Tue, 17 Mar 2009 14:37:50 -0700 (PDT) Message-ID: <381138982.1237325870635.JavaMail.jira@brutus> Date: Tue, 17 Mar 2009 14:37:50 -0700 (PDT) From: "Thiago H. de Paula Figueiredo (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Commented: (TAP5-573) NullPointerException during AJAX form submit In-Reply-To: <67497964.1236800330452.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAP5-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682817#action_12682817 ] Thiago H. de Paula Figueiredo commented on TAP5-573: ---------------------------------------------------- "You should be returning the zone's body (getFormZone().getBody()) to update the Zone after submission (in Ajax mode)." That's something new to me. The documentation just says that the event handler must return a component, and Zone is a component. I've doing this for a long time (since T5 has Zones, actually) and this exception only ocurrs with 5.1.0.0+, not with 5.0.18 or past versions. Maybe we should update the docs. Anyway, shouldn't Tapestry handle a Zone event handler return? > NullPointerException during AJAX form submit > -------------------------------------------- > > Key: TAP5-573 > URL: https://issues.apache.org/jira/browse/TAP5-573 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-core > Affects Versions: 5.1.0.1 > Reporter: Thiago H. de Paula Figueiredo > Assignee: Howard M. Lewis Ship > Priority: Critical > > To reproduce this bug: > * Checkout the Ars Machina Example Project from SVN: https://ars-machina.svn.sourceforge.net/svnroot/ars-machina/example/branches/1.1 > * Run its Main class (default package) > * Click in the login link > * Login as manager (login) manager (password) > * Click in the project listings link > * Click in one of the edition links (the second icon) > * Click the submit button. > Relevant part of the stack trace: > java.lang.NullPointerException > at org.apache.tapestry5.dom.Element.createNamespaceURIToPrefix(Element.java:676) > at org.apache.tapestry5.dom.Element.toMarkup(Element.java:333) > at org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:870) > at org.apache.tapestry5.dom.Element.toMarkup(Element.java:386) > at org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:870) > at org.apache.tapestry5.dom.Element.toMarkup(Element.java:386) > at org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:870) > at org.apache.tapestry5.dom.Element.getChildMarkup(Element.java:883) > at org.apache.tapestry5.internal.services.PageRenderQueueImpl.renderPartial(PageRenderQueueImpl.java:163) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.