axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] [Resolved] (AXIS2-5740) Axis2 1.7.0 Upgrade Classcast Exception
Date Thu, 11 Feb 2016 21:03:18 GMT


Andreas Veithen resolved AXIS2-5740.
    Resolution: Not A Problem

The HttpClient support was written for 4.2.x and should work with 4.3.x and 4.4.x. However,
it is incompatible with 4.5.x.

If you have to use 4.5.x please feel free to submit a patch to upgrade to that version.

> Axis2 1.7.0 Upgrade Classcast Exception
> ---------------------------------------
>                 Key: AXIS2-5740
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: Mac OSX El Capitan, Java JDK 1.7.x, 16GB RAM, IDEA(IntelliJ), Gradle
>            Reporter: Gil
> I've upgraded from 1.6.3 to 1.7.0, migrated our project to utilize the HttpClient 4.5.x
and Axis2 to include copying the axis2.xml from the binary download into the project.  Not
able to get past this error and I've tried rebuilds, updates to axis2.xml and so on.
> java.lang.ClassCastException: org.apache.http.impl.client.InternalHttpClient cannot be
cast to org.apache.http.impl.client.AbstractHttpClient
> 	at org.apache.axis2.transport.http.impl.httpclient4.HTTPSenderImpl.getHttpClient(
> 	at org.apache.axis2.transport.http.impl.httpclient4.HTTPSenderImpl.sendViaPost(
> 	at org.apache.axis2.transport.http.HTTPSender.send( ~[axis2-transport-http-1.7.0.jar:1.7.0]
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> 	at org.apache.axis2.engine.AxisEngine.send( ~[axis2-kernel-1.7.0.jar:1.7.0]
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(
> 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> 	at org.apache.axis2.client.OperationClient.execute( ~[axis2-kernel-1.7.0.jar:1.7.0]

This message was sent by Atlassian JIRA

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

View raw message