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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
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"
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors