You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bronagh McElduff <Br...@mobilecohesion.com> on 2005/07/27 14:51:25 UTC

JMeter WS testcase (mimetypes) fails to execute

Hi,

I am trying to submit a web service request with attached mimetypes 
uploaded as a XML Data file (using the component provided in the 
Webservice SOAP Request sampler.  On submitting this request, the 
attached JMeter log is generated.

However, if I remove the mime content from the above file, the request 
is injected sucessfully.

I would like to be able to make WS requests with attached mimetypes, do 
you know of a workaround for this?

Thanks in advance,
Bronagh

Re: JMeter WS testcase (mimetypes) fails to execute

Posted by Peter Lin <wo...@gmail.com>.
can you try it with the 2.1RC1 that I posted last night and see if it
is fixed or broken.

the link to it is here

http://www.apache.org/dist/jakarta/jmeter/binaries/


peter

On 7/27/05, Bronagh McElduff <Br...@mobilecohesion.com> wrote:
> Hi Peter,
> 
> Unfortunately that was the first method I tried.  I guess it is the
> attachment support that is the problem.  I found this bug report:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=33964
> This may resolve my issue, do you have any idea when it might be fixed?
> 
> Thanks in advance,
> Bronagh
> 
> Peter Lin wrote:
> 
> >unfortunately, the current soap webservice sampler does not explicitly
> >support attachments.
> >
> >have you tried putting the entire contents in the message, instead of
> >using attachments?  I took a quick look at how apache  soap handles
> >attachments and here is what it says
> >
> >http://ws.apache.org/soap/docs/guide/attachments.html
> >
> >
> >peter
> >
> >
> >On 7/27/05, Bronagh McElduff <Br...@mobilecohesion.com> wrote:
> >
> >
> >>Hi,
> >>
> >>I am trying to submit a web service request with attached mimetypes
> >>uploaded as a XML Data file (using the component provided in the
> >>Webservice SOAP Request sampler.  On submitting this request, the
> >>attached JMeter log is generated.
> >>
> >>However, if I remove the mime content from the above file, the request
> >>is injected sucessfully.
> >>
> >>I would like to be able to make WS requests with attached mimetypes, do
> >>you know of a workaround for this?
> >>
> >>Thanks in advance,
> >>Bronagh
> >>
> >>
> >>2005/07/27 13:44:41 INFO  - jmeter.JMeter: Version 2.1.20050531
> >>2005/07/27 13:44:42 INFO  - jmeter.JMeter: java.version=1.4.2_07
> >>2005/07/27 13:44:42 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The Apache Software Foundation
> >>2005/07/27 13:44:44 ERROR - jmeter.gui.action.Help: Couldn't load help file java.io.FileNotFoundException: C:\Program Files\jakarta-jmeter-nightly\printable_docs\usermanual\component_reference.html (The system cannot find the path specified)
> >>2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log sampler bean info
> >>2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers: [org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
> >>2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of access log samper bean info init
> >>2005/07/27 13:44:46 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are END times
> >>2005/07/27 13:44:46 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
> >>2005/07/27 13:44:48 INFO  - jmeter.services.FileServer: Setting basedir to: null
> >>2005/07/27 13:44:59 INFO  - jmeter.gui.action.Load: Loading file: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
> >>2005/07/27 13:44:59 INFO  - jmeter.services.FileServer: Setting basedir to: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
> >>2005/07/27 13:44:59 INFO  - jmeter.save.SaveService: Using SaveService properties file 1.5
> >>2005/07/27 13:44:59 WARN  - jmeter.save.SaveService: Property file - expected 1.6, found 1.5
> >>2005/07/27 13:44:59 INFO  - jmeter.save.SaveService: All converter versions present and correct
> >>2005/07/27 13:45:00 INFO  - jmeter.services.FileServer: Setting basedir to: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
> >>2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Running the test!
> >>2005/07/27 13:45:07 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,local)
> >>2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. Ramp up = 1.
> >>2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Continue on error
> >>2005/07/27 13:45:07 WARN  - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties)
> >>2005/07/27 13:45:07 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
> >>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
> >>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
> >>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
> >>        at java.lang.Thread.run(Thread.java:534)
> >>
> >>2005/07/27 13:45:08 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 is done
> >>2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 0
> >>2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test
> >>2005/07/27 13:45:08 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,local)
> >>2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >>
> >>
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JMeter WS testcase (mimetypes) fails to execute

Posted by Bronagh McElduff <Br...@mobilecohesion.com>.
Hi Peter,

Unfortunately that was the first method I tried.  I guess it is the 
attachment support that is the problem.  I found this bug report:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33964
This may resolve my issue, do you have any idea when it might be fixed?

Thanks in advance,
Bronagh

Peter Lin wrote:

>unfortunately, the current soap webservice sampler does not explicitly
>support attachments.
>
>have you tried putting the entire contents in the message, instead of
>using attachments?  I took a quick look at how apache  soap handles
>attachments and here is what it says
>
>http://ws.apache.org/soap/docs/guide/attachments.html
>
>
>peter
>
>
>On 7/27/05, Bronagh McElduff <Br...@mobilecohesion.com> wrote:
>  
>
>>Hi,
>>
>>I am trying to submit a web service request with attached mimetypes
>>uploaded as a XML Data file (using the component provided in the
>>Webservice SOAP Request sampler.  On submitting this request, the
>>attached JMeter log is generated.
>>
>>However, if I remove the mime content from the above file, the request
>>is injected sucessfully.
>>
>>I would like to be able to make WS requests with attached mimetypes, do
>>you know of a workaround for this?
>>
>>Thanks in advance,
>>Bronagh
>>
>>
>>2005/07/27 13:44:41 INFO  - jmeter.JMeter: Version 2.1.20050531
>>2005/07/27 13:44:42 INFO  - jmeter.JMeter: java.version=1.4.2_07
>>2005/07/27 13:44:42 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The Apache Software Foundation
>>2005/07/27 13:44:44 ERROR - jmeter.gui.action.Help: Couldn't load help file java.io.FileNotFoundException: C:\Program Files\jakarta-jmeter-nightly\printable_docs\usermanual\component_reference.html (The system cannot find the path specified)
>>2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log sampler bean info
>>2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers: [org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
>>2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of access log samper bean info init
>>2005/07/27 13:44:46 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are END times
>>2005/07/27 13:44:46 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
>>2005/07/27 13:44:48 INFO  - jmeter.services.FileServer: Setting basedir to: null
>>2005/07/27 13:44:59 INFO  - jmeter.gui.action.Load: Loading file: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
>>2005/07/27 13:44:59 INFO  - jmeter.services.FileServer: Setting basedir to: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
>>2005/07/27 13:44:59 INFO  - jmeter.save.SaveService: Using SaveService properties file 1.5
>>2005/07/27 13:44:59 WARN  - jmeter.save.SaveService: Property file - expected 1.6, found 1.5
>>2005/07/27 13:44:59 INFO  - jmeter.save.SaveService: All converter versions present and correct
>>2005/07/27 13:45:00 INFO  - jmeter.services.FileServer: Setting basedir to: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
>>2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Running the test!
>>2005/07/27 13:45:07 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,local)
>>2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. Ramp up = 1.
>>2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Continue on error
>>2005/07/27 13:45:07 WARN  - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties)
>>2005/07/27 13:45:07 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>>        at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>>        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>>        at java.lang.Thread.run(Thread.java:534)
>>
>>2005/07/27 13:45:08 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 is done
>>2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 0
>>2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test
>>2005/07/27 13:45:08 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,local)
>>2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JMeter WS testcase (mimetypes) fails to execute

Posted by Peter Lin <wo...@gmail.com>.
unfortunately, the current soap webservice sampler does not explicitly
support attachments.

have you tried putting the entire contents in the message, instead of
using attachments?  I took a quick look at how apache  soap handles
attachments and here is what it says

http://ws.apache.org/soap/docs/guide/attachments.html


peter


On 7/27/05, Bronagh McElduff <Br...@mobilecohesion.com> wrote:
> Hi,
> 
> I am trying to submit a web service request with attached mimetypes
> uploaded as a XML Data file (using the component provided in the
> Webservice SOAP Request sampler.  On submitting this request, the
> attached JMeter log is generated.
> 
> However, if I remove the mime content from the above file, the request
> is injected sucessfully.
> 
> I would like to be able to make WS requests with attached mimetypes, do
> you know of a workaround for this?
> 
> Thanks in advance,
> Bronagh
> 
> 
> 2005/07/27 13:44:41 INFO  - jmeter.JMeter: Version 2.1.20050531
> 2005/07/27 13:44:42 INFO  - jmeter.JMeter: java.version=1.4.2_07
> 2005/07/27 13:44:42 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The Apache Software Foundation
> 2005/07/27 13:44:44 ERROR - jmeter.gui.action.Help: Couldn't load help file java.io.FileNotFoundException: C:\Program Files\jakarta-jmeter-nightly\printable_docs\usermanual\component_reference.html (The system cannot find the path specified)
> 2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log sampler bean info
> 2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers: [org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
> 2005/07/27 13:44:45 INFO  - jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of access log samper bean info init
> 2005/07/27 13:44:46 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are END times
> 2005/07/27 13:44:46 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
> 2005/07/27 13:44:48 INFO  - jmeter.services.FileServer: Setting basedir to: null
> 2005/07/27 13:44:59 INFO  - jmeter.gui.action.Load: Loading file: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
> 2005/07/27 13:44:59 INFO  - jmeter.services.FileServer: Setting basedir to: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
> 2005/07/27 13:44:59 INFO  - jmeter.save.SaveService: Using SaveService properties file 1.5
> 2005/07/27 13:44:59 WARN  - jmeter.save.SaveService: Property file - expected 1.6, found 1.5
> 2005/07/27 13:44:59 INFO  - jmeter.save.SaveService: All converter versions present and correct
> 2005/07/27 13:45:00 INFO  - jmeter.services.FileServer: Setting basedir to: C:\Program Files\jakarta-jmeter-nightly\bin\testfiles\Hydra\webservices\mmsLoopWS\mmsLoopbackHydra.jmx
> 2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Running the test!
> 2005/07/27 13:45:07 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,local)
> 2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. Ramp up = 1.
> 2005/07/27 13:45:07 INFO  - jmeter.engine.StandardJMeterEngine: Continue on error
> 2005/07/27 13:45:07 WARN  - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties)
> 2005/07/27 13:45:07 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:379)
>         at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:457)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:499)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 2005/07/27 13:45:08 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 is done
> 2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 0
> 2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test
> 2005/07/27 13:45:08 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,local)
> 2005/07/27 13:45:08 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org