woolfel     2005/04/02 12:12:20

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/sampler
                        WebServiceSampler.java
  Log:
  This fixes a bug with thread synchronization reported by KiYun Roe.
  thanks to kiyun for reporting the bug.
  peter
  
  Revision  Changes    Path
  1.18      +4 -7      
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java
  
  Index: WebServiceSampler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- WebServiceSampler.java    6 Jan 2005 01:11:43 -0000       1.17
  +++ WebServiceSampler.java    2 Apr 2005 20:12:20 -0000       1.18
  @@ -112,7 +112,7 @@
        * consider using Apache commons pool to create a pool of document 
builders
        * or make sure XMLParserUtils creates builders efficiently.
        */
  -    private static DocumentBuilder XDB = null;
  +    private DocumentBuilder XDB = null;
   
        private String FILE_CONTENTS = null;
        
  @@ -413,10 +413,7 @@
        */
       protected Document openDocument(String key)
       {
  -             if (XDB == null)
  -             {
  -                     XDB = XMLParserUtils.getXMLDocBuilder();
  -             }
  +             XDB = XMLParserUtils.getXMLDocBuilder();
                Document doc = null;
        // if either a file or path location is given,
        // get the file object.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to