cancel
Showing results for 
Search instead for 
Did you mean: 

ClassCastException for ExtendedGetMethod when executing HTTP Request step

Highlighted
Super Contributor

ClassCastException for ExtendedGetMethod when executing HTTP Request step

I am executing an HTTP Request against a Mock Service and getting the following in the error log:


Fri Apr 10 09:04:51 EDT 2009:ERROR:java.lang.ClassCastException: com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedGetMethod cannot be cast to org.apache.commons.httpclient.methods.EntityEnclosingMethod
  java.lang.ClassCastException: com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedGetMethod cannot be cast to org.apache.commons.httpclient.methods.EntityEnclosingMethod
  at com.eviware.soapui.impl.wsdl.submit.filters.RestRequestFilter.filterRestRequest(RestRequestFilter.java:199)
  at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterAbstractHttpRequest(AbstractRequestFilter.java:37)
  at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:29)
  at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:117)
  at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)

This has not (yet) caused me any issues, but I would like to know what is causing it.

Thanks.
"Ignorance more frequently begets confidence than does knowledge"
3 REPLIES 3
Highlighted

Re: ClassCastException for ExtendedGetMethod when executing HTTP Request step

Hello,

We'll look into it, thanks for reporting.

robert


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted

Re: ClassCastException for ExtendedGetMethod when executing HTTP Request step

Hi,

Please check that the mediaType of the body is not set to "multipart/form-data", which is not valid for GET requests.

Does that help?

regards,

/Ole
eviware.com


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Super Contributor

Re: ClassCastException for ExtendedGetMethod when executing HTTP Request step

Yes it does. Thanks very much.

- Michael
"Ignorance more frequently begets confidence than does knowledge"