文档章节

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
大连
技术主管
私信 提问
JCR 223 在各种语言的实现

JSR 223 compliant scripting languages Added by Adrian David, last edited by Adrian David on May 08, 2008 (view change) The J2EE platform implements the java.script APIs, which a......

麦地兜兜
2012/12/15
408
1
maven打包时 org.apache.http.*不存在

在实用maven打包的时候出现以下问题: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project xulinp-api: Compila......

乡村崽
2016/01/27
2.7K
2
Idea运行EovaRun时编译报错

Information:Using javac 1.6.0-rc to compile java sources Information:java: Errors occurred while compiling module 'eova' Information:2015-09-25 16:44 - Compilation completed wit......

顺其自然001
2015/09/25
483
1
s2jh 项目在netbean 下构建出现以下问题?

@S2JH 你好,想跟你请教个问题:------------------------------------------------------------------------ 环境 netbean7.3 jdk7 Total time: 2:04.813s Finished at: Tue Oct 08 09:56:......

caqis
2013/10/08
739
4
编译插件生成的项目时出现一个异常

我用的是AllInOne版本的64位eclipse,使用插件生成的项目,编译ROOT时出现一个异常。我贴出异常部分的日志,描述是plexus的interpolation路径不对。但我不清楚项目找的不是org\codehaus\plex...

pyfhua
2013/09/12
11.1K
5

没有更多内容

加载失败,请刷新页面

加载更多

OSChina 周六乱弹 —— 你一口我一口多咬一口是小狗

Osc乱弹歌单(2018)请戳(这里) 【今日歌曲】 @达尔文 :分享Roy Orbison的单曲《She's a Mystery to Me》 《She's a Mystery to Me》- Roy Orbison 手机党少年们想听歌,请使劲儿戳(这里...

小小编辑
29分钟前
10
2
Spring源码学习笔记-1-Resource

打算补下基础,学习下Spring源码,参考书籍是《Spring源码深度解析》,使用版本是Spring 3.2.x,本来想试图用脑图记录的,发现代码部分不好贴,还是作罢,这里只大略记录下想法,不写太细了 ...

zypy333
今天
12
0
RestClientUtil和ConfigRestClientUtil区别说明

RestClientUtil directly executes the DSL defined in the code. ConfigRestClientUtil gets the DSL defined in the configuration file by the DSL name and executes it. RestClientUtil......

bboss
今天
18
0

中国龙-扬科
昨天
2
0
Linux系统设置全局的默认网络代理

更改全局配置文件/etc/profile all_proxy="all_proxy=socks://rahowviahva.ml:80/"ftp_proxy="ftp_proxy=http://rahowviahva.ml:80/"http_proxy="http_proxy=http://rahowviahva.ml:80/"......

临江仙卜算子
昨天
13
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部