# Service Unavailable issue with restfull

**URL:** <https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907>\
**Category:** Classic Servoy\
**Created:** [January 7, 2013, 3:51pm UTC](https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907 "2013-01-07T15:51:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [January 7, 2013, 3:51pm UTC](https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907/1 "2013-01-07T15:51:51Z")

</div>

Hi,

I’ve got a weird issue with a restful GET request.  
In Servoy 6.0.5 this works fine, but in 6.0.7 or 6.0.8 I get a Service Unavailable (HTTP-error 503) error back.

The servoy\_log returns this, but I have more then enough client licenses available.

```auto
2013-01-07 16:40:11,378 ERROR [http-8585-2] com.servoy.extensions.plugins.rest_ws.RestWSPlugin - /servoy-service/rest_ws/module_name/form_name/argument1/argument2 []
com.servoy.extensions.plugins.rest_ws.RestWSPlugin$NoClientsException
	at com.servoy.extensions.plugins.rest_ws.RestWSPlugin.getClient(RestWSPlugin.java:212)
	at com.servoy.extensions.plugins.rest_ws.servlets.RestWSServlet.wsService(RestWSServlet.java:381)
	at com.servoy.extensions.plugins.rest_ws.servlets.RestWSServlet.doGet(RestWSServlet.java:140)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at com.servoy.extensions.plugins.rest_ws.servlets.RestWSServlet.service(RestWSServlet.java:131)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at com.servoy.j2db.server.servlets.WebServicesServlet.service(WebServicesServlet.java:4)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Unknown Source)

```

This is an example of how I define the request:

```auto
var vURL = "http://domainname:8080/servoy-service/rest_ws/module_name/form_name/argument1/argument2";
var jClient = plugins.http.createNewHttpClient();
var jRequest = jClient.createGetRequest(vURL);
var jResponse = jRequest.executeRequest();

```

Anybody any tips or suggestions?

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [January 8, 2013, 8:00am UTC](https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907/2 "2013-01-08T08:00:10Z")

</div>

Karel,

Does the log file show some more exceptions?  
I would expect that the original cause is logged just below the NoClientsException stack trace.

Rob

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [January 8, 2013, 8:51am UTC](https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907/3 "2013-01-08T08:51:01Z")

</div>

> rgansevles:  
> Karel,  
> Does the log file show some more exceptions?  
> I would expect that the original cause is logged just below the NoClientsException stack trace.  
> Rob

Hi Rob,  
no this is all there is in the servoy\_log file.

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [January 8, 2013, 12:18pm UTC](https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907/4 "2013-01-08T12:18:47Z")

</div>

Somehow the headless client could not be created.  
What is the solution type of the solution?

Rob

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [January 8, 2013, 12:56pm UTC](https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907/5 "2013-01-08T12:56:04Z")

</div>

The solutiontype is ‘Module’, Rob.

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [January 9, 2013, 9:13am UTC](https://forum.servoy.com/t/service-unavailable-issue-with-restfull/16907/6 "2013-01-09T09:13:03Z")

</div>

It looks like something went wrong somewhere in the Servoy repo, so I’ve deleted the solution from the repository and re-imported it. After that the restful service worked fine again.  
Thanks for your support, Rob!
