Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-64

Better error reporting for ignored / misplaced elements by parser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.6
    • 0.8
    • None
    • win xp, java 1.5

    Description

      <transition event="my.event" target="somewhere">
      <datamodel>
      <data name="dummy" expr="somedata"/>
      </datamodel>
      <log expr="dummy" />
      <log expr="'*****' + dummy" />
      /transition>

      Given the above transition, the first log logs null, send log causes a nullpointerexception. Acording to the SCXML spec datamodel is not allowed in a transition only globally and at the state level.

      Attachments

        1. fails.xml
          0.5 kB
          Ross Yakulis
        2. TransitionBugTest.java
          3 kB
          Ross Yakulis
        3. TransitionBugTestSuite.java
          0.8 kB
          Ross Yakulis
        4. works.xml
          0.5 kB
          Ross Yakulis

        Activity

          People

            Unassigned Unassigned
            ryakulis Ross Yakulis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: