struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Richter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4390) paramsPrepareParamsStack ignored excludeParams parameter in second params-Interceptor
Date Tue, 26 Aug 2014 08:53:59 GMT

    [ https://issues.apache.org/jira/browse/WW-4390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110507#comment-14110507
] 

Fabian Richter commented on WW-4390:
------------------------------------

java.lang.NoClassDefFoundError: com/opensymphony/xwork/ActionSupport
	at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_65]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[na:1.7.0_65]
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.7.0_65]
	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)
~[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) ~[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) ~[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ~[catalina-6.0.41.jar:6.0.41]
	at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_65]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[na:1.7.0_65]
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.7.0_65]
	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)
~[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) ~[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) ~[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ~[catalina-6.0.41.jar:6.0.41]
	at com.opensymphony.xwork2.util.finder.ClassLoaderInterfaceDelegate.loadClass(ClassLoaderInterfaceDelegate.java:34)
~[xwork-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at com.opensymphony.xwork2.util.finder.ClassFinder$ClassInfo.get(ClassFinder.java:562) ~[xwork-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at com.opensymphony.xwork2.util.finder.ClassFinder.findClasses(ClassFinder.java:343) ~[xwork-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:393)
[struts2-convention-plugin-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347)
[struts2-convention-plugin-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
[struts2-convention-plugin-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274)
[xwork-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
[xwork-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:981) [struts2-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:437)
[struts2-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:478) [struts2-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
[struts2-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.init(StrutsPrepareFilter.java:56)
[struts2-core-2.3.18-SNAPSHOT.jar:2.3.18-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298)
[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)
[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.StandardService.start(StandardService.java:525) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) [catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595) [catalina-6.0.41.jar:6.0.41]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_65]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_65]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0_65]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) [bootstrap.jar:6.0.41]
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) [bootstrap.jar:6.0.41]
Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork.ActionSupport
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) ~[catalina-6.0.41.jar:6.0.41]
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ~[catalina-6.0.41.jar:6.0.41]
	... 53 common frames omitted


> paramsPrepareParamsStack ignored excludeParams parameter in second params-Interceptor
> -------------------------------------------------------------------------------------
>
>                 Key: WW-4390
>                 URL: https://issues.apache.org/jira/browse/WW-4390
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Plugin - Convention
>    Affects Versions: 2.3.16.3
>            Reporter: Fabian Richter
>             Fix For: 2.3.18
>
>
> When using paramsPrepareParamsStack with the convention plugin multiple duplicate errors/warnings
with devMode=true occur like:
> {noformat}
> Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
> Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
> {noformat}
> By excluding these params (important is 'token') I was able to get rid of the duplication
of these messages:
> {code:java}
> @InterceptorRefs({@InterceptorRef(value = "paramsPrepareParamsStack", params = {"params.excludeParams",
> "struts.token,struts.token.name,token"})})
> {code}
> But apparently only the first params interceptor in the stack uses these params. The
second one (the one after the prepare interceptor) only uses the built-in excludeParams. So
one of the above mentioned errors persists,



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message