Exception on ratpack app deployed on heroku

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception on ratpack app deployed on heroku

stefano.gualdi
Hi All,

I've successfully deployed a simple application, everything works like expected but during the few initial requests the following exception appears in the heroku logs:

2013-08-05T18:34:33.167903+00:00 app[web.1]: Aug 05, 2013 6:34:22 PM io.netty.util.concurrent.DefaultPromise notifyListener0
2013-08-05T18:34:33.284707+00:00 app[web.1]: WARNING: An exception was thrown by io.netty.handler.stream.ChunkedWriteHandler$3.operationComplete()
2013-08-05T18:34:33.394665+00:00 app[web.1]: java.lang.IllegalStateException: recycled already

The full stacktrace is here: https://gist.github.com/stefanogualdi/6158313

After a while no more exceptions are reported but my application is very small and simple and composed by one page only.

As far I can say everything seems to works but I did only few tests and I could be wrong.

Thank you very much for your hard work on Ratpack :)

ciao
stefano
Reply | Threaded
Open this post in threaded view
|

Re: Exception on ratpack app deployed on heroku

Luke Daley
Administrator
Hi Stefano,

We had some problems with the version of Netty we are using. A new Ratpack snapshot was published about 6 hours ago that should fix this problem.

Can you try rebuilding? If you are using Gradle to build your app, run with --refresh-dependencies to get the latest snapshot.
Reply | Threaded
Open this post in threaded view
|

Re: Exception on ratpack app deployed on heroku

stefano.gualdi
Hi Luke,

thank you for you answer.

I'm already using the latest snapshot with netty 4.0.6 final.

I even added --refresh-dependencies to my bin/compile script and tried
it again and I got the same result:

java.lang.IllegalStateException: recycled already.

It happens easily on heroku, on my development machine I can reproduce
the issue reloading the page at a fast rate.

ciao
stefano


On 5 Aug 2013, at 21:17, Luke Daley [via Ratpack Forum] wrote:

> Hi Stefano,
>
> We had some problems with the version of Netty we are using. A new
> Ratpack
> snapshot was published about 6 hours ago that should fix this problem.
>
> Can you try rebuilding? If you are using Gradle to build your app, run
> with
> --refresh-dependencies to get the latest snapshot.
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the
> discussion below:
> http://forum.ratpack-framework.org/Exception-on-ratpack-app-deployed-on-heroku-tp97p98.html
>
> To unsubscribe from Exception on ratpack app deployed on heroku, visit
>
Reply | Threaded
Open this post in threaded view
|

Re: Exception on ratpack app deployed on heroku

Luke Daley
Administrator
I can't reproduce this with any of my apps.

Can you share your ratpack.groovy.
Reply | Threaded
Open this post in threaded view
|

Re: Exception on ratpack app deployed on heroku

stefano.gualdi
I can share the entire app with you so you can see the real thing.

But I'll prefer to do it privately because there are api keys for
external services.

Where can I send you the link for you to download the code?

ciao
stefano


On 6 Aug 2013, at 1:35, Luke Daley [via Ratpack Forum] wrote:

> I can't reproduce this with any of my apps.
>
> Can you share your ratpack.groovy.
>
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the
> discussion below:
> http://forum.ratpack-framework.org/Exception-on-ratpack-app-deployed-on-heroku-tp97p100.html
>
> To unsubscribe from Exception on ratpack app deployed on heroku, visit
>