You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2007/11/30 14:57:43 UTC
[jira] Updated: (DIRMINA-479) Running Wget results in
UnsupportedOperationException
[ https://issues.apache.org/jira/browse/DIRMINA-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trustin Lee updated DIRMINA-479:
--------------------------------
Affects Version/s: (was: 2.0.0-M1)
> Running Wget results in UnsupportedOperationException
> -----------------------------------------------------
>
> Key: DIRMINA-479
> URL: https://issues.apache.org/jira/browse/DIRMINA-479
> Project: MINA
> Issue Type: Bug
> Components: Protocol - HTTP
> Environment: with JDK 1.5 and 1.6, on Windows and Mac OS
> Reporter: Sangjin Lee
> Priority: Minor
>
> Running Wget in the example results in UnsupportedOperationException, because it calls slice() on a UnderivableBuffer.
> Reproducible step:
> Run "org.apache.mina.example.httpclient.Wget http://www.google.com".
> org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.UnsupportedOperationException: Buffer derivation disabled. (Hexdump: empty)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:176)
> 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:812)
> at org.apache.mina.common.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:601)
> at org.apache.mina.common.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:399)
> at org.apache.mina.common.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:393)
> at org.apache.mina.common.AbstractIoProcessor.read(AbstractIoProcessor.java:348)
> at org.apache.mina.common.AbstractIoProcessor.process(AbstractIoProcessor.java:316)
> at org.apache.mina.common.AbstractIoProcessor.process(AbstractIoProcessor.java:308)
> at org.apache.mina.common.AbstractIoProcessor.access$400(AbstractIoProcessor.java:43)
> at org.apache.mina.common.AbstractIoProcessor$Worker.run(AbstractIoProcessor.java:590)
> at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:613)
> Caused by: java.lang.UnsupportedOperationException: Buffer derivation disabled.
> at org.apache.mina.common.UnderivableBuffer.slice(UnderivableBuffer.java:51)
> at org.apache.mina.filter.codec.http.HttpDecoder.decodeLine(HttpDecoder.java:93)
> at org.apache.mina.filter.codec.http.HttpResponseDecoder.processContent(HttpResponseDecoder.java:165)
> at org.apache.mina.filter.codec.http.HttpResponseDecoder.doDecode(HttpResponseDecoder.java:97)
> at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(CumulativeProtocolDecoder.java:133)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:166)
> ... 15 more
> The buffer is instantiated by CumulativeProtocolDecoder.storeRemainingInSession(), but HttpDecoder tries to slice it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.