cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agssa.net>
Subject Re: [RT] - A Groovy Flow Engine is in my hard drive! ;-)
Date Sun, 06 Jun 2004 01:19:00 GMT
Hi:

8 hours later. I don't know what I did. But it does not work now. I am
getting an weird error (see below).

AFAIK, it is in the bcel hacking. But I am not sure. I am tired now. Sorry
for the noise. But I think it is closer than ever. Perhaps someone else
want to see at the code. Maybe it effort helps for the Rhino quest. ;-)

Best Regards,

Antonio Gallardo.

******************************************************************

groovy.lang.GroovyRuntimeException: failed to invoke method:
groovy.lang.MetaMethod@187f4d7[name: sendPageAndWait params: [class
java.lang.String, class java.lang.Object] returns: void owner: class
org.apache.cocoon.components.flow.java.AbstractContinuable] on:
org.apache.cocoon.samples.flow.groovy.CalculatorFlow@db71e4 with
arguments: [page/calculator-a, [count:1, b:0, a:0]] reason:
java.lang.ClassCastException

groovy.lang.GroovyRuntimeException: failed to invoke method:
groovy.lang.MetaMethod@187f4d7[name: sendPageAndWait params: [class
java.lang.String, class java.lang.Object] returns: void owner: class
org.apache.cocoon.components.flow.java.AbstractContinuable] on:
org.apache.cocoon.samples.flow.groovy.CalculatorFlow@db71e4 with
arguments: [page/calculator-a, [count:1, b:0, a:0]] reason:
java.lang.ClassCastException
	at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1031)
	at groovy.lang.MetaClass.invokeMethod(MetaClass.java:314)
	at
gjdk.groovy.lang.MetaClass_GroovyReflector.invoke(MetaClass_GroovyReflector.java)
	at groovy.lang.MetaMethod.invoke(MetaMethod.java:110)
	at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1020)
	at groovy.lang.MetaClass.invokeMethod(MetaClass.java:314)
	at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:139)
	at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:106)
	at
org.apache.cocoon.samples.flow.groovy.CalculatorFlow.invokeMethod(Unknown
Source)
	at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:126)
	at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:106)
	at org.apache.cocoon.samples.flow.groovy.CalculatorFlow.getNumber(Unknown
Source)
	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:324)
	at
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:63)
	at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1020)
	at groovy.lang.MetaClass.invokeMethod(MetaClass.java:314)
	at
gjdk.groovy.lang.MetaClass_GroovyReflector.invoke(MetaClass_GroovyReflector.java)
	at groovy.lang.MetaMethod.invoke(MetaMethod.java:110)
	at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1020)
	at groovy.lang.MetaClass.invokeMethod(MetaClass.java:314)
	at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:139)
	at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:106)
	at
org.apache.cocoon.samples.flow.groovy.CalculatorFlow.invokeMethod(Unknown
Source)
	at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:126)
	at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:106)
	at
org.apache.cocoon.samples.flow.groovy.CalculatorFlow.doCalculator(Unknown
Source)
	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:324)
	at
org.apache.cocoon.components.flow.groovy.GroovyInterpreter.callFunction(GroovyInterpreter.java:189)
	at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:130)
	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:95)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:342)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:93)
	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:95)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:342)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:93)
	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:95)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:342)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:93)
	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:95)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:342)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:93)
	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:95)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:342)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:638)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1100)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
Caused by: java.lang.ClassCastException
	at
gjdk.org.apache.cocoon.samples.flow.groovy.CalculatorFlow_GroovyReflector.invoke(CalculatorFlow_GroovyReflector.java)
	at groovy.lang.MetaMethod.invoke(MetaMethod.java:110)
	at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1020)
	... 94 more



Antonio Gallardo dijo:
> Hi:
>
> After 11 hours of work, the first implementation of a Groovy Flow engine
> for Cocoon is working on my hard drive. It is based in the yesterday
> stephan work. (Thanks, Stephan!). The initial sample is the calculator
> sample. The forms sample still don't work. I think I wrote bad Groovy code
> (but for now it does not matter). I will need help from Groovy Cocoon
> users (in both senses ;) ) to get it on feets.
>
> Also, I need help to "grovify" (TM) more the calculator sample.
>
> I am not sure if this is a worth to post this new FloEngine or not. BTW, I
> build it on the javaflow block. But it does not affect the initial
> javaflow. I prefered to do it that way just in case someone will rant for
> this work. (God, I hope nobody will do that!) ;)
>
> Need we a votation before commit or not?
>
> Best Regards,
>
> Antonio Gallardo
>


Mime
View raw message