AnsweredAssumed Answered

How to virtualize the REST service using From Scratch?

Question asked by Avinash_304 on Feb 23, 2015
Latest reply on Feb 24, 2015 by Avinash_304

 

Hi,

 

I have created a sample REST service from scratch which need to respond  with text saying welcome to rest service.

I not sure Get this error in response step of REST when I run against the VS. Please also have a look on video and let me know what is the problem with virtual service.

 

thanks

 

============================================================================

| HTTP

============================================================================

| Message:     org.apache.http.NoHttpResponseException: localhost:8004 failed to respond

----------------------------------------------------------------------------

| Trapped Exception: localhost:8004 failed to respond

| Trapped Message:   org.apache.http.NoHttpResponseException: localhost:8004 failed to respond

----------------------------------------------------------------------------

STACK TRACE

org.apache.http.NoHttpResponseException: localhost:8004 failed to respond

  at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)

  at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)

  at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)

  at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)

  at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251)

  at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:197)

  at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)

  at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)

  at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685)

  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487)

  at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)

  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

  at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1005)

  at com.itko.lisa.test.CommTrans.send(CommTrans.java:801)

  at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:754)

  at com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:209)

  at com.itko.lisa.ws.rest.RESTNode.doWebTrans(RESTNode.java:167)

  at com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:363)

  at com.itko.lisa.ws.rest.RESTNodeEditor$4.doCallback(RESTNodeEditor.java:894)

  at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)

  at java.lang.Thread.run(Unknown Source)

============================================================================

Outcomes