You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <be...@incubator.apache.org> on 2005/02/25 07:32:52 UTC
[jira] Assigned: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=history ]
Rich Feit reassigned BEEHIVE-172:
---------------------------------
Assign To: Alejandro Ramirez (was: Rich Feit)
> SharedFlows are not able to use Message Bundles in exception handlers
> ---------------------------------------------------------------------
>
> Key: BEEHIVE-172
> URL: http://issues.apache.org/jira/browse/BEEHIVE-172
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1Beta
> Environment: Windows XP, tomcat.
> Reporter: Alejandro Ramirez
> Assignee: Alejandro Ramirez
> Fix For: V1Beta
> Attachments: pageFlows.zip
>
> 1.- Using the attached pageflows, add them to an existing beehive enabled webapp.
> 2.- Deploy your webapp and access the /SharedFlowTest/SharedFlowController.jpf. In there, click the link "Go to Exception Tests".
> 3.- Next in the "ExceptionTest - Start Page", click the "handle a global exception with a method in /SharedFlowTest/SharedFlow.jpf " link.
> Expected: You should be taken to the "Error Page" and the page should display the following value for "Message from method":
> caught SharedFlowTest.SharedFlowController$SharedFlowExceptionCatchByMethod: this is a SharedFlowTest.sharedFlowExceptionCatchByMethod in SharedFlowTest.SharedFlow.methodHandler(); message = This message came from exceptionMessages. The exception was Caught by the shared flow: /SharedFlowTests/SharedFlow.jpfs
> Actual: The page displays the following value for "Message from method":
> Message from method: caught SharedFlowTest.SharedFlowController$SharedFlowExceptionCatchByMethod: this is a SharedFlowTest.sharedFlowExceptionCatchByMethod in SharedFlowTest.SharedFlow.methodHandler(); message = null
> In other words, it seems like the "/SharedFlowTest/SharedFlow.jpfs" shared flow that is handling the exception, is not able to access the resource bundle as specified in the following annotation:
> @Jpf.Controller(
> catches = {
> @Jpf.Catch(
> type = SharedFlowTest.SharedFlowController.SharedFlowExceptionCatchByMethod.class,
> method = "methodHandler",
> messageKey = "sharedFlowException")
> //message = "This happened because of a GlobalCatchToMethodException")
> },
> messageResources = {
> @Jpf.MessageResource(
> name = "exceptionMessages")
> })
> NOTE: I have put the resource bundle named "exceptionMessages.properties" in the following two places and none of them are picked up by the shared flow:
> a) WEB-INF/resources/exceptionMessages.properties
> b) WEB-INF/src/exceptionMessages.properties
--
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