文档章节

Common Errors with Java Scripts in Controller

perfectspr
 perfectspr
发布于 2014/11/21 14:59
字数 514
阅读 80
收藏 1

"22994 : Error:Unable to create Java VM"

This error usually means that the PATH and the CLASSPATH environment  variables are not set properly.
Delete ini file for Vugen:
a. Shutdown  Vugen.
b. Go to "Window install directory" and look for vugen.ini.  Delete the file. LoadRunner will 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 are set up  properly.
1. Ensure the "jdk install dir"\bin and "LoadRunner Install dir"\bin  directories are in the PATH environment variable.
2. Ensure "LoadRunner Install dir"\classes, "LoadRunner Install dir"\classes\srv, and "JDK install dir"\jre\lib\rt.jar are 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 having the Java environment set up for QTP  will conflict with the LoadRunner compilation process).
5. If you are running the script on a remote load generator,  make sure that you apply the same update (1-4 ) there, and then, restart the  LoadRunner agent.
6. Make sure that any classpaths specified in the Run-Time  settings of the script are valid on the load generator machine as  well.


"22992 Can't find Actions.class"

Make sure that 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 does not exits, there could be a compilation problem. 
If the file exits, verify the folllowing:
1. Ensure the  "JDK Install dir"\bin and "LoadRunner Install dir"\bin directories are in the PATH  environment variable.
2. Ensure "LoadRunner Install dir"\classes, "LoadRunner Install dir"\classes\srv, and "JDK Install dir"\jre\lib\rt.jar are 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 having the Java environment set up for QTP will conflict with the LoadRunner compilation process).
5. Make sure to restart the Controller or VuGen in order to have  changes in steps 1-4 registered.
6. If the script was working and started to throw the above  error for no obvious reasons, try to clean up the initilization files and  reregister LoadRunner's DLL. To reregister the DLLs and recreate the   configuration files:

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

本文转载自:http://commonlrissues.blogspot.com/2011/12/common-errors-with-java-scripts-in.html

共有 人打赏支持
perfectspr
粉丝 5
博文 43
码字总数 1198
作品 0
大连
技术主管
cacti 监控jvm mongodb

一、cacti监控jvm 安装前提得有jdk环境 安装jdk,可以使用.bin、压缩包等 1、上传jdk.bin 或从其他服务器上拷贝java目录到/usr/local目录下,执行第五步之后即可 2、赋权chmod +x jdk.bin 3、...

hua_zi
2015/08/10
0
0
Language Descriptions(摘自 code complete)

Language Descriptions The development histories of some languages are interesting, as are their general capabilities. Here are descriptions of the most common languages in use t......

面码
2014/05/30
0
0
Android平台下与服务器数据库通信的方法

1、Android平台下与服务器数据库通信的方法 在Android平台下,连接电脑服务器的MySQL、PostgreSQL、Oracle、Sybase、Microsoft SQLServer等数据库管理系统DBMS(database management system),...

的书法上的
2014/06/06
0
0
SpringMVC之接收请求参数和页面传参

Spring接收请求参数 1,使用HttpServletRequest获取 Java代码 @RequestMapping("/login.do") public String login(HttpServletRequest request){ String name = request.getParameter("name")......

白志华
2015/09/23
0
0
hadoop2.5.1安装到虚拟机

1.虚拟机安装 系统版本 RHEL6.3 2.虚拟机ip配置 采用共享方式(nat) : 默认: 使用vmnet8 将虚拟机设置成使用dhcp方式上网,windows下选择"自动获取ip",linux下开启dhcp服务即可。 手动设置: i...

暗夜孤灯
2014/12/01
0
0

没有更多内容

加载失败,请刷新页面

加载更多

Python基础案例教程

一、超市买薯片 # 用户输入薯片的单价danjia = float(input("薯片的单价"))# 用户输入购买袋数daishu = int(input("购买的袋数"))# 计算总价zongjia = danjia * daishu# 输出结果...

linuxprobe16
47分钟前
0
0
采用CXF框架发布webservice

package cn.it.ws.cxf.a;import javax.jws.WebParam;import javax.jws.WebResult;import javax.jws.WebService;@WebService(serviceName="languageManager")public interface ......

江戸川
49分钟前
0
0
HashMap工作原理及实现

HashMap工作原理及实现 1. 概述 什么时候会使用HashMap?他有什么特点? 知道HashMap的工作原理吗? 知道get和put的原理吗? 知道hash的实现吗?为什么要这样实现? 如果HashMap的大小超过了...

傅小水water
56分钟前
1
0
swagger如何屏蔽某些接口,不对外公开--使用@ApiIgnore

@ApiIgnore@RestController@RequestMapping(value = "/i18nTest")public class I18nTestController {// @Resource// private LocaleMessageSourceService localeMessageSourceSe......

karma123
今天
1
0
大数据技术学习,大数据处理为何选择Spark,而不是Hadoop

大数据处理为何选择Spark,而不是Hadoop。 一.基础知识 1.Spark Spark是一个用来实现快速而通用的集群计算的平台。 在速度方面,Spark扩展了广泛使用的MapReduce计算模型,而且高效地支持更多...

董黎明
今天
0
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部