51Testing软件测试论坛

标题: Java Vuser脚本报错 [打印本页]

作者: kevindude    时间: 2011-1-8 15:13
标题: Java Vuser脚本报错
用Java Vuser写了一个简单的测试脚本,脚本如下:

/*
* LoadRunner Java script. (Build: _build_number_)
*
* Script Description:
*                     
*/

import lrapi.lr;
import com.meidusa.test.client.TestApp;

public class Actions
{

        public int init() throws Throwable {
                return 0;
        }//end of init


        public int action() throws Throwable {
            TestApp app = new TestApp();
            app.run("test");
            return 0;
        }//end of action


        public int end() throws Throwable {
                return 0;
        }//end of end
}


在运行的时候报以下错误:

Error (-17998): Failed to get [param not passed in call] thread TLS entry.

以下是全部的log信息:

Notify: Found jdk version: 1.6.0.
Notify: classpath=C:\Documents and Settings\Administrator\My Documents\test1\;c:\program files\hp\loadrunner\classes\srv;c:\program files\hp\loadrunner\classes;.;D:\Java\jdk1.6.0_22\lib\dt.jar;D:\Java\jdk1.6.0_22\lib\tools.jar;C:\Documents and Settings\Administrator\.m2\repository\com\threerings\narya\1.4-SNAPSHOT\narya-1.4-SNAPSHOT.jar;C:\Documents and Settings\Administrator\.m2\repository\com\samskivert\samskivert\1.1\samskivert-1.1.jar;C:\Documents and Settings\Administrator\.m2\repository\com\meidusa\test\performance\1.0-SNAPSHOT\performance-1.0-SNAPSHOT.jar;C:\Documents and Settings\Administrator\.m2\repository\com\google\guava\guava\r07\guava-r07.jar;;;;c:\program files\hp\loadrunner\lib\xstream-1.3.jar;c:\program files\hp\loadrunner\lib\xpp3-1.1.4c.jar
Notify: Path=D:\Java\jdk1.6.0_07\jre\bin\client;C:\PROGRA~1\HP\LOADRU~1\bin;C:\PROGRA~1\HP\LOADRU~1\bin\gecko;C:\PROGRA~1\HP\LOADRU~1\bin\tulip\bin;C:\PROGRA~1\HP\LOADRU~1\bin;C:\program files\jet7.2-eval\bin;C:\Program Files\CollabNet\Subversion Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin;D:\Java\jdk1.6.0_07\bin;D:\Java\apache-ant-1.7.0\bin;D:\Java\cygwin\bin;D:\Java\mysql-5.1.32-win32\bin;C:\Program Files\Final Codecs\QTSystem\;C:\Program Files\TortoiseSVN\bin;D:\Java\apache-maven-2.2.1\bin;D:\c++\mingw\bin;D:\c++\msys\bin;D:\C++\boost-jam-3.1.18\bin.ntx86;C:\strawberry\c\bin;C:\strawberry\perl\bin;
Notify: VM Params: .
Virtual User Script started at : 2011-01-08 14:42:59
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
System.err:                                                                                                                                                       Error
Ending action Actions.
Ending iteration 1.
Ending Vuser...
Error (-17998): Failed to get [param not passed in call] thread TLS entry.
Error (-17998): Failed to get [param not passed in call] thread TLS entry.

Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
HTML-Mode memory management statistics: Reusable=0, NonReusable=0, CsMemBlockSize=4096, checks disabled          [MsgId: MMSG-26000]
Vuser 0 (thread 4468), ended OK."

请高手帮忙看看
作者: msnshow    时间: 2011-1-9 11:43
没用过,不过从日志看,怎么有2个JDK版本的
作者: PrefTest    时间: 2011-1-10 09:55
Runtime-settings中设置为run as process试试
作者: 婴儿    时间: 2011-1-10 11:37
com.meidusa.test.client.TestApp 对应的包没加载




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2