Service Unavailable issue with restfull

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.

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:

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?

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

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.

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

Rob

The solutiontype is ‘Module’, Rob.

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!