Hi David,
can you pls. file the JIRA issue here:
https://java.net/jira/browse/GRIZZLY
We'll fix it asap.
Thanks.
WBR,
Alexey.
On 10.06.13 10:23, Hou, Chunxiao wrote:
>
> Hi Grizzly team,
>
> Our team is exploring Grizzly recently and quite happy with it so far.
>
> But we have one question here: we noticed Grizzly server throws out
> exception below when clients have http "GET" queries:
>
> ARNING: Error during Processor execution.
> Connection=TCPNIOConnection{localSocketAddress={0.0.0.0/0.0.0.0:9998},
> peerSocketAddress={/*****}} ioEvent=WRITE
> processor=org.glassfish.grizzly.filterchain.DefaultFilterChain_at_1915eb
> <mailto:processor=org.glassfish.grizzly.filterchain.DefaultFilterChain_at_1915eb>
>
> _java.nio.channels.CancelledKeyException_
>
> at sun.nio.ch.SelectionKeyImpl.ensureValid(Unknown Source)
>
> at sun.nio.ch.SelectionKeyImpl.interestOps(Unknown Source)
>
> at
> org.glassfish.grizzly.nio.DefaultSelectorHandler.deregisterKeyInterest(_DefaultSelectorHandler.java:156_)
>
> at
> org.glassfish.grizzly.nio.NIOConnection.disableIOEvent(_NIOConnection.java:753_)
>
> at
> org.glassfish.grizzly.strategies.SameThreadIOStrategy$InterestProcessingHandlerWhenIoEnabled.disableIOEvent(_SameThreadIOStrategy.java:165_)
>
> at
> org.glassfish.grizzly.strategies.SameThreadIOStrategy$InterestProcessingHandlerWhenIoEnabled.onContextManualIOEventControl(_SameThreadIOStrategy.java:157_)
>
> at
> org.glassfish.grizzly.Context.setManualIOEventControl(_Context.java:173_)
>
> at
> org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.processAsync(_AbstractNIOAsyncQueueWriter.java:498_)
>
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(_DefaultFilterChain.java:110_)
>
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(_ProcessorExecutor.java:77_)
>
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(_TCPNIOTransport.java:838_)
>
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(_AbstractIOStrategy.java:113_)
>
> at
> org.glassfish.grizzly.strategies.SameThreadIOStrategy.executeIoEvent(_SameThreadIOStrategy.java:103_)
>
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(_AbstractIOStrategy.java:89_)
>
> at
> org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(_SelectorRunner.java:409_)
>
> at
> org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(_SelectorRunner.java:378_)
>
> at
> org.glassfish.grizzly.nio.SelectorRunner.doSelect(_SelectorRunner.java:342_)
>
> at org.glassfish.grizzly.nio.SelectorRunner.run(_SelectorRunner.java:274_)
>
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(_AbstractThreadPool.java:564_)
>
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(_AbstractThreadPool.java:544_)
>
> at java.lang.Thread.run(Unknown Source)
>
> Can you please give us some ideas why the server throws this exception
> and how we can fix it please? The maven dependency is
>
> <dependency>
>
> <groupId>org.glassfish.grizzly</groupId>
>
> <artifactId>grizzly-http</artifactId>
>
> <version>2.3.3</version>
>
> </dependency>
>
> <dependency>
>
> <groupId>org.glassfish.grizzly</groupId>
>
> <artifactId>grizzly-http-server</artifactId>
>
> <version>2.3.3</version>
>
> </dependency>
>
> Thanks,
>
> David Hou
>
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of securities,
> accuracy and completeness of information, viruses, confidentiality,
> legal privilege, and legal entity disclaimers, available at
> http://www.jpmorgan.com/pages/disclosures/email.
>