无法在JMeter中记录Power Bi嵌入Web应用程序.app.powerbi.com引发错误

如何解决无法在JMeter中记录Power Bi嵌入Web应用程序.app.powerbi.com引发错误

我正在使用Apache JMeter 5.3。当我的应用程序点使用代理连接到https://app.powerbi.com时,我遇到了问题。我尝试在代理后面使用,它没有帮助。

请帮助我解决错误消息

错误消息:

java.net.UnkNownHostException: app.powerbi.com
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(UnkNown Source)
at java.net.InetAddress.getAddressesFromNameService(UnkNown Source)
at java.net.InetAddress.getAllByName0(UnkNown Source)
at java.net.InetAddress.getAllByName(UnkNown Source)
at java.net.InetAddress.getAllByName(UnkNown Source)
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
at org.apache.http.impl.conn.DefaultHttpClientConnectionoperator.connect(DefaultHttpClientConnectionoperator.java:112)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionoperator.connect(HTTPHC4Impl.java:401)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:930)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:641)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1281)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:234)

解决方法

&,您正在尝试使用IPv6 implementation获取app.powerbi.com的IP地址。

根据https://en.wikipedia.org/wiki/IPv6,该网站不支持IPv6

enter image description here

您可能想通过将下一行添加到 system.properties 文件中来restrict Java TCP/IP stack to IPv4 only

 val df = Seq((25,10,"a&c","i&j&k"),(35,15,"a&b&d","i&k")
      .toDF("num1","num2","x","y")
  val dfProcessed = df.withColumn("x",split($"x","&"))
      .withColumn("y",split($"y","&"))
      .select("num1","y")

    val headers = Seq("a","b","c","d","i","j","k")
    val report = dfProcessed.select(Seq("num1","num2").map(col) ++ headers.map(line => array_contains('x,line)
      || array_contains('y,line) as line) : _*)

    report.show()

需要重新启动JMeter才能获取该属性。

或者,您可以考虑使用另一种记录方式:JMeter Chrome Extension,使用它时,您不必担心代理,证书,协议版本等。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?