users@grizzly.java.net

Re: Grizzly CancelledKeyException

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Mon, 10 Jun 2013 14:35:48 -0700

Hi David,

the issue has to be fixed now,
can you pls. try the latest 2.3.4-SNAPSHOT from this [1] maven repository?

Thank you.

WBR,
Alexey.

[1] https://maven.java.net/content/repositories/snapshots/

On 10.06.13 12:21, Hou, Chunxiao wrote:
>
> Hi Alexey,
>
> https://java.net/jira/browse/GRIZZLY-1521 created to track this issue.
> Please keep us posted. Thank you!
>
> Regards,
>
> David
>
> *From:*Oleksiy Stashok [mailto:oleksiy.stashok_at_oracle.com]
> *Sent:* Monday, June 10, 2013 2:46 PM
> *To:* users_at_grizzly.java.net
> *Subject:* Re: Grizzly CancelledKeyException
>
> 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
> <http://www.jpmorgan.com/pages/disclosures/email>.
>
> 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.
>