Exception with "WARNING: Promise done already" - after latest snapshot update

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

Exception with "WARNING: Promise done already" - after latest snapshot update

stefano.gualdi
Hi All,

the attached stacktrace appears during local development with the latest snapshot.

Someone is facing the same behavior?

Also, using a handlebars template, a content type must be specified in the render method otherwise the user is asked to download the page, is this the intended behavior?

Thanks

ciao
stefano


---------------------- CUT HERE -------------------------

Aug 14, 2013 3:35:01 PM io.netty.channel.ChannelOutboundBuffer safeFail
WARNING: Promise done already: [email protected](failure(io.netty.handler.codec.EncoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1) - new exception is:
java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
        at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
        at sun.nio.ch.IOUtil.write(IOUtil.java:149)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:483)
        at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:268)
        at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:673)
        at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.flush0(AbstractNioChannel.java:259)
        at io.netty.channel.AbstractChannel$AbstractUnsafe.flush(AbstractChannel.java:642)
        at io.netty.channel.DefaultChannelPipeline$HeadHandler.flush(DefaultChannelPipeline.java:1042)
        at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:677)
        at io.netty.channel.DefaultChannelHandlerContext.flush(DefaultChannelHandlerContext.java:658)
        at io.netty.channel.ChannelOutboundHandlerAdapter.flush(ChannelOutboundHandlerAdapter.java:115)
        at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:677)
        at io.netty.channel.DefaultChannelHandlerContext.flush(DefaultChannelHandlerContext.java:658)
        at io.netty.handler.stream.ChunkedWriteHandler.dChunkedWriteHandler.java:324)
        at io.netty.handler.stream.ChunkedWriteHandler.flush(ChunkedWriteHandler.java:150)
        at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:677)
        at io.netty.channel.DefaultChannelHandlerContext.flush(DefaultChannelHandlerContext.java:658)
        at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:686)
        at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:692)
        at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:897)
        at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:239)
        at org.ratpackframework.http.internal.DefaultResponse.commit(DefaultResponse.java:240)
        at org.ratpackframework.http.internal.DefaultResponse.send(DefaultResponse.java:76)
        at org.ratpackframework.file.internal.FileRenderer.render(FileRenderer.java:64)
        at org.ratpackframework.file.internal.FileRenderer.render(FileRenderer.java:34)
        at org.ratpackframework.render.internal.DefaultRenderOperation.execute(DefaultRenderOperation.java:44)
        at org.ratpackframework.render.internal.DefaultRenderController.render(DefaultRenderController.java:43)
        at org.ratpackframework.handling.internal.DefaultContext.render(DefaultContext.java:119)
        at org.ratpackframework.file.internal.FileStaticAssetRequestHandler.handle(FileStaticAssetRequestHandler.java:48)
        at org.ratpackframework.file.internal.DirectoryStaticAssetRequestHandler.handle(DirectoryStaticAssetRequestHandler.java:54)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext.insert(DefaultContext.java:95)
        at org.ratpackframework.file.internal.TargetFileStaticAssetRequestHandler.handle(TargetFileStaticAssetRequestHandler.java:69)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext.insert(DefaultContext.java:95)
     rg.ratpackframework.file.internal.FileSystemBindingHandler.handle(FileSystemBindingHandler.java:50)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext$1.handle(DefaultContext.java:182)
        at org.ratpackframework.handling.internal.DefaultContext.next(DefaultContext.java:83)
        at org.ratpackframework.path.internal.PathHandler.handle(PathHandler.java:42)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext$1.handle(DefaultContext.java:182)
        at org.ratpackframework.handling.internal.DefaultContext.next(DefaultContext.java:83)
        at org.ratpackframework.path.internal.PathHandler.handle(PathHandler.java:42)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext$1.handle(DefaultContext.java:182)
        at org.ratpackframework.handling.internal.DefaultContext.next(DefaultContext.java:83)
        at org.ratpackframework.path.internal.PathHandler.handle(PathHandler.java:42)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext$1.handle(DefaultContext.java:182)
        at org.ratpackframework.handling.internal.DefaultContext.next(DefaultContext.java:83)
        at org.ratpackframework.path.internal.PathHandler.handle(PathHandler.java:42)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext$1.handle(DefaultContext.java:182)
        at org.ratpackframework.handling.internal.DefaultContext.next(DefaultContext.java:83)
        at org.ratpackframework.path.internal.PathHandler.handle(PathHandler.java:42)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext.insert(DefaultContext.java:87)
        at org.ratpackframewoling.internal.ChainHandler.handle(ChainHandler.java:32)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext.insert(DefaultContext.java:87)
        at org.ratpackframework.handling.internal.ChainHandler.handle(ChainHandler.java:32)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext.insert(DefaultContext.java:91)
        at org.ratpackframework.session.internal.SessionBindingHandler.handle(SessionBindingHandler.java:46)
        at org.ratpackframework.handling.internal.DefaultContext.doNext(DefaultContext.java:187)
        at org.ratpackframework.handling.internal.DefaultContext.insert(DefaultContext.java:91)
        at org.ratpackframework.guice.internal.InjectorBindingHandler.handle(InjectorBindingHandler.java:54)
        at org.ratpackframework.groovy.internal.ScriptBackedApp.handle(ScriptBackedApp.java:97)
        at org.ratpackframework.error.internal.ErrorCatchingHandler.handle(ErrorCatchingHandler.java:33)
        at org.ratpackframework.server.internal.NettyHandlerAdapter.channelRead0(NettyHandlerAdapter.java:101)
        at org.ratpackframework.server.internal.NettyHandlerAdapter.channelRead0(NettyHandlerAdapter.java:54)
        at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98)
        at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:333)
        at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:319)
        at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
        at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:333)
        at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:319)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
        at io.netty.channel.DefaultChannelHandlerContokeChannelRead(DefaultChannelHandlerContext.java:333)
        at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:319)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173)
        at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:333)
        at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:319)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:789)
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:100)
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:497)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:465)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:359)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
        at java.lang.Thread.run(Thread.java:722)

---------------------- CUT HERE -------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Exception with "WARNING: Promise done already" - after latest snapshot update

Luke Daley
Administrator
Hi Stefano,

You should name your template according to type. Something like: index.html.hbs

As for the other, it's likely a Netty bug. Can you provide instructions to reproduce?
Reply | Threaded
Open this post in threaded view
|

Re: Exception with "WARNING: Promise done already" - after latest snapshot update

stefano.gualdi
Hi Luke,

ah, ok. Sorry for the stupid question!

Yes, I'll send you a private message with my application in a few
minutes.

ciao
stefano

On 14 Aug 2013, at 19:09, Luke Daley [via Ratpack Forum] wrote:

> Hi Stefano,
>
> You should name your template according to type. Something like:
> index.html.hbs
>
> As for the other, it's likely a Netty bug. Can you provide
> instructions to reproduce?
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the
> discussion below:
> http://forum.ratpack-framework.org/Exception-with-WARNING-Promise-done-already-after-latest-snapshot-update-tp120p121.html
>
> To unsubscribe from Exception with "WARNING: Promise done already" -
> after latest snapshot update, visit
>