Hi: I setted this breakpoints:
1-o.a.c.components.flow.javascript.fom.FOM_Cocoon.java at line 261. 2- o.a.c.components.flow.javascript.fom.FOM_JavaScriptInterpreter.java at line 837 3-o.a.c.components.flow.AbstractInterpreter.java at line 171 I posted the 3 breakpoints to draft the route the problem follow. It is a problem in the sendPage from Javaflow. I think, the last breakpoint is the most important because until it all is OK. I wonder if the problem is in the hint we post store for the redirector (3 file at line 179). I choosed to don't touch nothing, because I don't know enough how it works and I don't want to break other things around. I hope this helps to discover the bug. Best Regards, Antonio Gallardo Carsten Ziegeler dijo: > Hi Antonio, > > just to be sure: did B to D work in 2.1.4/2.1.5 as you expect or > do they produce they same error? > > Carsten > >> -----Original Message----- >> From: Antonio Gallardo [mailto:[EMAIL PROTECTED] >> Sent: Thursday, June 03, 2004 4:13 PM >> To: [EMAIL PROTECTED] >> Subject: [CVS] Flow bug in redirections? Test case inside. >> >> Hi: >> >> I have 2 days with this problem. Here is a test case of the >> redirection problem in flow: >> >> 1-Build Cocoon with samples. >> 2-Run ./cocoon.sh servlet >> 3-Copy $COCOON_HOME/build/webapp/samples/flow to >> $COCOON_HOME/build/webapp/samples/flowbug >> (we need it because we will make a call from flowbug to flow. >> >> 4-Change line 38 in >> $COCOON_HOME/build/webapp/samples/flowbug/jxcalc/calc.js to any of: >> >> A-var uri = "samples/flow/jxcalc/page/getNumber" + >> name.toUpperCase(); B-var uri = >> "/samples/flow/jxcalc/page/getNumber" + name.toUpperCase(); >> C-var uri = "//samples/flow/jxcalc/page/getNumber" + >> name.toUpperCase(); D-var uri = >> "///samples/flow/jxcalc/page/getNumber" + name.toUpperCase(); >> >> 5- On a browser, connect to: >> >> http://localhost:8888/samples/flowbug/jxcalc/ >> >> You will get: >> ------------------------------------------------------------------ >> A-No pipeline matched request: >> samples/flowbug/jxcalc/samples/flow/jxcalc/page/getNumberA >> >> org.apache.cocoon.ResourceNotFoundException: No pipeline >> matched request: >> samples/flowbug/jxcalc/samples/flow/jxcalc/page/getNumberA >> >> COMMENT: It is OK. There does not exist in relative path. >> ------------------------------------------------------------------ >> B-No pipeline matched request: samples/flow/jxcalc/page/getNumberA >> >> org.apache.cocoon.ResourceNotFoundException: No pipeline >> matched request: >> samples/flow/jxcalc/page/getNumberA >> >> COMMENT: Why? It must go to the redirection in flow directory >> using the sitemap that is in flow dir! >> >> ------------------------------------------------------------------ >> C-No pipeline matched request: /samples/flow/jxcalc/page/getNumberA >> >> org.apache.cocoon.ResourceNotFoundException: No pipeline >> matched request: >> /samples/flow/jxcalc/page/getNumberA >> >> COMMENT: Again, why? As above, the link exists! >> ------------------------------------------------------------------ >> D-No pipeline matched request: //samples/flow/jxcalc/page/getNumberA >> >> org.apache.cocoon.ResourceNotFoundException: No pipeline >> matched request: >> //samples/flow/jxcalc/page/getNumberA >> >> COMMENT: Again, why? As above, the link exists! >> ------------------------------------------------------------------ >> >> It will never go to the requested path! >> >> If it works, it would be the same as: >> >> http://localhost:8888/samples/flow/jxcalc/page/getNumberA >> >> And we would need to receive a diferent error: >> >> org.apache.cocoon.ProcessingException: Failed to execute pipeline.: >> file:/home/agallardo/workspace/cocoon-2.1/build/webapp/samples >> /flow/jxcalc/screens/getNumberA.xml:30:72:org.apache.commons.j >> xpath.JXPathException: >> No value for xpath: $cocoon/continuation/id >> >> Now the question is what is affecting that? >> >> Best Regards, >> >> Antonio Gallardo >> >> >
