Highlighted
Absent Member.
Absent Member.
180 views

Problems with Recording JAVA with LR 9.51

Hi all,

I am trying to record a java 1.6.0_10 Application

I set the Classpath and Path environment properly.

On clicking the Record Button following Message shows:
"jvm_hook failed access \classes\jrecord.ini"

I checked the folder and jrecord.ini is missing. This is a new Installation of LR 9.51 I have no Idea why its not there, does anybody have experience in Loadtesting JAVA with LR9.51?

Is in your Installation the jrecord.ini missing as well?

Thanks
Reto
0 Likes
11 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Problems with Recording JAVA with LR 9.51

Reto,

Can you send me the snapshot of error and Start Recording window?

Try replaying the blank Java R&R script and verify. If you receive any error, then your environment is not setup.

-Madhu
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Problems with Recording JAVA with LR 9.51

Hi, Madhu

I appended the Error.Zip there in is the Error.jpg as well as the StartRecording.jpg

I also took a snapshot of the RecordingOption JAVAVM and CLASSPATH. The CLASSPATH has all the .jar files of the SW under Test as well as the one for JAVA and LR.

All the other Recording Properties Options are on default.
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Problems with Recording JAVA with LR 9.51

Reto,

First, the classpath order is incorrect. Move the LR\Classes & SRV to first

Did you input the jar file which mentioned in the ClassNotFound Error?

Make sure to input that.

I can see additional VM Arguments in the snapshot, does it really required by your application? If not, remove it. Ofcourse it is not the cause of error.
-Madhu
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Problems with Recording JAVA with LR 9.51

Madhu,

I moved LR\Classes & SRV to the top.

Yes the I did input the jar file which mentioned in the ClassNotFound Error.

I arrange the .jar order according to the original Manifest

The additional VM Arguments are necessary, but even if I remove them the Error persists.

What I can not understand is the first line of the Error:

"jvm_hook faild access C:\clases\jrecord.ini"

In my \clases\ directory there is no jrecord.ini!!!

-Reto
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Problems with Recording JAVA with LR 9.51

I don't think the first line of error you received is causing the problem.

It is mostly likely related to your environment. Check the environment variables like _java_options etc.
Make sure there is only one LR\bin in System Path.
First, let me know if you can replay a blank script without any error.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Problems with Recording JAVA with LR 9.51

Hi again,

Yes I can run a blanc script without an error.

I deployed the SW again without singed .jars and now it works. well the SW ist starting, but LR is not scripting any events!
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Problems with Recording JAVA with LR 9.51

Cool. It is launching the application without any error and not recording any events then we need to concentrate on the protocol used by your application.

Also, we need to check whether the corresponding class hooks exist or not in LR recording. If not, we may need to create our own custom hooks. For this you need to have good understanding on your application and the Java Class hierarchy.

-Madhu
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Problems with Recording JAVA with LR 9.51

Hi Madhu

We use RMI/IIOP is there a predefined hook for that?

-Reto
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Problems with Recording JAVA with LR 9.51

Yes, it have RMI hooks. Does your application use customized RMI? There are different kinds of RMI implementation from different vendors. Please check this. You can check the available hooks at \classes directory.

-Madhu
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Problems with Recording JAVA with LR 9.51

Hi again,

We are using RMI from Sun. Our Server is Grassfisch 2.1 is the a customize hook available for this?

-Reto
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Problems with Recording JAVA with LR 9.51

LR has hooks for Sun RMI. there might be some other configuration issue here.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.