cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Anderson <benanderson...@gmail.com>
Subject Re: javaflow exception
Date Tue, 05 Jul 2005 22:05:41 GMT
Turns out that was my problem as well.  Weird.  Thanks for the tip.

On 7/5/05, Steinar Jonsson <sjonsson@online.no> wrote:
> Hi,
> 
> I've just struggled with something similar. In my case it seemed to be
> related to lines in my code such as:
> 
> SomeClass someObject = null;
> 
> Rewriting all such lines got rid of the exception. I haven't yet figured out
> why this should be a problem, but suspect it has to do with the magic
> Cocoon performs on your class to make it work with continuations.
> 
> Regards
> Steinar Jonsson
> 
> 
> On Tuesday 05 July 2005 19:44, Ben Anderson wrote:
> > Hi,
> > I'm trying to do my first javaflow, but getting this exception.  It
> > doesn't make much sense to me.  I've got this in my sitemap:
> >   <map:flow language="java">
> >     <map:script src="com.dotech.cocoon.flow.MyFlow"/>
> >   </map:flow>
> > and this is from my class:
> > public class MyFlow extends AbstractContinuable {
> >     public void doUndecodable() {
> >
> >
> > $ discovering methods on com.dotech.cocoon.flow.MyFlow
> > 13:15:16.015 WARN!! Error for
> > /vanguard/forms/undecodable?fileName=4.tif&nextFileName=6.tif
> > java.lang.VerifyError: (class: com/dotech/cocoon/flow/MyFlow, method:
> > doUndecodable signature: ()V) Incompatible object argument for
> > function call
> >         at java.lang.Class.getDeclaredMethods0(Native Method)
> >         at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
> >         at java.lang.Class.getDeclaredMethods(Class.java:1139)
> >         at
> > org.apache.cocoon.util.ReflectionUtils.discoverMethods(ReflectionUtils.java
> >:124) at
> > org.apache.cocoon.util.ReflectionUtils.discoverMethods(ReflectionUtils.java
> >:109) at
> > org.apache.cocoon.components.flow.java.JavaInterpreter.initialize(JavaInter
> >preter.java:94) at
> > org.apache.cocoon.components.flow.java.JavaInterpreter.callFunction(JavaInt
> >erpreter.java:119) at
> > org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(
> >CallFunctionNode.java:135) at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.inv
> >okeNodes(AbstractParentProcessingNode.java:46) at
> > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invo
> >ke(PreparableMatchNode.java:130) at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.inv
> >okeNodes(AbstractParentProcessingNode.java:68) at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipe
> >lineNode.java:138) at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.inv
> >okeNodes(AbstractParentProcessingNode.java:68) at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pip
> >elinesNode.java:89) at
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Co
> >ncreteTreeProcessor.java:240) at
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Co
> >ncreteTreeProcessor.java:180) at
> > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProces
> >sor.java:243) at
> > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNo
> >de.java:117) at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.inv
> >okeNodes(AbstractParentProcessingNode.java:46) at
> > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invo
> >ke(PreparableMatchNode.java:130) at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.inv
> >okeNodes(AbstractParentProcessingNode.java:68) at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipe
> >lineNode.java:138) at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.inv
> >okeNodes(AbstractParentProcessingNode.java:68) at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pip
> >elinesNode.java:89) at
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Co
> >ncreteTreeProcessor.java:240) at
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Co
> >ncreteTreeProcessor.java:180) at
> > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProces
> >sor.java:243) at org.apache.cocoon.Cocoon.process(Cocoon.java:606)
> >         at
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1119) 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(WebApplicationHand
> >ler.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(WebApplicationContex
> >t.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)
> >
> >
> > Any ideas?
> > Thanks,
> > Ben
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>

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


Mime
View raw message