memory leak in JaxbRepresentation

2009-11-12 Thread Sid
I have a resource that for GET returns a large XML. I've notice that when ever client doesn't read the entire response, Marshaller in JaxbRepresentation holds on to passed in objects and they don't get garbage collected. Is there way to prevent this Memory leak in JaxbRepresentation if client d

RE: Re: DomRepresentation and schema validation

2009-11-12 Thread webpost
hi > Hi Jim, > > good! > > Best regards, > Thierry Boileau > > > > Never mind, the problem is with the default XML parser in Java, not > > Restlet. I thought I had seen different behavior when using the Validator > > with a document that was not obtained from a DomRepresentation, but I was

RE: DomRepresentation and schema validation

2009-11-12 Thread webpost
hi > I'm trying to validate a posted DomRepresentation and respond with an error > document that indicates which elements failed to validate. I have an > ErrorHandler set to capture the individual SAXExceptions, like so: > > Validator validator = messageSchema.newValidator(); > validator.setErr

suggest jsonRepresentation update

2009-11-12 Thread neel
Jsonlib is good tool for parsing the json data, but there are no support in the restlet. i suggest the jsonRepresentation update to use the jsonlib to parsing data 2009-11-13 guozhen07 -- http://restlet.tigris.org/ds/viewMessage.do?dsForum

Re: DomRepresentation and schema validation

2009-11-12 Thread Thierry Boileau
Hi Jim, good! Best regards, Thierry Boileau > Never mind, the problem is with the default XML parser in Java, not Restlet. > I thought I had seen different behavior when using the Validator with a > document that was not obtained from a DomRepresentation, but I was mistaken. > > -

RE: Re: Restlet running on servlet api 2.3

2009-11-12 Thread Yuri Sokolovski
Hi, we want to use the Restlet framework in our project, but need support for Servlet API 2.3 (SAP Web App Server 7.0 is still servlet API 2.3 :( ). As per your earlier suggestion, I tried it using the existing 2_5 servlet extension bundled, and it fails - there are a bunch of 2.5 calls which a

RE: DomRepresentation and schema validation

2009-11-12 Thread webpost
Never mind, the problem is with the default XML parser in Java, not Restlet. I thought I had seen different behavior when using the Validator with a document that was not obtained from a DomRepresentation, but I was mistaken. -- http://restlet.

Re: Default routing mode change

2009-11-12 Thread Tim Peierls
On Wed, Nov 11, 2009 at 11:40 AM, Ben R Vesco wrote: > >> Regarding the enums, we did consider them in several places but they > prevent > >> addition of new constants by the framework or by the developer, > especially > >> without breaking existing code. > Framework users wouldn't be able to ad

Re: DomRepresentation setIndent bug

2009-11-12 Thread Rémi Dewitte
Thierry, Unfortunately this is buggy : java.lang.IllegalArgumentException: Serialization parameter {indent} must have the value yes or no Boolean.toString(isIndent()) should be replaced by: isIndent() ? "yes" : "no" Cheers, Rémi On Thu, Nov 12, 2009 at 09:34, Thierry Boileau wrote: > Hi, > > t

Re: Restlet GWT: Problem with HTTP POST request in Firefox

2009-11-12 Thread Thierry Boileau
Hello, I've made a successful test with the current snapshot. Could you give it a try? If it still fails, could you send us a reproductible test case? Best regards, Thierry Boileau > Using GWT 1.7.0, all GET method calls work in Hosted mode and IE, but Firefox > *still* uses OPTIONS. I suggest

RE: Restlet GWT: Problem with HTTP POST request in Firefox

2009-11-12 Thread webpost
Using GWT 1.7.0, all GET method calls work in Hosted mode and IE, but Firefox *still* uses OPTIONS. I suggest promoting this issue to blocker for the GWT version of Restlet. Using (taken from JAR manifest): Name: org.restlet.gwt Implementation-Title: org.restlet.gwt Implementation-Version: 2.0 S

Re: DomRepresentation setIndent bug

2009-11-12 Thread Thierry Boileau
Hi, thanks for your report, the fix is available in the svn repository. Best regards, Thierry Boileau > Hi, > > There seems to be a bug in DocRepresentation#createTransformer. Why this: > > transformer.setOutputProperty( >javax.xml.transform.OutputKeys.INDENT, Boolean >