mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Vermillard (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DIRMINA-473) ReadThrottleFilter throws IllegalStateException
Date Thu, 17 Jul 2008 12:53:32 GMT

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

Julien Vermillard resolved DIRMINA-473.
---------------------------------------

    Resolution: Invalid

ReadThrottle filter was removed . 
Look at this thread for alternative solutions :
http://www.nabble.com/Dropping-traffic-throttling-from-2.0-td16092085.html


> 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.


Mime
View raw message