You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by m mat <pe...@yahoo.com> on 2005/10/13 22:46:35 UTC
Any issues with Webservice(soap) request sampler and Cookie Manager?
I am doing something very trivial, I have
Thread group
-cookie manager
-some user defined vars(in user defined variable element)
-HTTP Autorization manager
-Simple Controller
--------- A Webservice call
I run one thread that does two iterations. What I am expecting is that my second call (in iteration 2) should get a cookie set as the first one returns JSessionID=<a session value> in a cookie. But it does not, and hence I get yet another session on second iteration from the server. I have tried moving cookie manager around to eliminate scoping issues.
Can some body help???
Matt
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: Null pointer Exception in
Posted by Manish Mathuria <mm...@yahoo.com>.
Hi Sebb
This thing happens intermittently under no load conditions.
Not sure if there is some resource shortage going on. No other messages in log either. Please let me know if you can sense anything I could do here
Matt
sebb <se...@gmail.com> wrote:
The relevant code appears to be:
SOAPContext ctx;
TransportMessage response;
try {
// Create response SOAPContext.
ctx = new SOAPContext();
// Read content.
response = new TransportMessage(is, respContentLength,
respContentType, ctx, respHeaders);
// Extract envelope and SOAPContext
response.read(); // ****** HTTPUtils.java:382
So it looks like the response Object was not created.
Perhaps some kind of resource shortage?
Any other messages in jmeter.log?
S.
On 18/10/05, m mat
wrote:
> Any body knows the possible causes for getting this error?
>
> Matt
>
> m mat
wrote:
> Hi
>
> I am not sure how to explain it, but all my scripts suddenly strted giving me this error in log file:
> 2005/10/18 04:08:30 ERROR - jmeter.threads.JMeterThread: java.lang.NullPointerException
>
> at org.apache.soap.transport.TransportMessage.read(TransportMessage.java:206)
>
> 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:511)
>
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:503)
>
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
>
> at java.lang.Thread.run(Unknown Source)
>
> On the view results tree listener I get the call failed with following message
> Load time: 0
> HTTP response code: null
> HTTP response message:
> HTTP response headers
>
> Please help if you have seen this before.
> Matt
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: Null pointer Exception in
Posted by sebb <se...@gmail.com>.
The relevant code appears to be:
SOAPContext ctx;
TransportMessage response;
try {
// Create response SOAPContext.
ctx = new SOAPContext();
// Read content.
response = new TransportMessage(is, respContentLength,
respContentType, ctx, respHeaders);
// Extract envelope and SOAPContext
response.read(); // ****** HTTPUtils.java:382
So it looks like the response Object was not created.
Perhaps some kind of resource shortage?
Any other messages in jmeter.log?
S.
On 18/10/05, m mat <pe...@yahoo.com> wrote:
> Any body knows the possible causes for getting this error?
>
> Matt
>
> m mat <pe...@yahoo.com> wrote:
> Hi
>
> I am not sure how to explain it, but all my scripts suddenly strted giving me this error in log file:
> 2005/10/18 04:08:30 ERROR - jmeter.threads.JMeterThread: java.lang.NullPointerException
>
> at org.apache.soap.transport.TransportMessage.read(TransportMessage.java:206)
>
> 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:511)
>
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:503)
>
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
>
> at java.lang.Thread.run(Unknown Source)
>
> On the view results tree listener I get the call failed with following message
> Load time: 0
> HTTP response code: null
> HTTP response message:
> HTTP response headers
>
> Please help if you have seen this before.
> Matt
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Null pointer Exception in
Posted by m mat <pe...@yahoo.com>.
Any body knows the possible causes for getting this error?
Matt
m mat <pe...@yahoo.com> wrote:
Hi
I am not sure how to explain it, but all my scripts suddenly strted giving me this error in log file:
2005/10/18 04:08:30 ERROR - jmeter.threads.JMeterThread: java.lang.NullPointerException
at org.apache.soap.transport.TransportMessage.read(TransportMessage.java:206)
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:511)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:503)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
at java.lang.Thread.run(Unknown Source)
On the view results tree listener I get the call failed with following message
Load time: 0
HTTP response code: null
HTTP response message:
HTTP response headers
Please help if you have seen this before.
Matt
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Null pointer Exception in
Posted by m mat <pe...@yahoo.com>.
Hi
I am not sure how to explain it, but all my scripts suddenly strted giving me this error in log file:
2005/10/18 04:08:30 ERROR - jmeter.threads.JMeterThread: java.lang.NullPointerException
at org.apache.soap.transport.TransportMessage.read(TransportMessage.java:206)
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:511)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:503)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
at java.lang.Thread.run(Unknown Source)
On the view results tree listener I get the call failed with following message
Load time: 0
HTTP response code: null
HTTP response message:
HTTP response headers
Please help if you have seen this before.
Matt
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: Any issues with Webservice(soap) request sampler and Cookie Manager?
Posted by m mat <pe...@yahoo.com>.
Sorry I was off line for some time, just saw this.
My problem was that cookie manager apparently does not work with SOAP calls using the webservices sampler. So I had to work around to create my own "cookie manager". Using a post processor regular expression, I extracted session value from the HTTP header (i.e of the cookie) and saved it in a var called my_cookie. I then used a header manager and put a variable called cookie in it and set it to ${my_cookie}. So in essence I had the combination of post processor and the header manager do the work of cookie manager
Hope this helps.
Matt
DharaniLakshmi Govindan <ha...@yahoo.com> wrote:
Peter/Matt,
How exactly did you solve the problem? I have similar
issue and I couldn't figure out to pass my security id
along with the cookies for every other transaction.
can someone give me the solution. It would be a great
help.
Thanks
Dharani
--- Peter Lin wrote:
> glad you figured it out
>
> peter
>
>
> On 10/13/05, m mat
wrote:
> >
> > Hi Peter,
> >
> > Spoke too soon.
> >
> > My workaround actually works. So if I get the
> cookie from the headers
> > manually (using a post proc regex ) and shove it
> into a header manager, I
> > can get JMETer to send back the cookie
> >
> > I am a happy camper...
> >
> > Matt
> >
> > m mat
wrote:
> > Hi Peter
> >
> > That would certainly help. I even tried to extract
> the cookie from the
> > http headers using a post processor regex, but can
> not extract it. I am not
> > sure if apache soap even lets JMETER see the
> header
> >
> > I am kind of dead in water here, as until I get
> JMeter to send the cookie
> > back I can not make progress...
> >
> > Thanks a lot for help.
> >
> > Matt
> >
> > Peter Lin wrote:
> > the current implementation of the webservice soap
> sampler uses the auth
> > manager. I'm not clear on how apache soap handles
> cookies. I'll take a
> > look
> > tonight and let you know.
> >
> > peter
> >
> >
> > On 10/13/05, m mat
> > wrote:
> > >
> > > I am doing something very trivial, I have
> > >
> > > Thread group
> > > -cookie manager
> > > -some user defined vars(in user defined variable
> element)
> > > -HTTP Autorization manager
> > > -Simple Controller
> > > --------- A Webservice call
> > >
> > > I run one thread that does two iterations. What
> I am expecting is that
> > my
> > > second call (in iteration 2) should get a cookie
> set as the first one
> > > returns JSessionID= in a cookie. But it does
> not, and hence
> > > I get yet another session on second iteration
> from the server. I have
> > tried
> > > moving cookie manager around to eliminate
> scoping issues.
> > >
> > > Can some body help???
> > >
> > > Matt
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> > >
> >
> >
> > ---------------------------------
> > Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> >
> > ---------------------------------
> > Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> >
>
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: Any issues with Webservice(soap) request sampler and Cookie Manager?
Posted by DharaniLakshmi Govindan <ha...@yahoo.com>.
Peter/Matt,
How exactly did you solve the problem? I have similar
issue and I couldn't figure out to pass my security id
along with the cookies for every other transaction.
can someone give me the solution. It would be a great
help.
Thanks
Dharani
--- Peter Lin <wo...@gmail.com> wrote:
> glad you figured it out
>
> peter
>
>
> On 10/13/05, m mat <pe...@yahoo.com> wrote:
> >
> > Hi Peter,
> >
> > Spoke too soon.
> >
> > My workaround actually works. So if I get the
> cookie from the headers
> > manually (using a post proc regex ) and shove it
> into a header manager, I
> > can get JMETer to send back the cookie
> >
> > I am a happy camper...
> >
> > Matt
> >
> > m mat <pe...@yahoo.com> wrote:
> > Hi Peter
> >
> > That would certainly help. I even tried to extract
> the cookie from the
> > http headers using a post processor regex, but can
> not extract it. I am not
> > sure if apache soap even lets JMETER see the
> header
> >
> > I am kind of dead in water here, as until I get
> JMeter to send the cookie
> > back I can not make progress...
> >
> > Thanks a lot for help.
> >
> > Matt
> >
> > Peter Lin wrote:
> > the current implementation of the webservice soap
> sampler uses the auth
> > manager. I'm not clear on how apache soap handles
> cookies. I'll take a
> > look
> > tonight and let you know.
> >
> > peter
> >
> >
> > On 10/13/05, m mat
> > wrote:
> > >
> > > I am doing something very trivial, I have
> > >
> > > Thread group
> > > -cookie manager
> > > -some user defined vars(in user defined variable
> element)
> > > -HTTP Autorization manager
> > > -Simple Controller
> > > --------- A Webservice call
> > >
> > > I run one thread that does two iterations. What
> I am expecting is that
> > my
> > > second call (in iteration 2) should get a cookie
> set as the first one
> > > returns JSessionID= in a cookie. But it does
> not, and hence
> > > I get yet another session on second iteration
> from the server. I have
> > tried
> > > moving cookie manager around to eliminate
> scoping issues.
> > >
> > > Can some body help???
> > >
> > > Matt
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> > >
> >
> >
> > ---------------------------------
> > Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> >
> > ---------------------------------
> > Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> >
>
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Any issues with Webservice(soap) request sampler and Cookie Manager?
Posted by Peter Lin <wo...@gmail.com>.
glad you figured it out
peter
On 10/13/05, m mat <pe...@yahoo.com> wrote:
>
> Hi Peter,
>
> Spoke too soon.
>
> My workaround actually works. So if I get the cookie from the headers
> manually (using a post proc regex ) and shove it into a header manager, I
> can get JMETer to send back the cookie
>
> I am a happy camper...
>
> Matt
>
> m mat <pe...@yahoo.com> wrote:
> Hi Peter
>
> That would certainly help. I even tried to extract the cookie from the
> http headers using a post processor regex, but can not extract it. I am not
> sure if apache soap even lets JMETER see the header
>
> I am kind of dead in water here, as until I get JMeter to send the cookie
> back I can not make progress...
>
> Thanks a lot for help.
>
> Matt
>
> Peter Lin wrote:
> the current implementation of the webservice soap sampler uses the auth
> manager. I'm not clear on how apache soap handles cookies. I'll take a
> look
> tonight and let you know.
>
> peter
>
>
> On 10/13/05, m mat
> wrote:
> >
> > I am doing something very trivial, I have
> >
> > Thread group
> > -cookie manager
> > -some user defined vars(in user defined variable element)
> > -HTTP Autorization manager
> > -Simple Controller
> > --------- A Webservice call
> >
> > I run one thread that does two iterations. What I am expecting is that
> my
> > second call (in iteration 2) should get a cookie set as the first one
> > returns JSessionID= in a cookie. But it does not, and hence
> > I get yet another session on second iteration from the server. I have
> tried
> > moving cookie manager around to eliminate scoping issues.
> >
> > Can some body help???
> >
> > Matt
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> >
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
Re: Any issues with Webservice(soap) request sampler and Cookie Manager?
Posted by m mat <pe...@yahoo.com>.
Hi Peter,
Spoke too soon.
My workaround actually works. So if I get the cookie from the headers manually (using a post proc regex ) and shove it into a header manager, I can get JMETer to send back the cookie
I am a happy camper...
Matt
m mat <pe...@yahoo.com> wrote:
Hi Peter
That would certainly help. I even tried to extract the cookie from the http headers using a post processor regex, but can not extract it. I am not sure if apache soap even lets JMETER see the header
I am kind of dead in water here, as until I get JMeter to send the cookie back I can not make progress...
Thanks a lot for help.
Matt
Peter Lin wrote:
the current implementation of the webservice soap sampler uses the auth
manager. I'm not clear on how apache soap handles cookies. I'll take a look
tonight and let you know.
peter
On 10/13/05, m mat
wrote:
>
> I am doing something very trivial, I have
>
> Thread group
> -cookie manager
> -some user defined vars(in user defined variable element)
> -HTTP Autorization manager
> -Simple Controller
> --------- A Webservice call
>
> I run one thread that does two iterations. What I am expecting is that my
> second call (in iteration 2) should get a cookie set as the first one
> returns JSessionID= in a cookie. But it does not, and hence
> I get yet another session on second iteration from the server. I have tried
> moving cookie manager around to eliminate scoping issues.
>
> Can some body help???
>
> Matt
>
>
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: Any issues with Webservice(soap) request sampler and Cookie Manager?
Posted by m mat <pe...@yahoo.com>.
Hi Peter
That would certainly help. I even tried to extract the cookie from the http headers using a post processor regex, but can not extract it. I am not sure if apache soap even lets JMETER see the header
I am kind of dead in water here, as until I get JMeter to send the cookie back I can not make progress...
Thanks a lot for help.
Matt
Peter Lin <wo...@gmail.com> wrote:
the current implementation of the webservice soap sampler uses the auth
manager. I'm not clear on how apache soap handles cookies. I'll take a look
tonight and let you know.
peter
On 10/13/05, m mat
wrote:
>
> I am doing something very trivial, I have
>
> Thread group
> -cookie manager
> -some user defined vars(in user defined variable element)
> -HTTP Autorization manager
> -Simple Controller
> --------- A Webservice call
>
> I run one thread that does two iterations. What I am expecting is that my
> second call (in iteration 2) should get a cookie set as the first one
> returns JSessionID= in a cookie. But it does not, and hence
> I get yet another session on second iteration from the server. I have tried
> moving cookie manager around to eliminate scoping issues.
>
> Can some body help???
>
> Matt
>
>
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: Any issues with Webservice(soap) request sampler and Cookie Manager?
Posted by Peter Lin <wo...@gmail.com>.
the current implementation of the webservice soap sampler uses the auth
manager. I'm not clear on how apache soap handles cookies. I'll take a look
tonight and let you know.
peter
On 10/13/05, m mat <pe...@yahoo.com> wrote:
>
> I am doing something very trivial, I have
>
> Thread group
> -cookie manager
> -some user defined vars(in user defined variable element)
> -HTTP Autorization manager
> -Simple Controller
> --------- A Webservice call
>
> I run one thread that does two iterations. What I am expecting is that my
> second call (in iteration 2) should get a cookie set as the first one
> returns JSessionID=<a session value> in a cookie. But it does not, and hence
> I get yet another session on second iteration from the server. I have tried
> moving cookie manager around to eliminate scoping issues.
>
> Can some body help???
>
> Matt
>
>
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>