11-06-2013 11:51 AM
We created a Java RMI script to for ORPOS (Oracle Retail Point of Sale) application. We are using LoadRunner 11.52 on Windows 7 (32 bit) with JDK 1.6.
I can compile the script without any errors. When I run the script, it stops at the JNDI context initialization line and after that VUGen hangs. I have to kill it from task manager. It stops at the following line. There is no error message in the output log.
Following is the code snippet
_properties1 = System.getProperties();
_properties1.put("sun.management.compiler", "HotSpot Client Compiler");
// Installing RMISecurityManager
if (System.getSecurityManager() == null)
_dispatcher1 = oracle.retail.stores.foundation.tour.conduit.Dispa
_hashtable1 = new java.util.Hashtable();
// Initialize context
_initialcontext1 = new javax.naming.InitialContext(_hashtable1);
Can someone please help me with this?
11-12-2013 01:29 AM
Could you please replay a script outside Vugen by executing a following console command: “mdrv –use <full path to script’s *.usr file>”. mdrv is located at LR’s bin folder.
Here is an example for my local environment:
c:\Program Files (x86)\HP\LoadRunner\bin>mdrv -usr "c:\Users\OracleNCA_Multi1\OracleNCA_Multi1.usr"
This test will allow us to determine what part of LR exactly causes the hang: since while replaying Vugen (UI) interact with mdrv (replay engine).
Please update us with result, to move forward with this case.
11-13-2013 08:54 PM
Hopefully you have been able to get ahead of this problem with Dim's suggestions.
Just wondering if this is got anything to do with Security ... have you granted all rights on java security policy?
Also, while you dont get any errors on LR logs, would enabling the JVM Console Logs help to see if there are any logs there?
06-07-2014 03:46 PM
Was this issue ever resolved?
(Reading the modern times User forum threads at HP for LoadRunner can be frustrating at times. There are tons and tons of threads where a question or problem is stated, some suggestion or follow up question made and then - nothing. No answer, no follow up answer, nothing. Did it work? Was it all for nought? It's good there are other sources for user discussions but it's not so good it's not as easy to find them as just going here.)