将一个在eclipse中已经编译通过的java脚本导入到loadrunne中出现如下错误
错误: System.err: java.lang.ExceptionInInitializerError ErrorSystem.err: at Actions.sendPostRequest(Actions.java:122) Error
System.err: at Actions.main(Actions.java:75) Error
System.err: at Actions.action(Actions.java:42) Error
错误: System.err: Caused by: java.lang.NullPointerException Error
System.err: at sun.net.util.URLUtil.urlNoFragString(URLUtil.java:29) Error
System.err: at sun.misc.URLClassPath.getLoader(URLClassPath.java:292) Error
System.err: at sun.misc.URLClassPath.access$000(URLClassPath.java:60) Error
System.err: at sun.misc.URLClassPath$1.next(URLClassPath.java:195) Error
System.err: at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:206) Error
System.err: at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416) Error
System.err: at java.security.AccessController.doPrivileged(Native Method) Error
System.err: at java.net.URLClassLoader$3.next(URLClassLoader.java:413) Error
System.err: at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:438) Error
System.err: at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27) Error
System.err: at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36) Error
System.err: at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1475) Error
System.err: at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:457) Error
System.err: at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) Error
System.err: at net.sf.json.AbstractJSON.<clinit>(AbstractJSON.java:42) Error
System.err: ... 3 more Error
错误: java.lang.ExceptionInInitializerError
初学loadrunner,求助各位Boss这种错误是因为缺少jar数据包吗?还是其他什么原因?小妹不胜感激 有积分,需要多少,到时可以追加 已解决 是不是缺少jar包,或者环境变量问题 jingzizx 发表于 2015-10-21 15:10
是不是缺少jar包,或者环境变量问题
是跟环境变量有关系,因为添加了不必要的数据包
页:
[1]