You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org> on 2005/01/18 00:48:17 UTC
[jira] Updated: (BEEHIVE-174) MethodLevel Exception Handlers within sharedflows are not catching exceptions
[ http://issues.apache.org/jira/browse/BEEHIVE-174?page=history ]
Alejandro Ramirez updated BEEHIVE-174:
--------------------------------------
Attachment: sharedflows.zip
> MethodLevel Exception Handlers within sharedflows are not catching exceptions
> -----------------------------------------------------------------------------
>
> Key: BEEHIVE-174
> URL: http://issues.apache.org/jira/browse/BEEHIVE-174
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1Beta
> Environment: windows xp, tomcat
> Reporter: Alejandro Ramirez
> Attachments: sharedflows.zip
>
> 1.- Place the attached pageflows within a beehive enabled webapp.
> 2.- Deploy your webapp and access the following pageflow: /SharedFlowTest/SharedFlowController.jpf
> That will display a jsp that has a link: "Go to Exception Tests". Click the link.
> 3.- Next, in the "ExceptionTest Start Page" click the link:
> "Method Level catch with a method in /SharedFlowTest/SharedFlow1/SharedFlow2/SharedFlow2.jpfs".
> Expected: The link should throw an exception that should be caught by /SharedFlowTest/SharedFlow1/SharedFlow2/SharedFlow2.jpfs
> Actual: The exception is thrown, but it is not caught.
> If you look at the /SharedFlowTest/SharedFlowController.jpf, it contains a reference to the shared flow:
> @Jpf.SharedFlowRef(name="sharedFlow2", type=SharedFlowTest.SharedFlow1.SharedFlow2.SharedFlow2.class)
> Now, SharedFlowTest.SharedFlow1.SharedFlow2.SharedFlow2.jpfs contains an exception handler for the exception being thrown, but it seems like it is not being invoked:
> @Jpf.ExceptionHandler(
> forwards = {
> @Jpf.Forward(
> name = "errorPage2",
> path = "sharedFlow2Error.jsp")
> })
> protected Forward methodHandler( SharedFlow2MethodExceptionCatchByMethod ex, String actionName,
> String message, Object form )
> {
> messageFromMethod = "caught " + ex + " in /SharedFlowTest/SharedFlow1/SharedFlow2/SharedFlow2.jpfs; message = " + message;
> return new Forward( "errorPage2" );
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira