锁定文件配置屏蔽不起作用

Lock File Config masking not working

我在 windows 7,

上使用最新 Lock File Config plugin 的 JMeter 4.0

它正在使用文件名,但选项 Also check filemask 不起作用

You can also specify a filename with wildcards to check for existing lock files

日志错误:

2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filename: c:/temp/2.txt
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,124 INFO k.a.j.c.LockFile: and by wildcard at C:\temp*2*
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,125 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.NoClassDefFoundError: kg/apc/io/FileSystem
    at kg.apc.jmeter.config.LockFile.testStarted(LockFile.java:45) ~[jmeter-plugins-lockfile-0.1.jar:?]
    at kg.apc.jmeter.config.LockFile.testStarted(LockFile.java:21) ~[jmeter-plugins-lockfile-0.1.jar:?]
    at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:215) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:384) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
Caused by: java.lang.ClassNotFoundException: kg.apc.io.FileSystem
    at java.net.URLClassLoader.run(Unknown Source) ~[?:1.8.0_25]
    at java.net.URLClassLoader.run(Unknown Source) ~[?:1.8.0_25]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_25]
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_25]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_25]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_25]
    ... 5 more

是否有特定的大小写掩码 can/should 可以使用?或者我不应该使用这个选项?有没有我应该添加的依赖罐?是 OS 特定问题吗?

java.lang.NoClassDefFoundError: kg/apc/io/FileSystem

您缺少 jmeter-plugins-common jar in JMeter Classpath,从上面 link 下载它,放到 JMeter 安装的 "lib" 文件夹并重新启动 JMeter 以获取 .jar。

如果 jar 没有使用 JMeter Plugins Manager it makes sense to let JMeter Plugins developers and maintainers know about it, you can reach out to them via JMeter Plugins forum

自动安装