struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nikunj" <nmul...@appliedcommerce.com>
Subject RE: ExecuteAndWaitInterceptor Issue - Not getting request object at some where
Date Thu, 27 Nov 2008 10:35:07 GMT
Thanks Ravindra,

But,
I am getting error at line no 6 not at line no 3.

Regards,
Nikunj



-----Original Message-----
From: ravindra [mailto:ravindra@btpsoft.com] 
Sent: Thursday, November 27, 2008 4:01 PM
To: 'Struts Users Mailing List'
Subject: RE: ExecuteAndWaitInterceptor Issue - Not getting request object at
some where

Try using this,

Thread.currentThread().sleep(10); instead of Thread.sleep(10);

 

 

  _____  

From: nikunj [mailto:nmulani@appliedcommerce.com] 
Sent: Thursday, November 27, 2008 3:54 PM
To: 'Struts Users Mailing List'
Subject: ExecuteAndWaitInterceptor Issue - Not getting request object at
some where

 

Dear All,

 

I am using ExecuteAndWaitInterceptor.

Action contain following code in execute method.

 

1. for(int i=0; i<100000; i++)

      2. {

      3.    Thread.sleep(10);

      4.    logger.debug(i+ ") Name : "+Thread.currentThread().getName());

      5.    logger.debug("request : " + request);

      6.    logger.debug("Session : " + request.getSession().getId());

      7.}

                         

            O/p

0) Name : testActionBackgroundThread

request :
<mailto:org.apache.struts2.dispatcher.StrutsRequestWrapper@5866c1>
org.apache.struts2.dispatcher.StrutsRequestWrapper@5866c1

Session : 00256AA99A97C3BFD7750ECE402DE543

1) Name : testActionBackgroundThread

request : org.apache.struts2.dispatcher.StrutsRequestWrapper@5866c1

Session : 00256AA99A97C3BFD7750ECE402DE543

2) Name : testActionBackgroundThread

request : org.apache.struts2.dispatcher.StrutsRequestWrapper@5866c1

Session : 00256AA99A97C3BFD7750ECE402DE543

3) Name : testActionBackgroundThread

request : org.apache.struts2.dispatcher.StrutsRequestWrapper@5866c1

Session : 00256AA99A97C3BFD7750ECE402DE543

4) Name : testActionBackgroundThread

request : org.apache.struts2.dispatcher.StrutsRequestWrapper@5866c1

Session : 00256AA99A97C3BFD7750ECE402DE543

5) Name : testActionBackgroundThread

request : org.apache.struts2.dispatcher.StrutsRequestWrapper@5866c1

java.lang.NullPointerException at line no 6

             

What is the magic with line no 6 so that for some value of "I" it is given
output successfully and after it given NullPointerException?

How can I fix this issue?

Can any body help me?

Thanks in Advance.

 

Regards,

 

Nikunj Mulani

Applied Software Pvt. Ltd.

Ahmedabad

91-98249 88262 

 




__________ NOD32 3644 (20081126) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


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


Mime
View raw message