You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2010/02/03 01:01:02 UTC

Re: Intermittent NullPointerException in WebServiceSampler in jmeter.log

On 02/02/2010, David Levine <en...@gmail.com> wrote:
> I’m getting an intermittent exception in my jmeter.log file, and I can’t
>  tell whether it’s a problem with jmeter or a problem with my web service.
>   My guess is that it’s a problem with my web service, but jmeter isn’t
>  giving me a particularly useful error message I can use to figure that out.
>   Can anyone tell from this stack trace?
>
>
>  This happens when during a web service test that I have in a single thread
>  loop, exercising my soap tests in a serial fashion.  About 2% of the time,
>  I'll see this in the Response Data tab of jmeter:
>
>  ---------------------------------------------------------
>
>  Thread Name: Smoke Test 1-1
>
>  Sample Start: 2010-02-02 15:26:21 PST
>
>  Load time: 98
>
>  Latency: 0
>
>  Size in bytes: 0
>
>  Sample Count: 1
>
>  Error Count: 1
>
>  Response code: 000
>
>  Response message: java.lang.NullPointerException
>
>
>
>  Response headers:
>
>
>
>
>
>  SampleResult fields:
>
>  ContentType: text/xml
>
>  DataEncoding: UTF-8
>
>  ---------------------------------------------------------
>
>  And I see this in the jmeter log at the same time:
>
>  ---------------------------------------------------------
>
>  2010/02/02 15:27:10 ERROR - jmeter.protocol.http.sampler.WebServiceSampler:
>  Problem processing the SOAP request java.lang.NullPointerException
>
>   at
>  org.apache.soap.transport.TransportMessage.read(TransportMessage.java:206)

Bug in the code - it fails to check if contentType has been set up.

>   at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:382)
>
>   at
>  org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:309)
>
>   at org.apache.soap.messaging.Message.send(Message.java:123)
>
>   at
>  org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:506)
>
>   at
>  org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
>
>   at
>  org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
>
>   at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>
>   at java.lang.Thread.run(Thread.java:619)
>
>  ---------------------------------------------------------
>
>  Does anyone know what this could mean?
>

See above - the primary cause of the error is a bug in the SOAP
library code, however presumably the content-type should have been set
elsewhere in the SOAP library.

Unfortunately the library is old and not maintained; the newer Apache
SOAP libraries are not a drop-in replacement.

I suggest you use the XML-RPC/SOAP sampler or an HTTP Sampler instead.

>  David
>

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


Re: Intermittent NullPointerException in WebServiceSampler in jmeter.log

Posted by sebb <se...@gmail.com>.
On 03/02/2010, David Levine <en...@gmail.com> wrote:
> Thanks for the info.  Are you suggesting that the WebServiceSampler may not
>  be reliable?
>

The JMeter WebServiceSampler code does not do very much; most of the
work is done in the library.

>  After reading your reply, I'm still having trouble deducing whether this is
>  a bug in my system under test or in jmeter (and its libraries).  Can I
>  conclude that my web service is intermittently not setting the content-type?

No, it looks like the problem is in the library.

>   Or is the library that jmeter is using at fault, and maybe my web service
>  is fine and jmeter is failing to see valid sample?
>

As far as I can tell from a quick scan of the library code, the
problem is somewhere in the library, and does not rely on the
content-type being returned by the server, but I could be wrong.

If you can use a different sampler that should eliminate the problem.
If not, it should help narrow down the cause.

>
>  David
>
>
>  On Tue, Feb 2, 2010 at 4:01 PM, sebb <se...@gmail.com> wrote:
>
>  > On 02/02/2010, David Levine <en...@gmail.com> wrote:
>  > > I’m getting an intermittent exception in my jmeter.log file, and I can’t
>  > >  tell whether it’s a problem with jmeter or a problem with my web
>  > service.
>  > >   My guess is that it’s a problem with my web service, but jmeter isn’t
>  > >  giving me a particularly useful error message I can use to figure that
>  > out.
>  > >   Can anyone tell from this stack trace?
>  > >
>  > >
>  > >  This happens when during a web service test that I have in a single
>  > thread
>  > >  loop, exercising my soap tests in a serial fashion.  About 2% of the
>  > time,
>  > >  I'll see this in the Response Data tab of jmeter:
>  > >
>  > >  ---------------------------------------------------------
>  > >
>  > >  Thread Name: Smoke Test 1-1
>  > >
>  > >  Sample Start: 2010-02-02 15:26:21 PST
>  > >
>  > >  Load time: 98
>  > >
>  > >  Latency: 0
>  > >
>  > >  Size in bytes: 0
>  > >
>  > >  Sample Count: 1
>  > >
>  > >  Error Count: 1
>  > >
>  > >  Response code: 000
>  > >
>  > >  Response message: java.lang.NullPointerException
>  > >
>  > >
>  > >
>  > >  Response headers:
>  > >
>  > >
>  > >
>  > >
>  > >
>  > >  SampleResult fields:
>  > >
>  > >  ContentType: text/xml
>  > >
>  > >  DataEncoding: UTF-8
>  > >
>  > >  ---------------------------------------------------------
>  > >
>  > >  And I see this in the jmeter log at the same time:
>  > >
>  > >  ---------------------------------------------------------
>  > >
>  > >  2010/02/02 15:27:10 ERROR -
>  > jmeter.protocol.http.sampler.WebServiceSampler:
>  > >  Problem processing the SOAP request java.lang.NullPointerException
>  > >
>  > >   at
>  > >
>  >  org.apache.soap.transport.TransportMessage.read(TransportMessage.java:206)
>  >
>  > Bug in the code - it fails to check if contentType has been set up.
>  >
>  > >   at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:382)
>  > >
>  > >   at
>  > >
>  >  org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:309)
>  > >
>  > >   at org.apache.soap.messaging.Message.send(Message.java:123)
>  > >
>  > >   at
>  > >
>  >  org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:506)
>  > >
>  > >   at
>  > >
>  >  org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
>  > >
>  > >   at
>  > >
>  >  org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
>  > >
>  > >   at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>  > >
>  > >   at java.lang.Thread.run(Thread.java:619)
>  > >
>  > >  ---------------------------------------------------------
>  > >
>  > >  Does anyone know what this could mean?
>  > >
>  >
>  > See above - the primary cause of the error is a bug in the SOAP
>  > library code, however presumably the content-type should have been set
>  > elsewhere in the SOAP library.
>  >
>  > Unfortunately the library is old and not maintained; the newer Apache
>  > SOAP libraries are not a drop-in replacement.
>  >
>  > I suggest you use the XML-RPC/SOAP sampler or an HTTP Sampler instead.
>  >
>  > >  David
>  > >
>  >
>
> > ---------------------------------------------------------------------
>  > 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: Intermittent NullPointerException in WebServiceSampler in jmeter.log

Posted by David Levine <en...@gmail.com>.
Thanks for the info.  Are you suggesting that the WebServiceSampler may not
be reliable?


After reading your reply, I'm still having trouble deducing whether this is
a bug in my system under test or in jmeter (and its libraries).  Can I
conclude that my web service is intermittently not setting the content-type?
 Or is the library that jmeter is using at fault, and maybe my web service
is fine and jmeter is failing to see valid sample?



David

On Tue, Feb 2, 2010 at 4:01 PM, sebb <se...@gmail.com> wrote:

> On 02/02/2010, David Levine <en...@gmail.com> wrote:
> > I’m getting an intermittent exception in my jmeter.log file, and I can’t
> >  tell whether it’s a problem with jmeter or a problem with my web
> service.
> >   My guess is that it’s a problem with my web service, but jmeter isn’t
> >  giving me a particularly useful error message I can use to figure that
> out.
> >   Can anyone tell from this stack trace?
> >
> >
> >  This happens when during a web service test that I have in a single
> thread
> >  loop, exercising my soap tests in a serial fashion.  About 2% of the
> time,
> >  I'll see this in the Response Data tab of jmeter:
> >
> >  ---------------------------------------------------------
> >
> >  Thread Name: Smoke Test 1-1
> >
> >  Sample Start: 2010-02-02 15:26:21 PST
> >
> >  Load time: 98
> >
> >  Latency: 0
> >
> >  Size in bytes: 0
> >
> >  Sample Count: 1
> >
> >  Error Count: 1
> >
> >  Response code: 000
> >
> >  Response message: java.lang.NullPointerException
> >
> >
> >
> >  Response headers:
> >
> >
> >
> >
> >
> >  SampleResult fields:
> >
> >  ContentType: text/xml
> >
> >  DataEncoding: UTF-8
> >
> >  ---------------------------------------------------------
> >
> >  And I see this in the jmeter log at the same time:
> >
> >  ---------------------------------------------------------
> >
> >  2010/02/02 15:27:10 ERROR -
> jmeter.protocol.http.sampler.WebServiceSampler:
> >  Problem processing the SOAP request java.lang.NullPointerException
> >
> >   at
> >
>  org.apache.soap.transport.TransportMessage.read(TransportMessage.java:206)
>
> Bug in the code - it fails to check if contentType has been set up.
>
> >   at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:382)
> >
> >   at
> >
>  org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:309)
> >
> >   at org.apache.soap.messaging.Message.send(Message.java:123)
> >
> >   at
> >
>  org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:506)
> >
> >   at
> >
>  org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
> >
> >   at
> >
>  org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
> >
> >   at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
> >
> >   at java.lang.Thread.run(Thread.java:619)
> >
> >  ---------------------------------------------------------
> >
> >  Does anyone know what this could mean?
> >
>
> See above - the primary cause of the error is a bug in the SOAP
> library code, however presumably the content-type should have been set
> elsewhere in the SOAP library.
>
> Unfortunately the library is old and not maintained; the newer Apache
> SOAP libraries are not a drop-in replacement.
>
> I suggest you use the XML-RPC/SOAP sampler or an HTTP Sampler instead.
>
> >  David
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>