axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] [Updated] (AXIS2-5716) In the admin console the seiMethodHeaderParameter service parameter should not be modifiable
Date Sun, 29 May 2016 08:54:12 GMT


Andreas Veithen updated AXIS2-5716:
    Fix Version/s: 1.7.3

> In the admin console the seiMethodHeaderParameter service parameter should not be modifiable
> --------------------------------------------------------------------------------------------
>                 Key: AXIS2-5716
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: admin console
>    Affects Versions: 1.6.2
>            Reporter: Olivier Vanekem
>             Fix For: 1.7.3
>         Attachments: Axis2____Administration_Page-seiMethodHeaderParameter.jpg, Console-after-patching-code.jpg,
> In the admin console, some services are automatically tagged with the seiMethodHeaderParameter
service parameter.
> This parameter takes an array as value instead of a String.
> Because it appears in the parameters in the console, changing any other parameter for
the service will also send a value to this seiMethodHeaderParameter parameter. This issue
is that the admin console sends all parameter values as String and therefore the seiMethodHeaderParameter
now contains a String value instead of an array.
> This will result in an exception of the service at runtime with a ClassCastException
cannot cast a String into an array.
> See such an exception below:
> {noformat}
> [ERROR] java.lang.String cannot be cast to java.util.ArrayList
> java.lang.ClassCastException: java.lang.String cannot be cast to java.util.ArrayList
> 	at org.apache.axis2.jaxws.dispatchers.MustUnderstandUtils.getHeaderParamaterList(
> 	at org.apache.axis2.jaxws.dispatchers.MustUnderstandUtils.markUnderstoodHeaderParameters(
> 	at org.apache.axis2.jaxws.dispatchers.MustUnderstandChecker.doInvoke(
> 	at org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(
> 	at org.apache.axis2.engine.Phase.invokeHandler(
> 	at org.apache.axis2.engine.Phase.invoke(
> 	at org.apache.axis2.engine.AxisEngine.invoke(
> 	at org.apache.axis2.engine.AxisEngine.receive(
> 	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> 	at org.apache.axis2.transport.http.AxisServlet.doPost(
> 	at javax.servlet.http.HttpServlet.service(
> 	at javax.servlet.http.HttpServlet.service(
> {noformat}
> Looking at the code of MustUnderstandUtils, we see indeed that it tries to retrieve the
value of the seiMethodHeaderParameter service parameter as in:
> {code:java}
> ArrayList seiMethodHeaders = (ArrayList)axisService.getParameterValue("seiMethodHeaderParameter");
> {code}
> And this generates the exception because we changed (another) service parameter but the
admin console updated also seiMethodHeaderParameter with a string value.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message