[jira] [Commented] (WW-5060) Struts 2 Rest Plugin Conversion Issue
[ https://issues.apache.org/jira/browse/WW-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17859571#comment-17859571 ] Lukasz Lenart commented on WW-5060: --- Do you use Struts JSON plugin as well? Looks like you are mixing REST plugin which has it's own JSON handlers with JSON plugin - this won't work. > Struts 2 Rest Plugin Conversion Issue > - > > Key: WW-5060 > URL: https://issues.apache.org/jira/browse/WW-5060 > Project: Struts 2 > Issue Type: Bug > Components: Other >Affects Versions: 2.3.1 >Reporter: Ronak Jain >Priority: Major > Fix For: 6.5.0 > > > I integrated strust2 convention plugin and rest plugin. > When a request come to server where my field is long and I am sending a > string then default stacktrace occurs. > I want to handle the exception from my side but before request come to any > interceptor, it is throwing exception. > My configuration: > {code:xml} > class="org.apache.struts2.rest.handler.JacksonLibHandler"/> > > > > class="org.apache.struts2.views.tiles.TilesResult" /> > class="com.elitecore.neoxemsippbx.coreneoxemsippbx.ep.util.EliteJsonResult" /> > > > class="com.elitecore.neoxemsippbx.system.interceptor.TransactionInterceptor"/> > class="com.elitecore.neoxemsippbx.system.interceptor.AuditInterceptor" /> > class="com.elitecore.neoxemsippbx.system.interceptor.CustomRestWorkflowInterceptor"/> > > > name="excludeMethods">deleteConfirm,cacheServerGroups,validateRuleset > > > > * > > > > > > ${actionChainUrl} > type="tiles">commons/general/UnhandledException > commons/general/Error > ${actionChainUrl} > type="tiles">ServerManagerWelcome > ${actionChainUrl} > type="tiles">${actionChainUrl} > type="tiles">_${actionChainUrl} > type="tiles">${actionChainUrl} > ${actionChainUrl} > ${actionChainUrl} > > > > attachment;filename=${fileName} > $(contentType) > fileInputStream > 1024 > > > > false > > ${includeSearchProperties} > > > > exception="java.lang.Throwable"> > exception="java.lang.RuntimeException"> > > > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (WW-5060) Struts 2 Rest Plugin Conversion Issue
[ https://issues.apache.org/jira/browse/WW-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17036060#comment-17036060 ] Lukasz Lenart commented on WW-5060: --- Would you mind preparing a small Maven based app that reproduces the problem? > Struts 2 Rest Plugin Conversion Issue > - > > Key: WW-5060 > URL: https://issues.apache.org/jira/browse/WW-5060 > Project: Struts 2 > Issue Type: Bug > Components: Other >Affects Versions: 2.3.x >Reporter: Ronak Jain >Priority: Major > Fix For: 2.6 > > > I integrated strust2 convention plugin and rest plugin. > When a request come to server where my field is long and I am sending a > string then default stacktrace occurs. > I want to handle the exception from my side but before request come to any > interceptor, it is throwing exception. > > My configuration : > name="jackson" class="org.apache.struts2.rest.handler.JacksonLibHandler"/> > > > > > /> > class="com.elitecore.neoxemsippbx.coreneoxemsippbx.ep.util.EliteJsonResult" /> > > > class="com.elitecore.neoxemsippbx.system.interceptor.TransactionInterceptor"> > class="com.elitecore.neoxemsippbx.system.interceptor.AuditInterceptor" /> > class="com.elitecore.neoxemsippbx.system.interceptor.CustomRestWorkflowInterceptor"/> > > > name="excludeMethods">deleteConfirm,cacheServerGroups,validateRuleset > > > > * > > > > > > ${actionChainUrl} > type="tiles">commons/general/UnhandledException > commons/general/Error > ${actionChainUrl} > type="tiles">ServerManagerWelcome > ${actionChainUrl} > type="tiles">${actionChainUrl} > _${actionChainUrl} > ${actionChainUrl} > ${actionChainUrl} > ${actionChainUrl} > > > > attachment;filename=${fileName} > $(contentType) > fileInputStream > 1024 > > > > false > > ${includeSearchProperties} > > > > exception="java.lang.Throwable"> > exception="java.lang.RuntimeException"> > > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (WW-5060) Struts 2 Rest Plugin Conversion Issue
[ https://issues.apache.org/jira/browse/WW-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17036050#comment-17036050 ] Ronak Jain commented on WW-5060: Please provide the work around > Struts 2 Rest Plugin Conversion Issue > - > > Key: WW-5060 > URL: https://issues.apache.org/jira/browse/WW-5060 > Project: Struts 2 > Issue Type: Bug > Components: Other >Affects Versions: 2.3.x >Reporter: Ronak Jain >Priority: Major > Fix For: 2.6 > > > I integrated strust2 convention plugin and rest plugin. > When a request come to server where my field is long and I am sending a > string then default stacktrace occurs. > I want to handle the exception from my side but before request come to any > interceptor, it is throwing exception. > > My configuration : > name="jackson" class="org.apache.struts2.rest.handler.JacksonLibHandler"/> > > > > > /> > class="com.elitecore.neoxemsippbx.coreneoxemsippbx.ep.util.EliteJsonResult" /> > > > class="com.elitecore.neoxemsippbx.system.interceptor.TransactionInterceptor"> > class="com.elitecore.neoxemsippbx.system.interceptor.AuditInterceptor" /> > class="com.elitecore.neoxemsippbx.system.interceptor.CustomRestWorkflowInterceptor"/> > > > name="excludeMethods">deleteConfirm,cacheServerGroups,validateRuleset > > > > * > > > > > > ${actionChainUrl} > type="tiles">commons/general/UnhandledException > commons/general/Error > ${actionChainUrl} > type="tiles">ServerManagerWelcome > ${actionChainUrl} > type="tiles">${actionChainUrl} > _${actionChainUrl} > ${actionChainUrl} > ${actionChainUrl} > ${actionChainUrl} > > > > attachment;filename=${fileName} > $(contentType) > fileInputStream > 1024 > > > > false > > ${includeSearchProperties} > > > > exception="java.lang.Throwable"> > exception="java.lang.RuntimeException"> > > -- This message was sent by Atlassian Jira (v8.3.4#803005)