mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Kapsi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-473) ReadThrottleFilter throws IllegalStateException
Date Mon, 12 Nov 2007 16:45:50 GMT

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

Roger Kapsi commented on DIRMINA-473:
-------------------------------------

Yes I'm building MINA myself from trunk. Just to be sure, when I checkout the code from <http://svn.apache.org/repos/asf/mina/trunk>
I'll get always the latest code!?

I'll see if I can some up with a little application (it may take a few days due to a lot of
work I've to finish).

-Roger

> 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