cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Heesen <rainer.hee...@gmx.de>
Subject Re: Javaflow in C2.2
Date Sat, 20 Sep 2008 19:09:09 GMT
Hi Torsten,

ok, CFormsFlow is wrong, so I started to run CalculatorFlow from the 
cocoon-javaflow-sample block. I got similar error messages. So, I think my 
setup is wrong.

At first, I compiled the cocoon-javaflow-impl and cocoon-javaflow-sample 
block. In the sitemap, I changed the class 
org.apache.cocoon.components.flow.java.JavaflowResourceStore to org.apache. 
commons.stores.JavaflowResourceStore since there was no  
org.apache.cocoon.components.flow.java.JavaflowResourceStore.class in my 
environment.

So, the sitemap is now:

    <map:classloader 
factory-role="org.apache.cocoon.classloader.ClassLoaderFactory/reloading">
      <class-dir 
src="../../../../../../blocks/cocoon-javaflow/cocoon-javaflow-sample/target/classes">
        <store class="org.apache.commons.stores.JavaflowResourceStore" />
      </class-dir>
      <class-dir 
src="../../../../../../blocks/cocoon-javaflow/cocoon-javaflow-impl/target/classes">
        <store class="org.apache.commons.stores.JavaflowResourceStore" />
      </class-dir>
      <include-classes 
pattern="org.apache.cocoon.forms.flow.java.FormInstance" />
      <include-classes pattern="org.apache.cocoon.samples.flow.java.**" />
      <include-classes 
pattern="org.apache.cocoon.components.flow.java.AbstractContinuable" />
    </map:classloader>

The archives javaflow-1.0-20061102.193912-3.jar as well as commons-jci-*.jar 
are in the webapp/WEB-INF/lib directory.

Since I didn't instrument any classes I got the error message that 
Invoker.class is not instrumented.

In the next step, I instrumented Invoker.class of the cocoon-javaflow-impl 
block. Then I received an EmptyStack error.

So, I instrumented CalculatorFlow too. Afterwards, I got the 
ClassCastException similar to the CFormsFlow example.

Are there any points besides javaflow beans, sitemap, and instrumentation of 
classes that influence the execution of javaflow beans?

2008-09-20 20:00:10,286 ERROR http-8080-Processor24 
org.apache.commons.javaflow.bytecode.StackRecorder - 
org.apache.cocoon.samples.flow.java.CalculatorFlow
java.lang.ClassCastException: 
org.apache.cocoon.samples.flow.java.CalculatorFlow
        at org.apache.cocoon.components.flow.java.Invoker.run(Invoker.java)
        at 
org.apache.commons.javaflow.bytecode.StackRecorder.execute(StackRecorder.java:95)
        at 
org.apache.commons.javaflow.Continuation.continueWith(Continuation.java:170)
        at 
org.apache.cocoon.components.flow.java.JavaInterpreter.handleContinuation(JavaInterpreter.java:185)

Do you have any idea?

Kind regards

 Rainer





Am Freitag 19 September 2008 schrieb Torsten Curdt:
> Hey Rainer,
>
> CFormsFlow seems to be the culprit - not the invoker.
> It's hard to tell more without knowing your setup.
>
> cheers
> --
> Torsten
>

Mime
View raw message