commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Cook (JIRA)" <j...@apache.org>
Subject [jira] Created: (SCXML-56) onentry and onexit child elements of parallel do not have parent
Date Fri, 31 Aug 2007 20:59:18 GMT
onentry and onexit child elements of parallel do not have parent
----------------------------------------------------------------

                 Key: SCXML-56
                 URL: https://issues.apache.org/jira/browse/SCXML-56
             Project: Commons SCXML
          Issue Type: Bug
    Affects Versions: 0.6
         Environment: Windows and linux
            Reporter: Dennis Cook


Expanded the provide test case transitions-01.xml to include as childern of the element <parallel
id="thirties_parallel">:

<onentry>
	<log expr="'Entering thirties_parallel'"/>
</onentry>
<onexit>
	<log expr="'Exiting thirties_parallel'"/>
</onexit>

Running the test case will now result in NPE when attempting the log action.

java.lang.NullPointerException
	at org.apache.commons.scxml.model.Action.getParentState(Action.java:115)
	at org.apache.commons.scxml.model.Log.execute(Log.java:102)
	at org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.executeActions(SCXMLSemanticsImpl.java:229)
	at org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:131)
	at org.apache.commons.scxml.SCXMLTestHelper.fireEvent(SCXMLTestHelper.java:197)
	at controller.Transitions01Test.testSCXMLExecutorTransitions01Sample(Transitions01Test.java:58)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

because the parent of on OnEntry and OnExit objects is null.




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


Mime
View raw message