javajmeter

JAVA - Failed to download json-lib


Trying to install JMeter5.5 and followed this article , I'm with step 7 to download the plugins using cmdrunner-2.3.jar however I got issue on downloading json-lib. Please advise on how to resolve it.

This is the error message I'm gettiung when executed the step 7:

2023-03-04 02:02:43,339 INFO o.j.r.JARSourceHTTP: Downloading: http://search.maven.org/remotecontent?filepath=net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar
2023-03-04 02:02:43,339 INFO o.j.r.PluginManagerCMD: Downloading json-lib...
2023-03-04 02:07:04,309 ERROR o.j.r.PluginManager: Failed to download json-lib
java.net.ConnectException: Connection timed out (Connection timed out)
    at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) ~[?:?]
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) ~[?:?]
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) ~[?:?]
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
    at java.net.Socket.connect(Socket.java:609) ~[?:?]
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[httpclient-4.5.13.jar:4.5.13]
    at org.jmeterplugins.repository.JARSourceHTTP.execute(JARSourceHTTP.java:499) ~[plugins-manager.jar:?]
    at org.jmeterplugins.repository.JARSourceHTTP.getJAR(JARSourceHTTP.java:389) ~[plugins-manager.jar:?]
    at org.jmeterplugins.repository.PluginManager.applyChanges(PluginManager.java:167) ~[plugins-manager.jar:?]
    at org.jmeterplugins.repository.PluginManagerCMD.installAll(PluginManagerCMD.java:146) ~[plugins-manager.jar:?]
    at org.jmeterplugins.repository.PluginManagerCMD.processParams(PluginManagerCMD.java:78) ~[plugins-manager.jar:?]
    at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:62) ~[cmdrunner-2.3.jar:?]
    at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:21) ~[cmdrunner-2.3.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
    at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:117) ~[cmdrunner-2.3.jar:?]

Solution

  • I am able to download the json-lib now, it appears that it still pulls from via http and able to get the file. Seems like changes under this discussion fixed the issue.

    2023-03-06 00:25:39,507 INFO o.j.r.JARSourceHTTP: Downloading: http://search.maven.org/remotecontent?filepath=net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar
    2023-03-06 00:25:39,507 INFO o.j.r.PluginManagerCMD: Downloading json-lib...
    023-03-06 00:25:40,548 INFO o.j.r.PluginManagerCMD: Downloaded json-lib...