-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Rémy,

On 2/25/15 10:39 AM, Rémy Maucherat wrote:
> 2015-02-25 15:10 GMT+01:00 Christopher Schultz
> <ch...@christopherschultz.net
>> :
> 
>> SEVERE: Exception while dispatching incoming RPC call 
>> java.lang.IllegalArgumentException at
>> java.nio.Buffer.limit(Buffer.java:275) at 
>> org.apache.coyote.ajp.AjpNioProcessor.readSocket(AjpNioProcessor.java:179)
>>
>
>> 
> I see no checks to compare the packet size with the socket buffer
> sizes, so probably using socket.appReadBufSize and
> socket.appWriteBufSize could fix it.

This configuration seems to solve the issue:

    <Connector port="@connector-port@"
       redirectPort="443"
           protocol="org.apache.coyote.ajp.AjpNioProtocol"
        URIEncoding="UTF-8"
         packetSize="65536"
socket.appReadBufSize="65536"
socket.appWriteBufSize="65536"
           executor="tomcatThreadPool" />

Thanks for the tip, Rémy.

So, to recap, here's what I know so far:

1. AjpNioProtocol fails under some conditions (my post-login page)
   with packetSize larger than the default.

2. Using AjpProtocol (BIO) connector solves the problem

3. Using the default AJP packet size solves the problem

4. Specifying socket.appReadBufSize and socket.appWriteBufSize to be
the same as the packet size solves the problem

I'm still working on a small test case to help motivate debugging.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU7fWYAAoJEBzwKT+lPKRYWoAP+gK8fSmYF7+oW/VbkEuefSRe
jF8EobQ+5sKwUez+6rBTEAItOPEsEqfAxMnR+Mn5fJiZYomzN5yZ/n6IiwCH14ml
O/HGhoKoCz/FHh4BSS+cqpICzVnQWe7sSLQfqd3Po438AOdy3l897hEDvwqtQdty
z+ubWZTZA37KzVzR3Hr5UFiOelM8TGT1oxaOHLt5YnbT6gELt9ZvqN1S/ClTXaJd
WrQagI41vzxzivulynfXPqYq+cxi2vERVwP8EC6Yn5kex+ab0AH/V+Gebl+f42iG
ABW8Pjc36PkQK9JJFhC9YUYWxhUERlGAGOxtvQxERvf186txrESwkU3xV3H+chNj
WqxPR8Dapov8Kb+BCTBUnFtaK9MQUByNm/z8dJB7bX4/mG/772VsNutOSZP+NQMC
9Lr6nAncon2RJwRivsaPRcaSWR/jcwEo29nA68jvG+4iXp3829GbyjUjgE50c5Pc
bOqbzueWBV3DZMUVUR937YV/PYgN6qTRi1Dm/cqZZdaeEarTV5JE6IqgdK3H2WAm
PxTTvxUROYpiN+AufS1OxET3zzyPvHgNRBOPGe4LfJcuuMZd90hVqXr3i+B+MlBf
Ol3RXYUejMflbuQ6cYR0WEyPNWC0ePv5ncFa8xAogzU2yVNmx3dJj7lciHqwFR12
7vFlqBi4ECYClWCT9Toc
=bHJj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to