Hello Christie, Dalia,

I notice you are working with the internal HTTP server, which is fine for
developement, not for production environment. We consider this connector
not stable enough, at this time.
I suggest you to use the HTTP server connector provided by the jetty or
simple extension. Don't update your code, just complete the build path with
the jars of the extension and its dependencies.
You can have a look here :
http://wiki.restlet.org/docs_2.1/13-restlet/37-restlet.html

Best regards,
Thierry Boileau



I am also getting the same error:
>
>
>
>
> May 4, 2012 1:08:24 AM org.restlet.util.SelectionRegistration block
> WARNING: Unable to block the thread at the cyclic barrier
> java.util.concurrent.TimeoutException
>         at
> java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:222)
>        at java.util.concurrent.CyclicBarrier.await(CyclicBarrier.java:399)
>         at
> org.restlet.util.SelectionRegistration.block(SelectionRegistration.java:176)
>        at
> org.restlet.engine.io.NbChannelInputStream.onFill(NbChannelInputStream.java:225)
>        at org.restlet.engine.io.Buffer.process(Buffer.java:594)
>        at
> org.restlet.engine.io.NbChannelInputStream.read(NbChannelInputStream.java:302)
>        at java.io.InputStream.read(InputStream.java:82)
>        at org.restlet.engine.io.BioUtils.exhaust(BioUtils.java:235)
>        at
> org.restlet.representation.Representation.exhaust(Representation.java:244)
>        at
> org.restlet.engine.connector.ServerOutboundWay.onCompleted(ServerOutboundWay.java:171)
>        at
> org.restlet.engine.connector.HttpServerOutboundWay.onCompleted(HttpServerOutboundWay.java:114)
>        at
> org.restlet.engine.connector.OutboundWay.processIoBuffer(OutboundWay.java:407)
>        at org.restlet.engine.connector.Way.onSelected(Way.java:409)
>        at
> org.restlet.util.SelectionRegistration.onSelected(SelectionRegistration.java:292)
>        at
> org.restlet.engine.connector.Connection.onSelected(Connection.java:600)
>        at
> org.restlet.util.SelectionRegistration.onSelected(SelectionRegistration.java:292)
>        at
> org.restlet.engine.connector.ConnectionController.onSelected(ConnectionController.java:197)
>        at
> org.restlet.engine.connector.ServerConnectionController.onSelected(ServerConnectionController.java:96)
>        at
> org.restlet.engine.connector.ConnectionController.selectKeys(ConnectionController.java:270)
>        at
> org.restlet.engine.connector.ConnectionController.doRun(ConnectionController.java:150)
>        at org.restlet.engine.connector.Controller.run(Controller.java:155)
>         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:662)
> May 4, 2012 1:08:24 AM org.restlet.engine.connector.ServerOutboundWay
> onCompleted
> WARNING: Unable to automatically exhaust the request entity.
> java.io.IOException: Unable to block the thread at the cyclic barrier.
>         at
> org.restlet.util.SelectionRegistration.block(SelectionRegistration.java:180)
>        at
> org.restlet.engine.io.NbChannelInputStream.onFill(NbChannelInputStream.java:225)
>        at org.restlet.engine.io.Buffer.process(Buffer.java:594)
>        at
> org.restlet.engine.io.NbChannelInputStream.read(NbChannelInputStream.java:302)
>        at java.io.InputStream.read(InputStream.java:82)
>        at org.restlet.engine.io.BioUtils.exhaust(BioUtils.java:235)
>        at
> org.restlet.representation.Representation.exhaust(Representation.java:244)
>        at
> org.restlet.engine.connector.ServerOutboundWay.onCompleted(ServerOutboundWay.java:171)
>        at
> org.restlet.engine.connector.HttpServerOutboundWay.onCompleted(HttpServerOutboundWay.java:114)
>        at
> org.restlet.engine.connector.OutboundWay.processIoBuffer(OutboundWay.java:407)
>        at org.restlet.engine.connector.Way.onSelected(Way.java:409)
>        at
> org.restlet.util.SelectionRegistration.onSelected(SelectionRegistration.java:292)
>        at
> org.restlet.engine.connector.Connection.onSelected(Connection.java:600)
>        at
> org.restlet.util.SelectionRegistration.onSelected(SelectionRegistration.java:292)
>        at
> org.restlet.engine.connector.ConnectionController.onSelected(ConnectionController.java:197)
>        at
> org.restlet.engine.connector.ServerConnectionController.onSelected(ServerConnectionController.java:96)
>        at
> org.restlet.engine.connector.ConnectionController.selectKeys(ConnectionController.java:270)
>        at
> org.restlet.engine.connector.ConnectionController.doRun(ConnectionController.java:150)
>        at org.restlet.engine.connector.Controller.run(Controller.java:155)
>         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:662)
> Caused by: java.util.concurrent.TimeoutException
>        at java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:222)
>        at java.util.concurrent.CyclicBarrier.await(CyclicBarrier.java:399)
>         at
> org.restlet.util.SelectionRegistration.block(SelectionRegistration.java:176)
>        ... 24 more
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2957630
>

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

Reply via email to