AJP with header too big

17 views
Skip to first unread message

Fabrice Bacchella

unread,
Sep 30, 2019, 5:40:31 AM9/30/19
to CAS Community
I'm getting the following error on CAS 5.3 with AJP:

2019-09-30 11:19:19,411 ERROR [org.apache.coyote.ajp.AjpProcessor] Header message of length [11,006] received but the packetSize is only [8,192]
2019-09-30 11:19:19,411 ERROR [org.apache.coyote.ajp.AjpProcessor] Error processing request
java.lang.NullPointerException: null

So I should increase the packetSize of the AJP connector, but it's missing from https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties.html#ajp

Is it hidden somewhere else ?



Julien Gribonvald

unread,
Sep 30, 2019, 5:52:37 AM9/30/19
to cas-...@apereo.org
Hi,

This is written in the doc but not directly, you have the property
cas.server.ajp.attributes.attributeName=attributeValue .

That is to say, for your case: cas.server.ajp.attributes.packetSize=YOUR
VALUE

- Julien
--
Julien Gribonvald

Fabrice Bacchella

unread,
Sep 30, 2019, 12:55:07 PM9/30/19
to cas-...@apereo.org
Indeed it works now.

Thanks for the hint and sorry for the missread.

Philippe MARASSE

unread,
Oct 1, 2019, 7:20:46 AM10/1/19
to cas-...@apereo.org
You should set packetSize at the same value on application server and in
your web server (we use 16384 in our organization for years).

Regards;

Le 30/09/2019 à 11:40, Fabrice Bacchella a écrit :
--
Philippe MARASSE

Responsable pôle Infrastructures - DSIO
Centre Hospitalier Henri Laborit
CS 10587 - 370 avenue Jacques Cœur
86021 Poitiers Cedex
Tel : 05.49.44.57.19


Reply all
Reply to author
Forward
0 new messages