Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: Multi processor issue

Marziou, Gael

2006-12-08

Replies:

First, to clarify in my message, I did put 2 stack traces of 2
independent errors.

Tomcat does not synchronize before locking the map but that should not
be an issue because the request is guaranteed to be processed by only
one thread.

HttpEventContextObject.getParameter() does just extract the parameters
of the request to store them in what we cal an event, I suppose it could
be compared to a Struts action.
So, we only read the Request parameters, nothing fancy.


Gael

-----Original Message-----
From: Leon Rosenberg [mailto:rosenberg.leon@(protected)]
Sent: Friday, December 08, 2006 6:38 PM
To: Tomcat Users List
Subject: Re: Multi processor issue

looks like
Request.getParameterMap()
is called twice. The first call locks the request, the second fails.


what exactly does your
com.hp.swift.portal.state.HttpEventContextObject.getParameter(HttpEventC
ontextObject.java:64) ?

Could it be that two threads passes through this codepiece concurrently
and both calls comes through to the Request object? That would be a
clear synchronization issue and pretty typical for tomcat
:-)

regards
Leon

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.