Hello,

I am using resteasy 2.3.5.Final

        <resteasy.version>2.3.5.Final</resteasy.version>
        <dependency>
            <groupId>org.jboss.resteasy</groupId>
            <artifactId>resteasy-jaxrs</artifactId>
            <version>${resteasy.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jboss.resteasy</groupId>
            <artifactId>resteasy-netty</artifactId>
            <version>${resteasy.version}</version>
        </dependency>

i tried to plug in netty 3.5.9 Final instead of the 3.4.4 but the behaviour
is the same.

I have provided a sample testcase here: https://gist.github.com/4450991

but test is just sleeping, i use curl and ab to reproduce the issue.

i will try with the latest trunk in the meantime.

Thanks for your attention
Mete





On Fri, Jan 4, 2013 at 10:11 AM, Weinan Li <l.wei...@gmail.com> wrote:

>
>
> --
> Weinan Li
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> On Friday, January 4, 2013 at 4:08 PM, mete wrote:
>
> Hello folks,
>
> i am working on a poc, and i want to use netty but i need a simpler way to
> interact with the http requests so i decided to go with the netty support
> of resteasy.
>
> i have a straightforward code that i found from the wiki :
>
> server = new NettyJaxrsServer();
> server.setDeployment(deployment);
>  server.setPort(port);
> server.start();
>
> and a few rest resources that dont really do much, the problem is when i
> try to execute a simple load test with the command line ab tool:
>
> ab -n 100 -c 1 http://127.0.0.1:3000/api/someEndpoint
>
> i see exceptions like the following which are unrelated to my own
> application code:
>
> INFO   | jvm 1    | 2013/01/04 09:14:07 |
> java.nio.channels.ClosedChannelException
>
>
> Hi mete,
>
> Which version of RESTEasy you are using? If you use the one <2.3.5.Final,
> there is a bug in Netty provider that won't handle server shutdown properly.
>
> If you are using 2.3.5.Final and still get this problem, could you please
> provide your testing code(better on github) so I could check it? Thanks!
>
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:785)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:508)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:129)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:66)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.Channels.write(Channels.java:733)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:60)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.Channels.write(Channels.java:733)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:60)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:185)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.Channels.write(Channels.java:712)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.Channels.write(Channels.java:679)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.resteasy.plugins.server.netty.RequestHandler.messageReceived(RequestHandler.java:73)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:45)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:315)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> INFO   | jvm 1    | 2013/01/04 09:14:07 | at
> java.lang.Thread.run(Thread.java:680)
>
> any ideas?
>
> thanks in advance
>
>
>
>
> ------------------------------------------------------------------------------
> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> much more. Get web development skills now with LearnDevNow -
> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122812
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>
>
>
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to