[jira] [Commented] (WW-4416) LocalizedTextUtil should suppress exception with tomcat8
[ https://issues.apache.org/jira/browse/WW-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14952944#comment-14952944 ] Hudson commented on WW-4416: SUCCESS: Integrated in Struts-JDK7-master #371 (See [https://builds.apache.org/job/Struts-JDK7-master/371/]) WW-4416 Adds support to clear cache under Tomcat 8 (lukaszlenart: rev a35c3ef4f6211268e04f4c167f14650c88505628) * xwork-core/src/main/java/com/opensymphony/xwork2/util/LocalizedTextUtil.java > LocalizedTextUtil should suppress exception with tomcat8 > > > Key: WW-4416 > URL: https://issues.apache.org/jira/browse/WW-4416 > Project: Struts 2 > Issue Type: Improvement >Reporter: zhouyanming >Assignee: Lukasz Lenart > Fix For: 2.3.24 > > > running struts2 with tomcat-8.0.14 will throw exception. > {code:java} > couldn't clear tomcat cache > java.lang.NoSuchFieldException: resourceEntries > at java.lang.Class.getDeclaredField(Class.java:1953) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:859) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:842) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:821) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:797) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:214) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:666) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:542) > at > com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:370) > at > com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208) > at > com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123) > at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:103) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4416) LocalizedTextUtil should suppress exception with tomcat8
[ https://issues.apache.org/jira/browse/WW-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14589198#comment-14589198 ] Chris Cranford commented on WW-4416: In testing this change (Struts2 2.3.24 GA) in combination with Tomcat 8.0.22, this continues to logged despite the fix: {noformat} 9058 [http-apr-8080-exec-4] DEBUG com.opensymphony.xwork2.util.LocalizedTextUtil: Base class org.apache.catalina.loader.WebappClassLoader doesn't contain 'resourceEntries' field, trying with parent! java.lang.NoSuchFieldException: resourceEntries at java.lang.Class.getDeclaredField(Class.java:2070) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:874) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:844) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:823) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:799) at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:216) at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:668) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:544) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:372) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:229) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:189) at org.apache.struts2.interceptor.FileUploadInterceptor.getTextMessage(FileUploadInterceptor.java:446) at org.apache.struts2.interceptor.FileUploadInterceptor.getTextMessage(FileUploadInterceptor.java:439) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:250) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at
[jira] [Commented] (WW-4416) LocalizedTextUtil should suppress exception with tomcat8
[ https://issues.apache.org/jira/browse/WW-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14262324#comment-14262324 ] Hudson commented on WW-4416: FAILURE: Integrated in Struts-JDK6-master #901 (See [https://builds.apache.org/job/Struts-JDK6-master/901/]) WW-4416 Adds support to clear cache under Tomcat 8 (lukaszlenart: rev a35c3ef4f6211268e04f4c167f14650c88505628) * xwork-core/src/main/java/com/opensymphony/xwork2/util/LocalizedTextUtil.java LocalizedTextUtil should suppress exception with tomcat8 Key: WW-4416 URL: https://issues.apache.org/jira/browse/WW-4416 Project: Struts 2 Issue Type: Improvement Reporter: zhouyanming Assignee: Lukasz Lenart Fix For: 2.3.21 running struts2 with tomcat-8.0.14 will throw exception. {code:java} couldn't clear tomcat cache java.lang.NoSuchFieldException: resourceEntries at java.lang.Class.getDeclaredField(Class.java:1953) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:859) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:842) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:821) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:797) at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:214) at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:666) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:542) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:370) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123) at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:103) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4416) LocalizedTextUtil should suppress exception with tomcat8
[ https://issues.apache.org/jira/browse/WW-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14260011#comment-14260011 ] Hudson commented on WW-4416: SUCCESS: Integrated in Struts-JDK7-pull-request #21 (See [https://builds.apache.org/job/Struts-JDK7-pull-request/21/]) WW-4416 Adds support to clear cache under Tomcat 8 (lukaszlenart: rev a35c3ef4f6211268e04f4c167f14650c88505628) * xwork-core/src/main/java/com/opensymphony/xwork2/util/LocalizedTextUtil.java LocalizedTextUtil should suppress exception with tomcat8 Key: WW-4416 URL: https://issues.apache.org/jira/browse/WW-4416 Project: Struts 2 Issue Type: Improvement Reporter: zhouyanming Assignee: Lukasz Lenart Fix For: 2.3.21 running struts2 with tomcat-8.0.14 will throw exception. {code:java} couldn't clear tomcat cache java.lang.NoSuchFieldException: resourceEntries at java.lang.Class.getDeclaredField(Class.java:1953) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:859) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:842) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:821) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:797) at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:214) at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:666) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:542) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:370) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123) at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:103) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4416) LocalizedTextUtil should suppress exception with tomcat8
[ https://issues.apache.org/jira/browse/WW-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14257477#comment-14257477 ] ASF subversion and git services commented on WW-4416: - Commit a35c3ef4f6211268e04f4c167f14650c88505628 in struts's branch refs/heads/develop from [~lukaszlenart] [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=a35c3ef ] WW-4416 Adds support to clear cache under Tomcat 8 LocalizedTextUtil should suppress exception with tomcat8 Key: WW-4416 URL: https://issues.apache.org/jira/browse/WW-4416 Project: Struts 2 Issue Type: Improvement Reporter: zhouyanming Assignee: Lukasz Lenart Fix For: 2.3.21 running struts2 with tomcat-8.0.14 will throw exception. {code:java} couldn't clear tomcat cache java.lang.NoSuchFieldException: resourceEntries at java.lang.Class.getDeclaredField(Class.java:1953) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:859) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:842) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:821) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:797) at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:214) at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:666) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:542) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:370) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123) at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:103) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4416) LocalizedTextUtil should suppress exception with tomcat8
[ https://issues.apache.org/jira/browse/WW-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14257501#comment-14257501 ] Hudson commented on WW-4416: SUCCESS: Integrated in Struts-JDK6-develop #115 (See [https://builds.apache.org/job/Struts-JDK6-develop/115/]) WW-4416 Adds support to clear cache under Tomcat 8 (lukaszlenart: rev a35c3ef4f6211268e04f4c167f14650c88505628) * xwork-core/src/main/java/com/opensymphony/xwork2/util/LocalizedTextUtil.java LocalizedTextUtil should suppress exception with tomcat8 Key: WW-4416 URL: https://issues.apache.org/jira/browse/WW-4416 Project: Struts 2 Issue Type: Improvement Reporter: zhouyanming Assignee: Lukasz Lenart Fix For: 2.3.21 running struts2 with tomcat-8.0.14 will throw exception. {code:java} couldn't clear tomcat cache java.lang.NoSuchFieldException: resourceEntries at java.lang.Class.getDeclaredField(Class.java:1953) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:859) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:842) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:821) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:797) at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:214) at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:666) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:542) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:370) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123) at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:103) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4416) LocalizedTextUtil should suppress exception with tomcat8
[ https://issues.apache.org/jira/browse/WW-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14195940#comment-14195940 ] zhouyanming commented on WW-4416: - tomcat8 introduce super class WebappClassLoaderBase and moved field resourceEntries to it, so WebappClassLoader.class.getDeclaredField(resourceEntries) will throw NoSuchFieldException. LocalizedTextUtil should suppress exception with tomcat8 Key: WW-4416 URL: https://issues.apache.org/jira/browse/WW-4416 Project: Struts 2 Issue Type: Improvement Reporter: zhouyanming running struts2 with tomcat-8.0.14 will throw exception. {code:java} couldn't clear tomcat cache java.lang.NoSuchFieldException: resourceEntries at java.lang.Class.getDeclaredField(Class.java:1953) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:859) at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:842) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:821) at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:797) at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:214) at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:666) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:542) at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:370) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208) at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123) at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:103) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)