I am seeing the same error with wget as well.  I think I have narrowed
down the problem.  In the class HttpRequestLineDecodingState line 67
you have an IoBuffer that represents the request.  There is then the
following line of code:

HttpMethod method = HttpMethod.valueOf(product.getString(asciiDecoder));

When I print out the variable "product" using a hex dumper, I get the following:

0000: 47 45 54 20 2F 72 73 73   20 48 54 54 50 2F 31 2E  GET /rss HTTP/1.
0010: 30 0D 0A 55 73 65 72 2D   41 67 65 6E 74 3A 20 57  0..User-Agent: W
0020: 67 65 74 2F 31 2E 31 31   2E 33 0D 0A 41 63 63 65  get/1.11.3..Acce
0030: 70 74 3A 20 2A 2F 2A 0D   0A 48 6F 73 74 3A 20 6C  pt: */*..Host: l
0040: 6F 63 61 6C 68 6F 73 74   3A 39 30 31 32 0D 0A 43  ocalhost:9012..C
0050: 6F 6E 6E 65 63 74 69 6F   6E 3A 20 4B 65 65 70 2D  onnection: Keep-
0060: 41 6C 69 76 65 0D 0A 0D   0A 00 00 00 00 00 00 00  Alive...........
0070: 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  ................
0080: 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  ................

The rest is all zero and the buffer is 2048 bytes.  I might be off on
this, but I am not sure we want to pass in a 2048 byte IoBuffer to
valueOf in order to get a result back.

--Mark

On Wed, Dec 3, 2008 at 2:50 PM, Mark Webb <[EMAIL PROTECTED]> wrote:
> Just tried Firefox and saw the exception.
>
> On Wed, Dec 3, 2008 at 2:46 PM, Mark Webb <[EMAIL PROTECTED]> wrote:
>> hrmm...   Shouldn't it be a GET?  I am just typing in the URL and
>> pressing the <enter> key.  I tried Internet Exploder and Google Chrome
>> and got the same results.
>>
>>
>> On Wed, Dec 3, 2008 at 2:41 PM, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:
>>> Mark Webb wrote:
>>>>
>>>> Here is what the browser prints out.  I am now using the listener
>>>> example and getting the same exception.
>>>>
>>>> ----------------------------------------------------------
>>>> You sent these headers with your request:
>>>> Accept =
>>>> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>>>> Accept-Charset = ISO-8859-1,*,utf-8
>>>> Accept-Encoding = gzip,deflate,bzip2,sdch
>>>> Accept-Language = en-US,en
>>>> Connection = Keep-Alive
>>>> Host = localhost:9012
>>>> User-Agent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
>>>> AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.4.154.29 Safari/525.19
>>>> X-SDCH = Chrome 0.4.154.29
>>>> ----------------------------------------------------------
>>>>
>>>
>>> from the stack trace you posted, the error is due to a wrong http method (it
>>> should be OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE or CONNECT). What is
>>> the method you are using ?
>>>
>>> --
>>> --
>>> cordialement, regards,
>>> Emmanuel Lécharny
>>> www.iktek.com
>>> directory.apache.org
>>>
>>>
>>>
>>
>

Reply via email to