Topic
  • No replies
SystemAdmin
SystemAdmin
269 Posts

Pinned topic I try to use some method in the RESTServiceExample but it has error

‏2013-02-07T04:01:32Z |
I try to use testUpdateTextValue() method in RestTest.class through RunRestAPI class.Please help me.Thank you very much.
Exception in thread "main" java.lang.IllegalArgumentException: host parameter is null
at org.apache.commons.httpclient.HttpConnection.setHost(HttpConnection.java:248)
at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnectionWithTimeout(SimpleHttpConnectionManager.java:163)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:152)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.telelogic.focalpoint.examples.rest.TestReseAPI.parseResource(TestReseAPI.java:206)
at com.telelogic.focalpoint.examples.rest.TestReseAPI.testUpdateTextValue(TestReseAPI.java:262)
at com.telelogic.focalpoint.examples.rest.RunRestAPI.main(RunRestAPI.java:16)