You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Markus Heussen <he...@rheinland-online.com> on 2003/10/27 17:12:26 UTC

Session attributes lost

Hi all,

Our environment:

* Win2K
* first Apache Tomcat/4.1.18 with JDK 1.3.1_07-b02
* Apache 2.0.44 in Front of the Tomcat an with mod_jk2 2.0.43 running for
load balancing
* JBoss 3.2.1 with a separate JDK 1.3.1_07 included a Tomcat 4.1.24


We have some strange losts of session attribute values. It seems that the
problem occurs in particular when the servers load is high. Our Cocoon 2.0.4
application stores each request parameter and any user given form data in
separate session attributes. Again and again it happens, that stored session
attributes are lost. In all cases the session itself seems to be valid. It
also happens that a date like "19.10.2000" stored in a session attribute
returns on getAttribute the value "19.10.". Mostly the informations stored
in session attributes are string objects.

I searched round about few days in different mailing lists for hints finding
a fix for this problem. It seems that we are not alone with this problem.
But still I did not find a answer :-(

Anybody out there who can turn us to the right direction to solve this
behavior?

Please help us!

Best regards, Markus


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


AW: Session attributes lost

Posted by Markus Heussen <he...@rheinland-online.com>.
Thanx to Antonio, Joerg and Javier for your hints.

But it seems as if the cause of our problem depends not to the versions of
our jdk or tomcats . We also have problems with newer versions of tomcat on
our other servers. Meanwhile we guess that the problems maybe relate to the
mod_jk2 module of our front apache 2 server.

First guess:

We have one Apache 2 server configured with modjk2 to load balance to 4
servers in the backend. The last time we lost session attributes our
jkstatus overview showed one of our backend servers in error state. It seems
that the ajp connector of this server was down. So requests of users with
active sessions on this broken server will be routed by modjk to another
server. So far we thought that the session is invalide for the tomcat which
is relevant next. Is it possible that the session is still valid for this
new tomcat? It seems so because the session is valid cocoon action gives
true. So the generator is executed but cannot access the relevant session
attributes and fails.

Second guess:

Once we restart our frontend apache 2 (not graceful) the session attributes
are lost again. After restart it is possible that one user with an active
session on server X is now routed to server Y by modjk2 because apache
doesn't know the active server for each user. So far we thought that the
session is invalide for server Y but it seems that it's not the case because
our first cocoon sitemap pipe uses the session is valid action. It seems
that this action gives true and the generator is executed but cannot access
session attributes and failes.


Can anybody give further information about apache 2, modjk and tomcats
session handling in error cases?

We need your help please.

Thanx to all, Markus.


-----Ursprüngliche Nachricht-----
Von: Antonio Gallardo [mailto:agallardo@agsoftware.dnsalias.com]
Gesendet: Dienstag, 28. Oktober 2003 00:31
An: users@cocoon.apache.org
Betreff: Re: Session attributes lost


Markus Heussen dijo:
> Hi all,
>
> Our environment:
>
> * Win2K
> * first Apache Tomcat/4.1.18 with JDK 1.3.1_07-b02
Can you upgrade to Tomcat 4.1.27?

Best Regards,

Antonio Gallardo

> * Apache 2.0.44 in Front of the Tomcat an with mod_jk2 2.0.43 running
> for load balancing
> * JBoss 3.2.1 with a separate JDK 1.3.1_07 included a Tomcat 4.1.24

Here too: Tomcat 4.1.27?





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Session attributes lost

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Markus Heussen dijo:
> Hi all,
>
> Our environment:
>
> * Win2K
> * first Apache Tomcat/4.1.18 with JDK 1.3.1_07-b02
Can you upgrade to Tomcat 4.1.27?

Best Regards,

Antonio Gallardo

> * Apache 2.0.44 in Front of the Tomcat an with mod_jk2 2.0.43 running
> for load balancing
> * JBoss 3.2.1 with a separate JDK 1.3.1_07 included a Tomcat 4.1.24

Here too: Tomcat 4.1.27?





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org