Created
March 12, 2015 06:32
-
-
Save A-pZ/209f9aeee8ad2a213e52 to your computer and use it in GitHub Desktop.
Struts2.3.20+SpringAOPにて、Actionクラスで例外を投げるとresultがnullになってしまう問題
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Struts2のDispatcherクラスで次の違いがあった。 | |
// 2.3.20 | |
/* 549*/ UtilTimerStack.push(timerKey); | |
/* 550*/ String namespace = mapping.getNamespace(); | |
/* 551*/ String name = mapping.getName(); | |
/* 552*/ String method = mapping.getMethod(); | |
/* 554*/ ActionProxy proxy = ((ActionProxyFactory)getContainer().getInstance(com/opensymphony/xwork2/ActionProxyFactory)).createActionProxy(namespace, name, method, extraContext, true, false); | |
/* 557*/ request.setAttribute("struts.valueStack", proxy.getInvocation().getStack()); | |
// 2.3.16.3 | |
UtilTimerStack.push(timerKey); | |
String namespace = mapping.getNamespace(); | |
String name = mapping.getName(); | |
String method = mapping.getMethod(); | |
Configuration config = configurationManager.getConfiguration(); | |
ActionProxy proxy = config.getContainer().getInstance(ActionProxyFactory.class).createActionProxy( | |
namespace, name, method, extraContext, true, false); | |
request.setAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY, proxy.getInvocation().getStack()); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Struts2.3.22-SNAPSHOTで解決していました。