Hi everybody !

Thanks to all of you for your replies. Unfortunately (or fortunately) I
spent the whole morning trying to reproduce the problem but everything
works fine today!

@Filippo: Ciao! There are no "strange" or blank character on cookie
value, it's just the JSESSIONID "as is". It's a value generated by
Tomcat, isn't it?

@Marcos: I have no logs... I tried to log this morning using log4j at
DEBUG level, but, as I said in the beginning, everything works fine today...

@Christopher: here's the access logs, with all the HTTP calls
(everything's fine, these are NOT the logs of the fail scenario):

127.0.0.1 - - [27/May/2011:11:29:41 +0200] "POST
/servlet/it.dianoema.dnweb.library.servlets.Automation HTTP/1.1" 200 2070
127.0.0.1 - - [27/May/2011:11:29:41 +0200] "POST
/servlet/it.dianoema.dnweb.library.servlets.ConsoleServlet HTTP/1.1" 200
1698
127.0.0.1 - - [27/May/2011:11:29:41 +0200] "GET
/servlet/it.dianoema.dnweb.dnlis.servlets.StampaEtichette?azione=PRINT&stampante_autom=false&printer=Etichette
HTTP/1.1" 200 6066
127.0.0.1 - - [27/May/2011:11:29:45 +0200] "POST
/servlet/it.dianoema.dnweb.dnlis.servlets.AzioniSuRichieste HTTP/1.1" 200 7
127.0.0.1 - - [27/May/2011:11:30:12 +0200] "POST
/servlet/it.dianoema.dnweb.dnlis.servlets.GetSkel HTTP/1.1" 200 7
127.0.0.1 - - [27/May/2011:11:30:12 +0200] "GET
/servlet/it.dianoema.dnweb.dnlis.servlets.StampaEtichette?azione=VOID
HTTP/1.1" 200 582
127.0.0.1 - - [27/May/2011:11:30:12 +0200] "GET
/servlet/it.dianoema.dnweb.dnlis.servlets.GetFiltro?TEMPLATE=templates/gsp/head.template
HTTP/1.1" 200 5489
127.0.0.1 - - [27/May/2011:11:30:12 +0200] "GET
/servlet/it.dianoema.dnweb.dngsp.ShowQuery?TEMPLATE=templates%2Fgsp%2Flist.template&ELENCO=Pazienti&SESSION_REM=ALL&QUERY=PazientiGSP&FIELD_Reparto=noe_dnweb&FIELD_ExtCodice=&FIELD_Codice=&FIELD_CodiceRicovero=&FIELD_Cognome=&FIELD_Nome=&FIELD_00_DataUltimaRichiesta=&FIELD_01_DataUltimaRichiesta=&COND_Cognome=+LIKE+&COND_Nome=+LIKE+&COND_00_DataUltimaRichiesta=SHORT_DATE%3E%3D&COND_01_DataUltimaRichiesta=SHORT_DATE%3C%3D&SORTS=&AGG_REP=yes&REP_IN=yes
HTTP/1.1" 200 42222
127.0.0.1 - - [27/May/2011:11:30:12 +0200] "GET
/servlet/it.dianoema.dnweb.dnlis.servlets.GetSkel?SKEL=/dnlis/templates/gsp/tail.template&GSP=ON&AMB=OFF
HTTP/1.1" 200 2280
127.0.0.1 - - [27/May/2011:11:30:12 +0200] "GET
/servlet/it.dianoema.dnweb.dnlis.servlets.Context HTTP/1.1" 200 2565


I'll explain you our flow:
we call the servlet Automation that starts a thread who sequentially
calls all the other servlets, when the thread has finished the control
is returned to Automation servlet.
Not all servlet are called by thread: lots of them are invoked because
the previous servlet returned an HTML page containing frames that have a
servlet URL in the src attribute. Let's make an example:

Automation --> Thread started --> Call servlet 1 --> HTML is returned
--> Call servlet 2 (it's in the HTML page) --> Thread end --> Automation

Usually the problem occours when invoking servlet from the HTML page
(servlet 2 in the example above, servlet called GetFiltro in the access
logs).

Things I've tried to do:
- increase size of connector input stream buffer, from 2048 to 4096,
using bufferSize attribute
- force the "Set-Cookie" attribute in every response, forcing the
JSESSIONID cookie

If you want I have the entire HTTP headers of request/response.

I'll try again to reproduce the problem, I will send you more details
when it will occour again.

Thanks everybody!

Best regards


Il 27/05/2011 10.33, Filippo Machi ha scritto:
> Ciao!
> Please read my comment inline..
>
> On Fri, May 27, 2011 at 12:12 AM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
> Filippo,
>
> On 5/26/2011 10:50 AM, Filippo Machi wrote:
> >>> One of our legacy (non java) server was used to put a blank (' ')
> character
> >>> as value of a cookie.
>
> The value itself is blank, or the value /contains/ a blank?
>
>
> > the value contains a blank
>
>
>
> Please give us an example of a "Cooke:" header from your client and
> maybe we can suggest a solution (a few come to mind, but I'm unwilling
> to describe them until I see an example).
>
>
> > here it's an example, I used firebug to grab the cookie header
> contained in
> > the request:
>
> >
> AA=01*49qmsEhufMY7I6g/OnGT2tN3ThrCZH6vJ342kTDsssuRgEhlqwftbRTaikwi9I3HIx5yoK1ng4tY
> > 5JuIUe3x9o0Jptimu3uvVgeQAKc5htM=;
> > __utma=125866390.1346069185.1295258223.1306326749.1306484681.40;
> > __utmz=125866390.1306326795.39.29.utmcsr=....
>
>
> > as you can see there are different cookies, the first one (AA) it's the
> > guilty. It has a blank here
>
> > ...4tY 5Ju...
>
> > thanks
> > Fil
>
>
>
> -chris
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>

-- 
Diego Ruotolo - NoemaLife S.p.A.

Ing. Diego Ruotolo
Software developer

NoemaLife S.p.A.
Via Gobetti, 52
40129 Bologna - ITALY
T +39 051 70.98.249
F +39 051 41.93.900
www.noemalife.com


Reply via email to