Timeout while writing to the queue-based output stream

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Timeout while writing to the queue-based output stream

Xybrek
I'm using Restlet version 2.3.5 for Google App Engine (GAE)

My GAE app breaks and RootServerResource stops working (serving) over
time (1-2 hours usually) when this error hits:

     WARNING: Error while writing to the piped input stream.
     java.io.IOException: Timeout while writing to the queue-based
output stream
               org.restlet.engine.io.PipeStream$2.write(PipeStream.java:99)
               java.io.OutputStream.write(OutputStream.java:116)
            com.dropbox.core.util.IOUtil.copyStreamToStream(IOUtil.java:52)
 
com.dropbox.core.util.IOUtil.copyStreamToStream(IOUtil.java:63)
 
com.dropbox.core.util.IOUtil.copyStreamToStream(IOUtil.java:34)
 
com.dropbox.core.v1.DbxClientV1$Downloader.copyBodyAndClose(DbxClientV1.java:535)
               com.dropbox.core.v1.DbxClientV1.getFile(DbxClientV1.java:427)
 
com.firststeps.resource.gae.GaeRootServerResource.getFile(GaeRootServerResource.java:268)
 
com.firststeps.resource.gae.GaeRootServerResource$1.write(GaeRootServerResource.java:140)
               org.restlet.engine.io.IoUtils$2.run(IoUtils.java:537)
               org.restlet.engine.Engine$1.run(Engine.java:158)
 
com.google.appengine.tools.development.RequestThreadFactory$1$1$2.run(RequestThreadFactory.java:110)
               java.security.AccessController.doPrivileged(Native Method)
 
com.google.appengine.tools.development.RequestThreadFactory$1$1.run(RequestThreadFactory.java:107)

The code that triggered this error is this (using [Dropbox SDK][1]):

     DbxRequestConfig config = new DbxRequestConfig("mydropboxapp/1.0",
Locale.getDefault().toString(), AppengineHttpRequestor.Instance);
     DbxClientV1 client = new DbxClientV1(config, dropboxToken);
     DbxEntry.File md = client.getFile(path, null,  outputStream);


Where the HttpRequestor is [AppengineHttpRequestor][2].

 From my research this error is related to Restlet Framework bug, is
there a way to fix this?


   [1]: https://github.com/dropbox/dropbox-sdk-java
   [2]: https://gist.github.com/anonymous/dc025b8ab2fed76659864d91d7236851

--
You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].

Loading...