为了账号安全,请及时绑定邮箱和手机立即绑定

JMeter运行badboy录制的脚本运行不成功响应Address family not supported by protocol family: connect

java.net.SocketException: Address family not supported by protocol family: connect

at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at java.net.Socket.connect(Socket.java:538)

at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)

at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)

at sun.net.www.http.HttpClient.New(HttpClient.java:339)

at sun.net.www.http.HttpClient.New(HttpClient.java:357)

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)

at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)

at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:539)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)

at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)

at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)

at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)

at java.lang.Thread.run(Thread.java:748)


正在回答

1 回答

没发生过以上的问题,你badyboy录制的脚本保存的时候是选择export to jmeter的吗?我一开始是直接ctrl+s保存,发现导不进jmeter.格式后缀名不是jmx,强制给改了jmx,没用。后来重新录制,保存的时候是选择export to jmeter,后缀直接是jmx,导进jmeter完全没出错。

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

JMeter运行badboy录制的脚本运行不成功响应Address family not supported by protocol family: connect

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信