gpt4 book ai didi

java - JMeter 4 与 JAVA 版本 10 : An illegal reflective access operation has occurred

转载 作者:行者123 更新时间:2023-12-02 02:12:55 25 4
gpt4 key购买 nike

我在 Java 10 上运行了一个测试脚本 [jmeter.bat],得到以下输出:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.jmeter.util.HostNameSetter (file:/opt/apache-JMeter-4.0/lib/ext/ApacheJMeter_core.jar) to method sun.security.ssl.SSLSocketImpl.setHost(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.apache.jmeter.util.HostNameSetter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

页面的示例结果:

Response code: Non HTTP response code: javax.net.ssl.SSLProtocolException
Response Message: Non HTTP response message: handshake alert: Unrecognized name

我做错了什么?

标题

最佳答案

布伦达,JMeter 4.0支持 Java 9,因此如果您可以将 Java 版本降级到 9,那就太好了。

Redline13现在supports JMeter 4.0这可以帮助您在 AWS 环境中运行性能测试,而无需担心基础设施问题。

关于java - JMeter 4 与 JAVA 版本 10 : An illegal reflective access operation has occurred,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49702314/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com