hi,

Our application uses the DomRepresentation to return XML responses.
We have saxon9.jar and saxon9-dom.jar in our classpath.
Restlet uses saxon9 when present to construct(serialize?) the response.
We were using restlet 2.0m5 so far and it was working well.
Since we switched to 2.0m6 the XML resources fail with the following
exception:

14 déc. 2009 12:05:58 org.restlet.engine.http.HttpServerAdapter commit
GRAVE: An exception occured writing the response entity
java.lang.IllegalArgumentException: Serialization parameter {indent}
must have the value yes or no
    at net.sf.saxon.Controller.setOutputProperty(Controller.java:351)
    at
org.restlet.ext.xml.DomRepresentation.createTransformer(DomRepresentation.java:117)
    at
org.restlet.ext.xml.DomRepresentation.write(DomRepresentation.java:265)
    at
org.restlet.engine.http.HttpServerCall.writeResponseBody(HttpServerCall.java:510)
    at
org.restlet.engine.http.HttpServerCall.sendResponse(HttpServerCall.java:447)
    at
org.restlet.engine.http.HttpServerAdapter.commit(HttpServerAdapter.java:453)
    at
org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:150)
    at
org.restlet.engine.http.StreamServerHelper$ConnectionHandler.run(StreamServerHelper.java:89)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

Does anyone know about this problem, is there any workaround?

Thanks.

Maxime Bégnis, NeoDoc

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2430299

Reply via email to