You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Sangjin Lee (JIRA)" <ji...@apache.org> on 2007/11/15 03:16:43 UTC

[jira] Created: (DIRMINA-479) Running Wget results in UnsupportedOperationException

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
    Affects Versions: 2.0.0-M1
         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.


[jira] Commented: (DIRMINA-479) Running Wget results in UnsupportedOperationException

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542654 ] 

Trustin Lee commented on DIRMINA-479:
-------------------------------------

We are going to rewrite HTTP client codec using the AsyncWeb HTTP codec in the sandbox.  It will take some time though...

> 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
>    Affects Versions: 2.0.0-M1
>         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.


[jira] Closed: (DIRMINA-479) Running Wget results in UnsupportedOperationException

Posted by "Sangjin Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sangjin Lee closed DIRMINA-479.
-------------------------------


Yes it works correctly now.  Thanks!

> 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
>            Assignee: Trustin 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.


[jira] Resolved: (DIRMINA-479) Running Wget results in UnsupportedOperationException

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee resolved DIRMINA-479.
---------------------------------

    Resolution: Fixed
      Assignee: Trustin Lee

Is this still an issue?  I think it shouldn't give you such an exception anymore.  Please let me know if it works or not.

> 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
>            Assignee: Trustin 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.


[jira] Commented: (DIRMINA-479) Running Wget results in UnsupportedOperationException

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542917 ] 

Trustin Lee commented on DIRMINA-479:
-------------------------------------

No, it's the AsyncWeb project in our sandbox.

> 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
>    Affects Versions: 2.0.0-M1
>         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.


[jira] Updated: (DIRMINA-479) Running Wget results in UnsupportedOperationException

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (DIRMINA-479) Running Wget results in UnsupportedOperationException

Posted by "Sangjin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542826 ] 

Sangjin Lee commented on DIRMINA-479:
-------------------------------------

Thanks.  You're referring to the AsyncHttpClient in the Geronimo sandbox, right?

> 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
>    Affects Versions: 2.0.0-M1
>         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.