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 Sun, 26 Oct 2008 22:00:20 GMT
I understand your point, but I don't know how to implement it. After resuming 
the continuation, I think the stack contains correct classes.

o[7]
 0: 
org.apache.cocoon.samples.flow.java.CalculatorFlow@746976/org.apache.catalina.loader.WebappClassLoader@9903445
 1: java.lang.String@97/unknown
 2: java.lang.String@291596246/unknown
 3: java.lang.String@1794106052/unknown
 4: 
org.apache.cocoon.samples.flow.java.CalculatorFlow@746976/org.apache.catalina.loader.WebappClassLoader@9903445
 5: 
org.apache.cocoon.components.flow.java.Invoker@4583661/org.apache.catalina.loader.WebappClassLoader@9903445
 6: 
org.apache.cocoon.samples.flow.java.CalculatorFlow@746976/org.apache.catalina.loader.WebappClassLoader@9903445
r[2]
 0: 
org.apache.cocoon.samples.flow.java.CalculatorFlow@746976/org.apache.catalina.loader.WebappClassLoader@9903445
 1: 
org.apache.cocoon.samples.flow.java.CalculatorFlow@746976/org.apache.catalina.loader.WebappClassLoader@9903445

I saw that CalculatorFlow is invoked by commons/javaflow. I haven't identified 
other sources in cocoon-javaflow-impl or other blocks that invoke 
CalculatorFlow. So I don't know how an incorrect instance of CalculatorFlow 
is invoked.

Kind regards

 Rainer


Am Sonntag 26 Oktober 2008 schrieb Torsten Curdt:
> > Eclipse offers much information in debugging mode. Are the addresses the
> > right information?
>
> Indeed.
>
> 
> org.apache.cocoon.samples.flow.java.CalculatorFlow@16273041/org.apache.cata
>lina.loader.WebappClassLoader@20085762
>
> Means it's instance 16273041 of CalculatorFlow in WebappClassLoader
> instance 20085762.
>
> If you try to cast a CalculatorFlow to a CalculatorFlow that was
> loaded by anything else but
> org.apache.catalina.loader.WebappClassLoader@20085762 you will see a
> CCE. In fact it means you are then dealing with two different versions
> (not instances) of the same class.
>
> HTH
>
> cheers
> --
> Torsten



Mime
View raw message