2

我正在尝试在 Linux Mint 中安装 JMeter。我在一个身份验证代理后面,我正在调用 ant 作为ant -autoproxy download_jars. 这给了我以下输出,然后卡住了。

download_jars:

_process_all_jars:

_check_exists:

_check_jarfile:
     [echo] Checking bsf-2.4.0.jar
     [echo] Deleting bsf-*.jar (excluding bsf-2.4.0.jar)

_get_jarfile:
     [echo] Fetching: lib/bsf-2.4.0.jar
      [get] Getting: http://repo2.maven.org/maven2/bsf/bsf/2.4.0/bsf-2.4.0.jar
      [get] To: /home/xxx/xxx/Jmeter/apache-jmeter-2.10/build/bsf-2.4.0.jar

它从来没有真正得到文件,也没有报告任何错误。系统监视器显示可忽略不计的网络活动 (~4kB/sec)。即使等待了很长时间,该过程也没有完成。

在这种情况下,我该如何从源代码安装 ant?手动下载所有 JAR 是不切实际的。

更新:调用失败,出现以下异常:

BUILD FAILED
/home/xxx/xxx/Jmeter/apache-jmeter-2.10/build.xml:2944: The following error occurred while executing this line:
/home/xxx/xxx/Jmeter/apache-jmeter-2.10/build.xml:2870: The following error occurred while executing this line:
/home/xxx/xxx/Jmeter/apache-jmeter-2.10/build.xml:2764: The following error occurred while executing this line:
/home/xxx/xxx/Jmeter/apache-jmeter-2.10/build.xml:2807: The following error occurred while executing this line:
/home/xxx/xxx/Jmeter/apache-jmeter-2.10/build.xml:2837: java.net.SocketException: Malformed reply from SOCKS server
    at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:111)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:448)
    at java.net.Socket.connect(Socket.java:546)
    at java.net.Socket.connect(Socket.java:495)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)
    at sun.net.www.http.HttpClient.New(HttpClient.java:321)
    at sun.net.www.http.HttpClient.New(HttpClient.java:338)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)
    at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:660)
    at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:579)
    at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:569)

Total time: 15 minutes 2 seconds
4

0 回答 0