cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Georgovassilis <geor...@xs.gr>
Subject serializing continuation
Date Thu, 01 Jul 2004 07:23:44 GMT
Dear all

I am trying to take a snapshot of the current state of execution of a
flowscript I wrote. Thus, having in mind [1,2,3] I tried something like
this:

function main()
	{
	while (true)
		{
		...
		if (...) saveSnapshot();
		...
		}
	}

function saveSnapshot()
	{
	var k = new Continuation();
	serialize(k, "snapshot.bin");
	}

which unfortunately throws a

java.lang.IllegalArgumentException: Object for excluded name Object not
found.

thrown in the serialise method (complete stacktrace in [4]). Trying to
serialize the main() function (instead of k) leads to the same result.

My setup is cocoon 2.1.5, tomcat 5.0.19, java 1.4.2_03, fedora c1

What am I missing here?

Best regards
George Georgovassilis



[1] Flowscript problem?
2003-09-25 10:05:40
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106448516820133&w=2

[2] Rhino serialization
http://www.mozilla.org/rhino/serialization.html

[3] CocoonWiki: Rhino With Continuations
http://wiki.cocoondev.org/Wiki.jsp?page=RhinoWithContinuations

[4]
java.lang.IllegalArgumentException: Object for excluded name Object not
found.
        at
org.mozilla.javascript.serialize.ScriptableOutputStream.addExcludedName(ScriptableOutputStream.java:92)
        at
org.mozilla.javascript.serialize.ScriptableOutputStream.excludeStandardObjectNames(ScriptableOutputStream.java:129)
        at
org.mozilla.javascript.serialize.ScriptableOutputStream.<init>(ScriptableOutputStream.java:78)
        at
org.mozilla.javascript.tools.shell.Global.serialize(Global.java:257)
        at inv6.invoke()
        at
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:523)
        at
org.mozilla.javascript.FunctionObject.callVarargs(FunctionObject.java:538)
        at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:403)
        at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
        at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:1134)
        at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:190)
        at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:138)
        at
org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(InterpretedFunctionImpl.java:121)
        at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
        at
org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1591)
        at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:788)
        at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:120)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
        at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:103)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
        at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
        at java.lang.Thread.run(Thread.java:534)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message