Getting "dwr.engine._remoteHanleBatchException" when re-running the LR Script.

134 views
Skip to first unread message

Nishu BG

unread,
Apr 19, 2010, 1:46:34 AM4/19/10
to LoadR...@yahoogroups.com, lr-loa...@googlegroups.com
Hello,
 
I am geeting the below exception in the Run-Time viewer while re-running my Load Runner Script.
 
throw 'allowScriptTagRemotingis false.';
//#DWR-REPLY
if (window.dwr) dwr.engine._remoteHanleBatchException({ name:'java.lang.SecurityException',message:'Session Error' });
else if (window,.parent.dwr) window,.parent.dwr._remoteHanleBatchException ({ name:'java.lang.SecurityException',message:'Session Error' });
 
Per my understading i feel i am facing this due to the web_custom_request - .dwr calls. But i am not very sure of debugging this.
Can any one please guide me on how can i debug this.
 
 
Best Regards,
Nishu BG.

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

chaitanya bhatt

unread,
Apr 19, 2010, 2:40:58 AM4/19/10
to lr-loa...@googlegroups.com, LoadR...@yahoogroups.com
Looks to me like it's a typical correlation issue.

Chaitanya M Bhatt

utkarsh sinha

unread,
Apr 19, 2010, 3:19:18 AM4/19/10
to lr-loa...@googlegroups.com
dwr calls are made for an ajax application.Make sure u use Ajaz click and script protocol .If u use normal html mode ,the correlation is very complex

Nishu BG

unread,
Apr 19, 2010, 5:13:20 AM4/19/10
to lr-loa...@googlegroups.com
Hello,
 
Thanks a lot for the response.
Below are the observations:
 
1. I recorded the same flow using AJAX (Click and Scipt) for which i getting ONLY this :
 
Action()
{
lr_start_transaction("MoneyCenter_DashBoard_01");
 
 web_text_link("Dashboard",
  "Snapshot=t5.inf",
   DESCRIPTION,
   "Text=Dashboard",
   "Ordinal=1",
   ACTION,
   "UserAction=Click",
  LAST);
 
 lr_end_transaction("MoneyCenter_DashBoard_01",LR_AUTO);
 
 return 0;
}
 
2. But for the same flow if I use WEB (http/html) i get a very huge code recorded which consists of web_url() and web_custom_request() functions.
 
Will the small code which was generated using AJAX (Click and Script) be sufficient. If so how can i verify or confim the same.
 
Please advice.
 
Best Regards,
Nishu BG.

utkarsh sinha

unread,
Apr 19, 2010, 5:28:46 AM4/19/10
to lr-loa...@googlegroups.com
Yes you are right ,the code generated with AJAX click and script will be less complex.You verify in the run time viewer whether the script run fine or not.

Another word of caution while you aquire LR licenece---AJAX click and script requires RIA Licence bundle,and does not come with the web bundle.

Nishu BG

unread,
Apr 19, 2010, 5:35:36 AM4/19/10
to lr-loa...@googlegroups.com
Hello Utkarsh,
 
Thanks a lot for the valuable sugeestion. Really glad.
 
One small doubt - presently we are using LR_9.52 . Can we combine two protocols ie., (WEB + AJAX) or (WEB + FLEX) and use them for recording.
Which do you suggest the best way to script - Combining them or using individual protocols for scripting.
 
 
Best Regards,
Nishu BG.

Floris Kraak

unread,
Apr 19, 2010, 5:36:36 AM4/19/10
to lr-loa...@googlegroups.com
On Mon, Apr 19, 2010 at 11:28 AM, utkarsh sinha
<utkarsh...@gmail.com> wrote:
> Yes you are right ,the code generated with AJAX click and script will be
> less complex.You verify in the run time viewer whether the script run fine
> or not.

When it breaks you get to keep both pieces.

If there is a problem you will have no idea what is wrong if you don't
understand what is going on under the hood.
Don't take this the wrong way, I believe C&S does have it's place in
the world, but do realize this is a tradeoff: Faster scripts now, or
better analysis later?


Regards,
Floris
---
'What does it mean to say that one is 48% slower? That's like saying
that a squirrel is 48% juicier than an orange - maybe it's true, but
anybody who puts the two in a blender to compare them is kind of
sick.'
--- Linus Torvalds

Nishu BG

unread,
Apr 19, 2010, 5:45:18 AM4/19/10
to lr-loa...@googlegroups.com
Hello Floris,
 
>When it breaks you get to keep both pieces.
 
Was a bit confused by your above statement. Keep both in the sense?
 
Can you kindly elaborate.
 
And one more thing- I am actually in a fix. I dont know if its the right way to Combine 2 protocols while recording. When will i have to combine and record. Will it really make any difference.
 
For example: WEB+AJAX   or   WEB + FLEX
 
Thanks,
Nishu BG.

chaitanya bhatt

unread,
Apr 19, 2010, 5:47:59 AM4/19/10
to lr-loa...@googlegroups.com
Nishu,
 
Just because you see a huge request recorded in your web - http/html script, it doesn't mean you have to record it using Ajax click and script protocol. Sometimes, scripts in web protocol can look intimidating, but it may not necessarily be so complex that you give up on it. Give it a few more tries; get your scripts reviewed by fresh pair of eyes; and delve really hard on it before finally say "i'm done with this".
Because, IMO Click and Script protocol is the least robust protocol I have ever seen. Plus, it is one of the most buggy protocol. If you still want to use it then be prepared to re-record scripts several times during the process of your application build upgrades, because, even a slight change in the DOM during the upgrade can render your existing scripts useless.

Chaitanya M Bhatt

utkarsh sinha

unread,
Apr 19, 2010, 5:57:38 AM4/19/10
to lr-loa...@googlegroups.com
Hi Nishu,
             Go for single protocol.In my view AJAX click and script is the best option as scripting will be very easy.In (http/html) a lot of complex correlation is involved.Combining protocols might not br fruitful.

Thanks,
Utkarsh Sinha

utkarsh sinha

unread,
Apr 19, 2010, 6:02:18 AM4/19/10
to lr-loa...@googlegroups.com
Hi Nishu,
             chaitanaya is rightly saying the drawbacks of Click and script,also the memory consumption by the v-user will be high in ajax click and script as compared to Web(hhtp/html).only go for click and script if (http/html) script does not work...

Thanks,
Utkarsh

Floris Kraak

unread,
Apr 19, 2010, 6:58:27 AM4/19/10
to lr-loa...@googlegroups.com
On Mon, Apr 19, 2010 at 11:45 AM, Nishu BG <nish...@gmail.com> wrote:
>
>>When it breaks you get to keep both pieces.
>
> Was a bit confused by your above statement. Keep both in the sense?
>

It's a metaphor. It means: "If it breaks down you are the one who is
going to have to repair it. (and it will break down for sure!)"
Maybe that makes more sense to you.
Go read chaitanya bhatt's post if you still don't understand.


> And one more thing- I am actually in a fix. I dont know if its the right way
> to Combine 2 protocols while recording. When will i have to combine and
> record. Will it really make any difference.

WEB+AJAX is impossible. You have to choose one or the other.

James Pulley

unread,
Apr 19, 2010, 7:05:38 AM4/19/10
to lr-loa...@googlegroups.com
This is highly likely an application error which comes as a result of a
missed correlation. Correlated variables come in four different forms

(1) Session
(2) State
(3) Business Process Specific
(4) Clock based

Given that your error refers to a 'session error' I would look there
first
Reply all
Reply to author
Forward
0 new messages