|
问题:录制Java vuser协议脚本时,编译报错,日志提示Err -10176;
环境:发生问题的Loadrunner 版本:8.1英文版 ;
Jdk版本1.5.0.13;
系统环境变量:
classpath= .;C:\Program Files\Java\jre1.5.0_13\lib;C:\Program Files\Java\jdk1.5.0_13\jre\lib;C:\Program Files\Java\jdk1.5.0_13\lib;C:\Program Files\Java\jre1.5.0_13\lib;E:\apache-tomcat-5.5.25\common\lib;C:\Program Files\Mercury\LoadRunner\classes;C:\Program Files\Mercury\LoadRunner\lib
JAVA_HOME= C:\Program Files\Java\jre1.5.0_13\lib;C:\Program Files\Java\jdk1.5.0_13\jre\lib;C:\Program Files\Java\jdk1.5.0_13\lib
PATH= .;C:\Program Files\Java\jdk1.5.0_13\bin;C:\Program Files\Java\jdk1.5.0_13\jre\bin;C:\Program Files\Java\jre1.5.0_13\bin;D:\oracle\product\10.2.0\client_1\bin;%JAVA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
步骤:
1 采用Java vuser协议新建一个Vgen 脚本,不增加任何代码,保存脚本文件;
2 按F5 run;
3 编译Compile;
结果:
步骤2 按F5 run 提示正常;
步骤3 Relay log 提示 “No errors detected”
但是日志log 提示
Notify: classpath=E:\µÇ½EXP5ϵͳJAVA\;c:\program files\mercury\loadrunner\classes\srv;c:\program files\mercury\loadrunner\classes;.;C:\Program Files\Java\jre1.5.0_13\lib;C:\Program Files\Java\jdk1.5.0_13\jre\lib;C:\Program Files\Java\jdk1.5.0_13\lib;E:\apache-tomcat-5.5.25\common\lib;C:\Program Files\Mercury\LoadRunner\classes;C:\Program Files\Mercury\LoadRunner\lib;;; [MsgId: MMSG-22986]
Notify: Path=C:\PROGRA~1\Mercury\LOADRU~1\bin;C:\PROGRA~1\Mercury\LOADRU~1\bin\tulip\bin;.;C:\Program Files\Java\jdk1.5.0_13\bin;C:\Program Files\Java\jdk1.5.0_13\jre\bin;C:\Program Files\Java\jre1.5.0_13\bin;D:\oracle\product\10.2.0\client_1\bin;C:\Program Files\Java\jre1.5.0_13\lib;C:\Program Files\Java\jdk1.5.0_13\jre\lib;C:\Program Files\Java\jdk1.5.0_13\lib\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\CollabNet Subversion Server;C:\Program Files\IDM Computer Solutions\UltraEdit\;;C:\Program Files\Java\jdk1.5.0_13\jre\bin\client [MsgId: MMSG-22986]
Notify: VM Params: . [MsgId: MMSG-22986]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176]
尝试方法:
1 怀疑jdk的版本问题,重装JDK1.5,结果再次编译仍然提示同样错误;
2 怀疑Loadrunner版本问题,下载FP4 Patch,安装完毕再次编译仍然提示同样问题;
3 其它协议如WEB(HTTP)和Windows sockets 的脚本则均编译通过;
4 寻求网络资源,没有找到更好的解决方案。 |
|