问题描述
我有JavaFX和TornadoFX的问题。当我在MacOS 10.15(Catalina)上启动我的应用程序时,出现以下错误消息:
按键接收
“您的应用程序”希望从任何应用程序接收击键。
在“系统偏好设置”中的“安全性和隐私”偏好设置中授予对此应用程序的访问权限。
我创建的任何JavaFX和TornadoFX应用程序都会看到此错误消息。无论多么简单。
有什么办法可以使此消息消失?显示此提示时,我不想发布该软件。
环境
我还尝试了其他版本,例如JavaFX13和TornadoFX 2.0.0-SNAPSHOT,但是看到了相同的提示。
可能与此有关:
编辑
Orcale JIRA中的错误报告:https ://bugs.openjdk.java.net/browse/JDK-8231513
我正在使用com.lazerycode.jmeter:jmeter-maven-plugin对Apache JMeter进行Web应用程序的性能测试。由于版本3.2带来了许多更改,我想知道是否可以在jmeter-maven-plugin中使用该版本(这不是Apache JMeter-project的一部分)。
我尝试了以下方法:
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<jmeterVersion>3.2</jmeterVersion>
<jMeterProcessJVMSettings>
<xms>1024</xms>
<xmx>1024</xmx>
<arguments>
<argument>-Xprof</argument>
<argument>-Xfuture</argument>
</arguments>
</jMeterProcessJVMSettings>
</configuration>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>test</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Run Code Online (Sandbox Code Playgroud)
jmeter-maven-plugin中的jmeter的标准版本是3.1。我发现这是为了指定库:https : //github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Specifying-JMeter-Version
上面的配置对我不起作用。我得到了NPE(空指针异常)。
[INFO] >>> jmeter-maven-plugin:2.1.0:jmeter (jmeter-tests) > :configure @ EAdresseBatchImportCapacityTests >>>
[INFO]
[INFO] --- jmeter-maven-plugin:2.1.0:configure (configure) @ EAdresseBatchImportCapacityTests ---
[INFO] -------------------------------------------------------
[INFO] Configuring JMeter...
[INFO] -------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.136 s
[INFO] Finished at: 2017-04-28T13:28:40+02:00
[INFO] Final …Run Code Online (Sandbox Code Playgroud) 我试图在JMeter中声明http响应代码。我认为这确实很简单,但是我遇到了无法解决的问题。
我的服务器可以返回2个响应代码:200和423。200没问题,它可以正常工作,但是我不能断言423,我不知道为什么。
我尝试了以下配置的响应断言:
要测试的字段:响应代码,模式匹配规则:包含
要测试的模式:200-有效423-不起作用200 | 423-200有效,423不起作用(wtf?)
我也尝试了BeanShell Assertion
Failure = !(ResponseCode.contains("200") || ResponseCode.contains("423"));
Run Code Online (Sandbox Code Playgroud)
它也不起作用。我也试图与响应消息匹配以包含“已锁定”-不起作用。服务器响应如下所示:
Thread Name: 10 Users, 100 Repeats 1-10
Sample Start: 2017-05-19 13:06:09 MESZ
Load time: 33
Connect Time: 2
Latency: 33
Size in bytes: 333
Sent bytes:768
Headers size in bytes: 333
Body size in bytes: 0
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""):
Response code: 423
Response message: Locked
Response headers:
HTTP/1.1 423 Locked
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, …Run Code Online (Sandbox Code Playgroud)