Ask a Question

3.0 beta 1: HTTPRequest not expanding properties in Request URL

M_McDonald
Super Contributor

3.0 beta 1: HTTPRequest not expanding properties in Request URL

I am running a Mock Service and accessing it via an HTTP Request step. The Request URL has a property expansion (${#Project#TrackerServiceURL}). If I run the test step I get the exception below, but if I run it with a hard-coded URL (http://localhost:8080/DrugOrder) it works.

[tt:8ctzqyq7]Thu May 28 13:14:54 EDT 2009:ERROR:org.apache.commons.httpclient.URIException: invalid port number
  org.apache.commons.httpclient.URIException: invalid port number
  at org.apache.commons.httpclient.URI.parseAuthority(URI.java:2248)
  at org.apache.commons.httpclient.URI.parseUriReference(URI.java:1978)
  at org.apache.commons.httpclient.URI.(URI.java:147)
  at org.apache.commons.httpclient.HttpMethodBase.getURI(HttpMethodBase.java:265)
  at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.(BaseHttpResponse.java:61)
  at com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpResponse.(SinglePartHttpResponse.java:39)
  at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.createDefaultResponse(HttpClientRequestTransport.java:233)
  at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:189)
  at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:115)
  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)
Thu May 28 13:14:54 EDT 2009:ERROR:org.apache.commons.httpclient.URIException: invalid port number
  org.apache.commons.httpclient.URIException: invalid port number
  at org.apache.commons.httpclient.URI.parseAuthority(URI.java:2248)
  at org.apache.commons.httpclient.URI.parseUriReference(URI.java:1978)
  at org.apache.commons.httpclient.URI.(URI.java:147)
  at org.apache.commons.httpclient.HttpMethodBase.getURI(HttpMethodBase.java:265)
  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:383)
  at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:167)
  at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:115)
  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)[/tt:8ctzqyq7]
"Ignorance more frequently begets confidence than does knowledge"
2 REPLIES 2

Re: 3.0 beta 1: HTTPRequest not expanding properties in Request URL

Thanks, we'll check.

robert


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
NhaNguyen
Occasional Contributor

Re: ReadyAPI 1.5: HTTPRequest not expanding properties in Request URL

I have same problem when I run automation, but I run manually it works

cancel
Showing results for 
Search instead for 
Did you mean: