Re: Problem with org.restlet.Client

2007-06-02 Thread Jim Alateras
The offending code has been fixed in HttpClientHelper like this: try { HttpClientCall httpCall = getConverter().toSpecific(this, request); getConverter().commit(httpCall, request, response); } catch (Exception e) { getLogger().log(Level.INFO,

Re: Please Don't Eat Exceptions

2007-06-02 Thread Adam Taft
Jerome, I think I had to patch the code in two places to get it to work. There was another instance of this type of code in HttpMethodCall. You might want to look for it there (or look at my patch in the bug report, which should give you an idea of where to look). Thanks, Adam Jerome Lo

RE: warning instantiating one of my resources

2007-06-02 Thread Jerome Louvel
Hi Jim, The issue might be coming from the lack of a constructor with a Context parameter in your ProcessManagerApplication class. As o.r.Application also has a default constructor, you might have missed this requirement. Best regards, Jerome > -Message d'origine- > De : Jim Alateras

RE: Please Don't Eat Exceptions

2007-06-02 Thread Jerome Louvel
Hi Adam, The fix I've just checked in SVN should solve your issue. You now can check whether your request generated an error by solely looking at the response's status code. In your case, it would return a CONNECTOR_ERROR_INTERNAL because we don't fully deal with invalid URIs. In the future, we m

RE: Problem with org.restlet.Client

2007-06-02 Thread Jerome Louvel
Hi Jim and Adam, As the connectors in the Restlet API are protocol-neutral (HTTP-centric indeed but usable for other protocols/schemes like file:// and ftp://) and as we allow for switchable implementations of those connectors (JDK's HttpURLConnection, Apache HTTP, etc.), we don't control all the

Re: warning instantiating one of my resources

2007-06-02 Thread Thierry Boileau
Hello Jim, there may be a problem with the web.xml configuration file. If ProcessManagerApplication is not a Restlet application, you should not have to implement such constructor, and this kind of error should not happen... Could you send us your configuration file? Best regards, Thierry Bo