You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2010/01/22 18:27:21 UTC

[jira] Closed: (DIRMINA-473) ReadThrottleFilter throws IllegalStateException

     [ https://issues.apache.org/jira/browse/DIRMINA-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRMINA-473.
-------------------------------------


> ReadThrottleFilter throws IllegalStateException
> -----------------------------------------------
>
>                 Key: DIRMINA-473
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-473
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>         Environment: Linux, Java 6, Box with 8 cores
>            Reporter: Roger Kapsi
>            Assignee: Trustin Lee
>
> The new ReadThrottleFilter from trunk throws an IlleganStateException.
> NioSocketAcceptor acceptor;
> DefaultIoFilterChainBuilder filterChain = acceptor.getFilterChain();
> // Adding other Filters and ReadThrottleFilter as the last one
> ReadThrottleFilter throttle = new ReadThrottleFilter();
> filterChain.addLast("read-throttle", throttle);
> Exception:
> java.lang.IllegalStateException: sessionBufferSize < 0
>        at org.apache.mina.filter.traffic.ReadThrottleFilter.exit(ReadThrottleFilter.java:455)
>        at org.apache.mina.filter.traffic.ReadThrottleFilter.messageReceived(ReadThrottleFilter.java:316)
>        at org.apache.mina.common.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:399)
>        at org.apache.mina.common.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:38)
>        at org.apache.mina.common.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:791)
>        at org.apache.mina.common.IoFilterEvent.fire(IoFilterEvent.java:54)
>        at org.apache.mina.common.IoEvent.run(IoEvent.java:62)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.