Re: 2.1 Status of Connectors

2012-04-23 Thread Arjohn Kampman
Hi Jerome, I'm reproducably seeing this "communication errors (1001)" with a POST request in one of our unit tests. Is this a known issue? If not, is there anything I can do to help you find the source of this problem? Regards, Arjohn Kampman On 23/04/2012 07:55, Jerome Louvel wrote: > Hi Grant

RE: 2.1 Status of Connectors

2012-04-23 Thread Jerome Louvel
Hi Arjohn, We are looking for ways to consistently reproduce such issues, so if you could provide a simple test case that would be of great help. Feel free to open an issue in GitHub to just reply here, that's one of my top priority for 2.1 RC5. Best regards, Jerome -- http://www.restlet.com ht

Wadl usage

2012-04-23 Thread Daniele Dellafiore
Hi. I succesfully followed http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/72-restlet.html to get a proper WADL xml. Now I need to conform to an enhanced schema definition, by ApiGee. Here's a sample wadl https://apigee.com/wadls/sample-wadl.xml?ver=20120330-1900 Formats are pretty differe

RE: Restlet Methods

2012-04-23 Thread Dalia Sobhy
If I wrote this in createbound method: Restlet retrievepatient = new Restlet(getContext()) { @Override public void handle(Request request, Response response) { patientResource = new PatientResource(); //Save patient's ID

RE: Restlet Methods

2012-04-23 Thread Dalia Sobhy
//This is for the Client //Testing client= new ClientResource("http://localhost:8182/1234/retrievepatient";); try { client.get().write(System.out); System.out.println(client.get().getText()); } catch (IOException ex) { Logger.getLogger(Cl

RE: Restlet Methods

2012-04-23 Thread Dalia Sobhy
Another way for the server router.attach("/{patient}/retrievepatient",PatientResource.class); router.attach("/Patient/AddPatient",PatientResource.class); I get the following error at the server: Starting the internal [HTTP/1.1] server on port 8182 null org.apache.thrift.transport.TTransp

GAE doesn't support redirectPermanent()??

2012-04-23 Thread Sultan Kosaev
Hi everyone! When i run my app on localhost, it run and redirect fine redirectPermanent("/student"); but when i deploy my app on the GAE, it doesn't redirecting... I can't understand, why? -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/GAE-doesn-t-support-redirec

RE: ObjectRepresentation with int negative returns null

2012-04-23 Thread Jerome Louvel
Hi Gabriel, I have just fixed your original issue causing the object conversion to fail. It wasn’t due to the internal HTTP connector, but to the logic converting an OutputStream into an InputStream located in the BioUtils class. Thanks for the report, this was a subtle yet potentially nast

RE: ObjectRepresentation with an Object embedding a negative int value

2012-04-23 Thread Jerome Louvel
Hi Gabriel and al. I have just fixed this issue causing the object conversion to fail when including negative values. It wasn’t due to the internal HTTP connector, but to the logic converting an OutputStream into an InputStream located in the BioUtils class. Thanks for the report, this was a subt

Re: 2.1 Status of Connectors

2012-04-23 Thread Arjohn Kampman
The 1001 error proved to be caused by a ClassCastException in my case. I forgot to change the object type for custom headers from Form to Series. The errors were gone after fixing this. Cheers, Arjohn Kampman On 23/04/2012 10:12, Jerome Louvel wrote: > Hi Arjohn, > > We are looking for ways to co

Nio connector doesn't close streams/channels

2012-04-23 Thread Arjohn Kampman
Hi all, There appears to be a bug in the intella http server in restlet 2.1-rc4. InputStream's returned by server resource aren't closed by the this server, but they are closed when using Jetty. I've debugged the issue to OutboundWay.writeLine(). This method gets the input stream and wraps it in a

RE: Re: 2.1 Status of Connectors

2012-04-23 Thread Grant
I haven't been able to reliably reproduce it yet. Seems to happen more on slower machines. Sometimes I see underlying log messages that indicate problems, but nothing consistent. I'm headed up against a release and switching to HTTPClient fixed the issue (it's been running regularly for a day

How to make a URI which passes two parameters using restlet : Restlet 2.1

2012-04-23 Thread Dalia Sobhy
This is an example of a method: updatePatientAddressByID(String ID, String address) Any Help -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/How-to-make-a-URI-which-passes-two-parameters-using-restlet-Restlet-2-1-tp7493109p7493109.html Sent from the Restlet Discuss

Re: How to make a URI which passes two parameters using restlet : Restlet 2.1

2012-04-23 Thread Tim Peierls
It's not always possible or desirable to find a one-to-one correspondence between object/method-oriented APIs and resource-oriented APIs. One of the hardest things for me in adopting Restlet has been to stop thinking in terms of method calls and to start thinking in terms of resources and represent