commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edzard Hoefig (JIRA)" <>
Subject [jira] Created: (SCXML-74) <data> uses "name" attribute instead of "ID"
Date Fri, 04 Jul 2008 17:27:38 GMT
<data> uses "name" attribute instead of "ID"

                 Key: SCXML-74
             Project: Commons SCXML
          Issue Type: Bug
    Affects Versions: 0.8
            Reporter: Edzard Hoefig
            Priority: Minor

In the recent SCXML WD (WD-scxml-20080516), the <data> 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.


This SCXML document...

<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="" version="1.0" initialstate="InitialState"
		<data id="RequestForBerlin">
			<GetWeather xmlns="http://www.webserviceX.NET">
	<state id="InitialState">
		<transition target="GetWeatherState"/>
	<state id="GetWeatherState">
		<invoke src="WeatherService#GetWeather" targettype="x-soap">
			<param name="RequestForBerlin"/>

... leads to ...

...  java.lang.NullPointerException
	at org.apache.commons.scxml.env.SimpleContext.setLocal(
	at org.apache.commons.scxml.SCXMLHelper.cloneDatamodel(
	at org.apache.commons.scxml.SCXMLExecutor.reset(
	at org.apache.commons.scxml.SCXMLExecutor.go(

... because the name field of a Data class instance is null.

when changing the <data id="RequestForBerlin"> line to <data name="RequestForBerlin">
the problem dissapears.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message