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/15 00:40:17 UTC
[jira] Created: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
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
Priority: Minor
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
[jira] Updated: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=all ]
Alejandro Ramirez updated BEEHIVE-172:
--------------------------------------
Attachment: NewReproPageflow.zip
This is a newer version of the pageflow used to repro the problem. This one actually compiles.
> 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: V1
> Attachments: NewReproPageflow.zip, 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=all ]
Alejandro Ramirez closed BEEHIVE-172:
-------------------------------------
Verified fixed. Executed the repro steps and now we get the correct message from the bundle. I've also attached a new version of the repro steps in case we ever need to re-open this issue.
> 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: V1
> Attachments: NewReproPageflow.zip, 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=all ]
Rich Feit resolved BEEHIVE-172:
-------------------------------
Assign To: Alejandro Ramirez (was: Rich Feit)
Resolution: Fixed
OK, fixed (again) with revision 164541. I added a BVT for this (J172), so it should stay fixed. :)
> 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: V1
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Reopened: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=history ]
Alejandro Ramirez reopened BEEHIVE-172:
---------------------------------------
Assign To: Rich Feit (was: Alejandro Ramirez)
Rich, I'm re-opening this because it does not seem to be fixed with the same repro. Note that the annotation for message bundles has changed, so you need to update it.
> 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: Rich Feit
> 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
[jira] Assigned: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
[ 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
[jira] Updated: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Kenneth Tam (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=history ]
Kenneth Tam updated BEEHIVE-172:
--------------------------------
Fix Version: V1
(was: V1Beta)
> 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: Rich Feit
> Fix For: V1
> 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
[jira] Assigned: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=history ]
Rich Feit reassigned BEEHIVE-172:
---------------------------------
Assign To: 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: Rich Feit
> Priority: Minor
> 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
[jira] Resolved: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=history ]
Rich Feit resolved BEEHIVE-172:
-------------------------------
Resolution: Fixed
Fix Version: V1Beta
Fixed with revision 154456. Great catch, Alex. The same issue applied for shared flow declarative validation messages that used message keys.
> 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: Rich Feit
> Priority: Minor
> 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
[jira] Updated: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=history ]
Rich Feit updated BEEHIVE-172:
------------------------------
Priority: Major (was: Minor)
For the record, this was Major. :)
> 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: Rich Feit
> 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
[jira] Updated: (BEEHIVE-172) SharedFlows are not able to use Message Bundles in exception handlers
Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-172?page=history ]
Alejandro Ramirez updated BEEHIVE-172:
--------------------------------------
Attachment: pageFlows.zip
> 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
> Priority: Minor
> 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