文档章节

Common Errors with Java Scripts in Controller

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

"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
粉丝 4
博文 42
码字总数 1198
作品 0
大连
技术主管
《Python3.6官方文档》– 六月翻译邀请

原文链接 邀请者:小村长 概述 本篇是 Python官方文档的的翻译邀请函。只从AlphaGo成功挑战世界围棋冠军之后,在软件工程界掀起了一股人工智能热。而Python凭借着大量丰富的机器学习库迎来了...

xiaocunzhang ⋅ 01/15 ⋅ 0

Linux下安装配置Hadoop2.7.6

前提 安装jdk 下载 wget http://mirrors.hust.edu.cn/apache/hadoop/common/hadoop-2.7.6/hadoop-2.7.6.tar.gz 解压 配置 vim /etc/profile # 配置java环境变量 export JAVAHOME=/opt/jdk1.......

晨猫 ⋅ 06/19 ⋅ 0

ubuntu安装tomcat7

系统版本:16.04.4 sudo apt-get install tomcat7 直接tomcat启动提示JAVAHOME环境没有配置 sudo apt-get install oracle-java8-installer 通过这个命令可以看到java安装路径: sudo update-...

断臂人 ⋅ 04/20 ⋅ 0

maven打jar包,配置文件没有被打入

今天在给common项目打包的过程中,发现打出的包中(jar文件)不包含.properties文件,我们项目在读取一些配置时,把信息写在了weifutong.properties 文件中,地址为:XXX_common/src/main/j...

小学生学习 ⋅ 04/26 ⋅ 0

Logstash 6.2.4 发布,开源服务端数据处理流程

Logstash 6.2.4 已发布,带来了大量修复和改进: Fixed an issue where events passing through the persistent queue had the contents of string type fields corrupted for values conta......

淡漠悠然 ⋅ 04/18 ⋅ 0

在线打一个oracle热补丁的例子

1.检查冲突 [oracle@oracleB 18034737]$ $ORACLE_HOME/O Patch /opatch prereq CheckConflictAgainstOHWithDetail -ph ./ Oracle 中间补丁程序安装程序版本 11.2.0.3.4 版权所有 (c) 2012, ......

tututu_jiang ⋅ 06/13 ⋅ 0

开源 | Eggjs 和 SOFA 的跨语言互调

SOFARPC 是近期蚂蚁金服开源的一个高可扩展性、高性能、生产级的 Java RPC 框架。在蚂蚁金服 SOFARPC 已经经历了十多年及五代版本的发展。SOFARPC 致力于简化应用之间的 RPC 调用,为应用提供...

花肉酱 ⋅ 06/14 ⋅ 0

主流Java数据库连接池比较及前瞻

本文转载自微信公众号「工匠小猪猪的技术世界」 主流数据库连接池 常用的主流开源数据库连接池有C3P0、DBCP、Tomcat Jdbc Pool、BoneCP、Druid等 C3p0: 开源的JDBC连接池,实现了数据源和JND...

渣渣(Charles) ⋅ 04/30 ⋅ 0

Guava 25.1 发布,Google 的 Java 核心工具库

Guava 25.1 已发布,更新如下: Switched to the type annotation version of in the JRE/Java 8 flavor. : Added , copied from . : Added Token Binding HTTP headers to . : Added overr......

王练 ⋅ 05/24 ⋅ 0

Spring Boot MyBatis学习(一)

Spring Boot MyBatis学习(一) 本文仅为记录自己的学习过程,其中很多问题还需要进一步的理解 1.创建Spring Initializr项目 然后点Next、最后点Finsh即可。项目结构如下 二、创建、配置相应...

Azuresky ⋅ 05/31 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

【elasticsearch】 随笔 Date datatype

一。时间类型的本质 首先json是没有时间类型的,对于es来说,时间类型的标示可以是下面三种情况 1.一个时间格式的字符串,如:"2014-11-27T08:05:32Z","2015-01-01" or "2015/01/01 12:10:3...

xiaomin0322 ⋅ 29分钟前 ⋅ 0

阿里云资源编排ROS使用教程

阿里云资源编排ROS详细内容: 阿里云资源编排ROS使用教程 资源编排(Resource Orchestration)是一种简单易用的云计算资源管理和自动化运维服务。用户通过模板描述多个云计算资源的依赖关系、...

mcy0425 ⋅ 31分钟前 ⋅ 0

适配器设计模式

1、适配器模式 把一个类的接口变换成客户端所期待的另一种接口 使原本因接口不匹配而无法在一起工作的两个类能够在一起工作 分为类的适配器模式和对象的适配器模式 2、类适配器模式 类的适配...

职业搬砖20年 ⋅ 35分钟前 ⋅ 0

npm操作报错 _stream_writable.js:61

有一天 不知道什么原因(估计和node的版本有关),无论你做什么npm的操作 都会报错/usr/local/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:61 这时候只要执...

lilugirl ⋅ 39分钟前 ⋅ 0

Eclipse安装插件的几种方式

Eclipse魅力之一就是支持可扩展的插件,来丰富自身的功能,这种方式也是建立在开源思想之上的。具体使用什么方式去安装插件,要看我们拿到的是什么。 1. 拿到的是一串URL,如http://subclips...

GordonNemo ⋅ 41分钟前 ⋅ 0

div图片叠加

css实现代码如下: <div style="position: relative;"><!--这个层为外面的父层,需设置相对位置样式--> <div style="position: absolute;"><!--子层,需设置绝对位置样式--> <i......

niithub ⋅ 43分钟前 ⋅ 0

作用域slot

如果父组件需要使用子组件中的内容怎么办,比如父组件需要控制子组件的显示 <div id="root"><child><template slot-scope="props"><h1>{{props.item}} <div>编辑</div></h1><......

金于虎 ⋅ 45分钟前 ⋅ 1

HongHu commonservice-eureka 项目构建过程

上一篇我们回顾了关于 spring cloud eureka的相关基础知识,现在我们针对于HongHu cloud的eureka项目做以下构建,整个构建的过程很简单,我会将每一步都构建过程记录下来,希望可以帮助到大家...

明理萝 ⋅ 48分钟前 ⋅ 1

xml和对象的相互转化

@Data//setter和getter方法,toString和equals,hashcode方法@EqualsAndHashCode//代表重写equals和hashcode方法@XmlAccessorType(XmlAccessType.FIELD)public class Classroom {@X......

拐美人 ⋅ 48分钟前 ⋅ 0

tableView cell的高度 分组头部尾部的高度 自适应

@property (nonatomic) CGFloat rowHeight; // default is UITableViewAutomaticDimension@property (nonatomic) CGFloat sectionHeaderHeight; // default is UITableViewA......

娜一片蓝色星海 ⋅ 49分钟前 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部