Common Errors with Java Scripts in Controller

Source: Internet
Author: User

"22994:error:unable to create Java VM"

This error usually means the PATH and the CLASSPATH environment variables is not set properly.
Delete INI file for Vugen:
A. Shutdown Vugen.
B. Go to "Windows install directory" and look for Vugen.ini. Delete the file. LoadRunner would recreate new configuration file when Vugen is launched.
C. Launch Vugen and run the script again.

"22997 Java vuser compilation failed"

Make sure, that LoadRunner and the Java environment is set up properly.
1. Ensure the "jdk install dir" \ Bin and "LoadRunner install dir" \ Bin directories is in the PATH environment variable .
2. Ensure "LoadRunner install dir" \classes, "LoadRunner install dir" \classes\srv, and "JDK install dir" \jre\lib\rt.jar is In the CLASSPATH environment variable (preferably at the beginning of the entry).
3. Add any necessary application classpaths to the environment variable.
4. Remove potentially conflicting entries in both the PATH and CLASSPATH entries (sometimes have the Java Environme NT set up for QTP would conflict with the LoadRunner compilation process).
5. If You is running the script on a remote load generator, make sure this you apply the same update (1-4) there, a nd then, restart the LoadRunner agent.
6. Make sure, classpaths specified in the Run-time settings of the script is valid on the load generator Mac Hine as well.


"22992 Can ' t find Actions.class"

Make sure this there is a file named "Actions.class" within the script directory. This is the Java bytecode file generated from compiling Actions.java. If This file is does not exits, there could is a compilation problem.
If the file exits, verify the folllowing:
1. Ensure the "JDK install dir" \ Bin and "LoadRunner install dir" \ Bin directories is in the PATH environment variable.
2. Ensure "LoadRunner install dir" \classes, "LoadRunner install dir" \classes\srv, and "JDK install dir" \jre\lib\rt.jar is In the CLASSPATH environment variable (preferably at the beginning of the entry).
3. Add any necessary application classpaths to environment variable.
4. Remove potentially conflicting entries in both the PATH and CLASSPATH entries (sometimes have the Java Environme NT set up for QTP would conflict with the LoadRunner compilation process).
5. Make sure to restart the Controller or Vugen in order to has changes in steps 1-4 registered.
6. If the script is working and started to throw the above error as no obvious reasons, try to clean up the Initilizati On files and reregister LoadRunner ' s DLLs. To reregister the DLLs and recreate the configuration files:

A. Make sure all the LoadRunner applications is closed.
B. Go to "LoadRunner Install dir" \ Bin directory and execute register_vugen.bat.
C. Go to C:\Winnt, back up Vugen.ini and then delete the file. LoadRunner would recreate new configuration files when Vugen is launched.
7. The JVM is limited to-KB per function.  If one or more of the functions within the the Actions class are too big, you'll get the above error. To resolve this, break the function up into multiple functions.

Common Errors with Java Scripts in Controller

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.