commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sungchan <schanp...@gmail.com>
Subject [SCXML] StandaloneJexlExpressions test error
Date Fri, 10 Feb 2006 05:19:42 GMT
I raise two questions.
Firstly, when I run it as the 'microwave-02.xml' argument, it only gives a
run time error.
It should stay in the [closed,  cooking]. I think it fails to interprete
'In('closed')'.
See the log below.

2006. 2. 10 오후 2:02:48 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven
2006. 2. 10 오후 2:02:49 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven/parts
2006. 2. 10 오후 2:02:49 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven/parts/engine
2006. 2. 10 오후 2:02:49 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven/parts/door
2006. 2. 10 오후 2:02:49 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven/parts/door/closed
2006. 2. 10 오후 2:02:49 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven/parts/engine/off
2006. 2. 10 오후 2:02:49 org.apache.commons.scxml.SCXMLExecutor logState
info: Current States: [off, closed]
turn_on
2006. 2. 10 오후 2:02:52 org.apache.commons.scxml.env.SimpleSCXMLListeneronExit
info: /oven/parts/engine/off
2006. 2. 10 오후 2:02:52
org.apache.commons.scxml.env.SimpleSCXMLListeneronTransition
info: transition (event = turn_on, cond = null, from =
/oven/parts/engine/off, to = /oven/parts/engine/on)
2006. 2. 10 오후 2:02:52 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven/parts/engine/on
2006. 2. 10 오후 2:02:52 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry
info: /oven/parts/engine/on/idle
2006. 2. 10 오후 2:02:52 org.apache.commons.scxml.env.SimpleErrorReporteronError
warning: EXPRESSION_ERROR (java.lang.NullPointerException):
2006. 2. 10 오후 2:02:52 org.apache.commons.scxml.SCXMLExecutor logState
info: Current States: [closed, idle]

Secondly, I wish I could find the RootContextTest.java in Jexl as in the
JSP, but I coudn't.
Can anyone give this as Jexl? Look at the setup() func. in
RootContextTest.java

public void setUp() {
        rootCtxSample = this.getClass().getClassLoader().
            getResource("org/apache/commons/scxml/env/jsp/jsp-
rootctx-test.xml");
        evaluator = new ELEvaluator();
        jspCtx = new MockJspContext();
        jspCtx.setAttribute("foo", "1");
        ctx = new RootContext(jspCtx);
    }
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message