Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 96638 invoked from network); 5 Jul 2008 00:04:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2008 00:04:40 -0000 Received: (qmail 68444 invoked by uid 500); 5 Jul 2008 00:04:40 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 68382 invoked by uid 500); 5 Jul 2008 00:04:40 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 68371 invoked by uid 99); 5 Jul 2008 00:04:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 17:04:40 -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; Sat, 05 Jul 2008 00:03:49 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C2793234C150 for ; Fri, 4 Jul 2008 17:03:35 -0700 (PDT) Message-ID: <54412815.1215216215791.JavaMail.jira@brutus> Date: Fri, 4 Jul 2008 17:03:35 -0700 (PDT) From: "Rahul Akolkar (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (SCXML-74) uses "name" attribute instead of "ID" In-Reply-To: <292785582.1215192458298.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCXML-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Akolkar updated SCXML-74: ------------------------------- Fix Version/s: 0.9 Remaining Estimate: (was: 2h) Original Estimate: (was: 2h) Thanks for pointing this out, I've set the fix version to be v0.9 (the next anticipated release). We have not updated to the latest WD, but we will need to go through the changes with a fine-toothed comb at some point (volunteers welcome :-). I won't be able to get to this for another week, but the fix should be fairly straightforward if anyone wants to take a stab at it (given that you're correctly identified the source code that needs updating). > uses "name" attribute instead of "ID" > -------------------------------------------- > > Key: SCXML-74 > URL: https://issues.apache.org/jira/browse/SCXML-74 > Project: Commons SCXML > Issue Type: Bug > Affects Versions: 0.8 > Reporter: Edzard Hoefig > Priority: Minor > Fix For: 0.9 > > > In the recent SCXML WD (WD-scxml-20080516), the element is defined to use an "ID" attribute. Previously it had been "name" (WD-scxml-20070221). This change is not reflected in the source (see class org.apache.commons.scxml.model.Data) and leads to a NullPointerException when trying to use it. > Example: > This SCXML document... > > > > > > Berlin > Germany > > > > > > > > > > > > > ... leads to ... > ... java.lang.NullPointerException > at org.apache.commons.scxml.env.SimpleContext.setLocal(SimpleContext.java:164) > at org.apache.commons.scxml.SCXMLHelper.cloneDatamodel(SCXMLHelper.java:466) > at org.apache.commons.scxml.SCXMLExecutor.reset(SCXMLExecutor.java:223) > at org.apache.commons.scxml.SCXMLExecutor.go(SCXMLExecutor.java:351) > [...] > ... because the name field of a Data class instance is null. > when changing the line to the problem dissapears. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.