I am able to reslove the time out issue but using the org.restlet.ext.http connector i am unable to send objects as method arguments from client to server,and am getting illegal argument and null pointer exceptions.
On Wed, Mar 11, 2015 at 7:18 PM, Fabian Mandelbaum [via Restlet Discuss] < ml-node+s1400322n757935...@n2.nabble.com> wrote: > Another possible solution with such requests, which may take LONG to > process, is to have the server return HTTP 202 (Accepted) as soon as it's > ready to process the request, and the client knows its request will be > processed later. > > Of course, you may also need another server resource to query the status > of such "to be processed later" requests. > > HTH > > > On Tue, Mar 10, 2015 at 8:52 PM, Jerome Louvel <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=7579351&i=0>> wrote: > >> If you need to stick with version 2.1, I recommend using the Apache HTTP >> Client extension (see "socketTimeout" parameter): >> >> http://restlet.com/technical-resources/restlet-framework/javadocs/2.1/jee/ext/org/restlet/ext/httpclient/HttpClientHelper.html >> >> or the Net HTTP Client extension (see "readTimeout" parameter): >> >> http://restlet.com/technical-resources/restlet-framework/javadocs/2.1/jee/ext/org/restlet/ext/net/HttpClientHelper.html >> >> Jerome >> >> >> On Tue, Mar 10, 2015 at 2:13 PM, Chirayu Desai <[hidden email] >> <http:///user/SendEmail.jtp?type=node&node=7579351&i=1>> wrote: >> >>> No the request processing at server may or maynot take more than 1 >>> minute, which means that the server may not necessaryly respond before >>> timeout. >>> >>> On Wed, Mar 11, 2015 at 2:37 AM, Jerome Louvel-3 [via Restlet Discuss] >>> <[hidden >>> email] <http:///user/SendEmail.jtp?type=node&node=7579349&i=0>> wrote: >>> >>>> Hello Chirayu, >>>> >>>> Is your server supposed to answer before the timeout observed? >>>> Also, are you be able to upgrade to version 2.3.1 ("stable")? >>>> >>>> Best regards, >>>> Jerome >>>> >>>> >>>> On Tue, Mar 10, 2015 at 1:04 PM, Chirayu Desai <[hidden email] >>>> <http:///user/SendEmail.jtp?type=node&node=7579348&i=0>> wrote: >>>> >>>>> I am using a restlet 2.1 client sever based architecture, my client >>>>> times out >>>>> within 1 minute after sending the request. and I get the following >>>>> exception >>>>> : >>>>> Internal Connector Error (1002) - The calling thread timed out while >>>>> waiting >>>>> for a response to unblock it. >>>>> at >>>>> org.restlet.resource.ClientResource$1.invoke(ClientResource.java:1663) >>>>> at com.sun.proxy.$Proxy17.getTaskList(Unknown Source).... >>>>> >>>>> My code is as below : >>>>> >>>>> import org.restlet.resource.ClientResource; >>>>> >>>>> *ClientResource cr = new ClientResource(uri); >>>>> MyResource resource= cr.wrap(MyResource .class); >>>>> updateStatus = >>>>> resource.updateData(Parameter);* >>>>> >>>>> how should I configure my client resource to avoid timeout ? >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347.html >>>>> Sent from the Restlet Discuss mailing list archive at Nabble.com. >>>>> >>>>> ------------------------------------------------------ >>>>> >>>>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3104395 >>>>> >>>> >>>> >>>> >>>> ------------------------------ >>>> If you reply to this email, your message will be added to the >>>> discussion below: >>>> >>>> http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347p7579348.html >>>> To unsubscribe from Restelt Client Internal Connector Error (1002), click >>>> here. >>>> NAML >>>> <http://restlet-discuss.1400322.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >>>> >>> >>> >>> >>> -- >>> -Regards, >>> -Chirayu Desai >>> >>> ------------------------------ >>> View this message in context: Re: Restelt Client Internal Connector >>> Error (1002) >>> <http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347p7579349.html> >>> >>> Sent from the Restlet Discuss mailing list archive >>> <http://restlet-discuss.1400322.n2.nabble.com/> at Nabble.com. >>> >> >> > > > -- > Fabián Mandelbaum > IS Engineer > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347p7579351.html > To unsubscribe from Restelt Client Internal Connector Error (1002), click > here > <http://restlet-discuss.1400322.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7579347&code=Y2hpcmF5dUBwdXJwbGVkb2NzLmNvbXw3NTc5MzQ3fDIwOTYxNjc5MDU=> > . > NAML > <http://restlet-discuss.1400322.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- -Regards, -Chirayu Desai -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347p7579352.html Sent from the Restlet Discuss mailing list archive at Nabble.com. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3104686