Re: Tomcat 7 + exception while adding cookies

2011-12-02 Thread Martin Kuen
Hi, On Thu, Dec 1, 2011 at 5:10 PM, Mark Thomas wrote: > On 01/12/2011 15:49, Martin Kuen wrote: > > I first blamed eclipse wtp doing sth. wrong when applying the > > configuration. Therefore, I checked the connector's jmx properties and to > > my surprise I could no longer find a property calle

Re: Tomcat 7 + exception while adding cookies

2011-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 12/1/11 4:29 AM, Pid wrote: > On 01/12/2011 04:38, Debraj Mallick wrote: >> hi Christopher, >> >> my tomcat version is : 7.0.14 working on Window7 with JDK 1.6 > > Can you try again with at least 7.0.21? +1 There are 9 releases between you

Re: Tomcat 7 + exception while adding cookies

2011-12-01 Thread Mark Thomas
On 01/12/2011 15:49, Martin Kuen wrote: > I first blamed eclipse wtp doing sth. wrong when applying the > configuration. Therefore, I checked the connector's jmx properties and to > my surprise I could no longer find a property called "maxHttpHeaderSize" > for the connector (comparing tc 6 to 7).

Re: Tomcat 7 + exception while adding cookies

2011-12-01 Thread Martin Kuen
Hi Mallick, hi all, To me it appears this setting is ignored by tc 7.0.x. I created a servlet: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.getSession().invalidate(); final int NUM_COOKIES = 500; for (int i = 0; i

Re: Tomcat 7 + exception while adding cookies

2011-12-01 Thread Pid
On 01/12/2011 04:38, Debraj Mallick wrote: > hi Christopher, > > my tomcat version is : 7.0.14 > working on Window7 with JDK 1.6 Can you try again with at least 7.0.21? p > On Thu, Dec 1, 2011 at 4:45 AM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Debraj, > > On 11/30/

Re: Tomcat 7 + exception while adding cookies

2011-11-30 Thread Debraj Mallick
hi Christopher, my tomcat version is : 7.0.14 working on Window7 with JDK 1.6 On Thu, Dec 1, 2011 at 4:45 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Debraj, > > On 11/30/11 1:16 PM, Debraj Mallick wrote: > > i have set max

Re: Tomcat 7 + exception while adding cookies

2011-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Debraj, On 11/30/11 1:16 PM, Debraj Mallick wrote: > i have set maxHttpHeaderSize=81920 but still i am getting > exception *Stack trace:* 30 Nov, 2011 11:38:48 PM > org.apache.catalina.connector.CoyoteAdapter service SEVERE: An > exception or error oc

Re: Tomcat 7 + exception while adding cookies

2011-11-30 Thread Debraj Mallick
Hi Martin, i have set maxHttpHeaderSize=81920 but still i am getting exception *Stack trace:* 30 Nov, 2011 11:38:48 PM org.apache.catalina.connector.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException:

Re: Tomcat 7 + exception while adding cookies

2011-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 11/30/11 12:11 PM, Martin Kuen wrote: > Try setting"maxHttpHeaderSize" for the in your > server.xml. Its default value is 8192 bytes. I guess you're > exceeding this limit. +1 If you have a lot of cookies or if you are sending SSL cert

Re: Tomcat 7 + exception while adding cookies

2011-11-30 Thread Martin Kuen
Hi Mallick, Try setting"maxHttpHeaderSize" for the in your server.xml. Its default value is 8192 bytes. I guess you're exceeding this limit. i.e. More details/exact info: http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation Best Regards, Martin

Re: Tomcat 7 + exception while adding cookies

2011-11-30 Thread Debraj Mallick
Thankyou Dan for your quick response my *server.xml*:

Re: Tomcat 7 + exception while adding cookies

2011-11-30 Thread Daniel Mikusa
On Wed, 2011-11-30 at 08:31 -0800, Debraj Mallick wrote: > hi all, > > i am getting exception while adding cookies in response > > *Stack trace*: > org.apache.catalina.connector.CoyoteAdapter service > SEVERE: An exception or error occurred in the container during the request > processing > java.

Tomcat 7 + exception while adding cookies

2011-11-30 Thread Debraj Mallick
hi all, i am getting exception while adding cookies in response *Stack trace*: org.apache.catalina.connector.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException: 8192 at org.apache.coyote.http11.Abstr