You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Davanum Srinivas <da...@gmail.com> on 2004/10/19 12:42:08 UTC

Re: AW: AW: Bug : Threading issue in wss4j subproject (patch included )

Too Early, Need Coffee :) :)

-- dims


On Tue, 19 Oct 2004 12:37:45 +0200, Dittmann Werner
<we...@siemens.com> wrote:
> Dims,
> the patch is included in the orginal mail from Erik.
> 
> Werner
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Davanum Srinivas [mailto:davanum@gmail.com]
> > Gesendet: Dienstag, 19. Oktober 2004 12:36
> > An: Dittmann Werner
> > Cc: Erik_Vanherck@inventivedesigners.com;
> > fx-dev@ws.apache.org; vreddyp@gmail.com
> > Betreff: Re: AW: Bug : Threading issue in wss4j subproject
> > (patch included)
> >
> >
> > Werner,
> >
> > Patch is missing :)
> >
> > -- dims
> >
> >
> > On Tue, 19 Oct 2004 12:29:04 +0200, Dittmann Werner
> > <we...@siemens.com> wrote:
> > >
> > > Erik,
> > >
> > > thanks for the info. We'll apply the patch for WSS4J.
> > >
> > > Venkat, I put you on CC because the same problem exists
> > > on the new WSS4JHandler, even worse because WSS4JHandler
> > > uses even more Class variables, thus it is not thread safe in
> > > the sens Erik describes. Do you see any chance to refactor
> > > to code to get rid of the class vaiables?
> > >
> > > Regards,
> > > Werner
> > >
> > >
> > >
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Erik_Vanherck@inventivedesigners.com
> > > [mailto:Erik_Vanherck@inventivedesigners.com]
> > > Gesendet: Dienstag, 19. Oktober 2004 12:11
> > > An: fx-dev@ws.apache.org
> > > Betreff: Bug : Threading issue in wss4j subproject (patch included)
> > >
> > >
> > > Hi there,
> > >
> > > Since I could not yet find an entry in the apache bug
> > database for the wss4j
> > > project (probably since you guys haven't formally released
> > yet), I'll use
> > > the mailinglist. Please forgive me if it's inapropriate.
> > >
> > > We've been using the wss4j project in combination with axis
> > to enable web
> > > service security. We hit a multithreading issue which only
> > manifests itself
> > > on systems with at least 2 physical cpu's and only when the
> > webservice is
> > > hit with a lot of requests at the same time. The problem
> > was located in
> > > org.apache.ws.axis.security.WSDoAllReceiver.
> > >
> > > We extended our own handler from the WSDoAllReceiver and
> > registered that in
> > > Axis. Our invoke method, called the super.invoke method of
> > WSDoAllReceiver
> > > and after that retrieved some security information from the
> > messagecontext
> > > (for instance the Nonce and the createdTime). The
> > WSDoAllReceiver.invoke
> > > method saved the MessageContext in a class variable. There
> > is however only a
> > > single instance of the authenticationhandler present in the
> > webapp and it is
> > > shared by all the webservice calls in Axis. This causes
> > several webservice
> > > request chains to flow through the same instance of
> > WSDoAllReceiver and as a
> > > consequence during the executing of the invoke the
> > messagecontext may be
> > > changed by another thread.
> > >
> > > I've attached the patch below
> > >
> > >
> > >
> > > ---------
> > >
> > > Erik Vanherck  -  System Programmer & Designer
> > > Inventive Designers
> > > Visit http://www.inventivedesigners.com
> > > Visit http://www.inventivedesigners.com/scriptura for
> > Scriptura information
> > > !
> > >
> > > Phone: +32 - 3 - 8210170
> > > Fax: +32 - 3 - 8210171
> > > Email: Erik_Vanherck@inventivedesigners.com
> > >
> > > "Computers in the future may weigh no more than 1.5 tons." - Popular
> > > Mechanics, forecasting the relentless march of science, 1949
> > >  ________________________________
> > >
> > >
> > > Inventive Designers' Email Disclaimer:
> > > http://www.inventivedesigners.com/email-disclaimer
> > >
> >
> >
> > --
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> >
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/