You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Woonsan Ko (JIRA)" <ji...@apache.org> on 2013/12/02 17:13:02 UTC

[jira] [Reopened] (SCXML-177) Correct error/warning messages in SCXML reading to be up-to-date

     [ https://issues.apache.org/jira/browse/SCXML-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Woonsan Ko reopened SCXML-177:
------------------------------


Reopening this because it doesn't give a warning or error when there's a custom action with wrong local name in execution block.

The SCXMLReader.java currently doesn't care of the case when no proper custom action is found:

                        for (CustomAction ca : configuration.customActions) {
                            if (ca.getNamespaceURI().equals(nsURI) && ca.getLocalName().equals(name)) {
                                readCustomAction(reader, configuration, ca, tt, executable, iff);
                            }
                        }

It should give a warning for the unknown custom action element at least.

> Correct error/warning messages in SCXML reading to be up-to-date
> ----------------------------------------------------------------
>
>                 Key: SCXML-177
>                 URL: https://issues.apache.org/jira/browse/SCXML-177
>             Project: Commons SCXML
>          Issue Type: Bug
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>            Priority: Trivial
>             Fix For: 2.0
>
>
> Some error/warning logs are outdated against the newest spec.
> For example,
> org.apache.commons.scxml2.model.ModelException: No SCXML child state with ID "null" found; illegal initialstate for SCXML document
> 	at org.apache.commons.scxml2.io.ModelUpdater.logAndThrowModelError(ModelUpdater.java:297)
> It should inform of 'initial', not 'initialstate' and check if it is not set.



--
This message was sent by Atlassian JIRA
(v6.1#6144)