PluginManager proxy and default http protocole not working with PluginManager 0.8

227 views
Skip to first unread message

Vincent Daburon

unread,
Jul 22, 2016, 5:24:07 AM7/22/16
to jmeter-plugins
Hi,

In the source code the default protocol to get the list of plugins is http => http://jmeter-plugins.org
================================
public class PluginManager {
private static final Logger log = LoggingManager.getLoggerForClass();
private int timeout = 1000; // don't delay JMeter startup for more than 1 second
protected HttpClient httpClient = new DefaultHttpClient();
private final static String address = JMeterUtils.getPropDefault("jpgc.repo.address", System.getProperty("jpgc.repo.address", "http://jmeter-plugins.org"));
================================

But now this http protocol is replace with httpS, i defined the jpgc.repo.address with httpS://jmeter-plugins.org

I add proxy configuration for http and httpS but i have a error, because this plugin use only http configuration not httpS configuration

=================================
public PluginManager() {
String proxyHost = System.getProperty("http.proxyHost", "");
if (!proxyHost.isEmpty()) {
int proxyPort = Integer.parseInt(System.getProperty("http.proxyPort", "-1"));
HttpParams params = httpClient.getParams();
HttpHost proxy = new HttpHost(proxyHost, proxyPort);
params.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
}
}
=================================

So here my configuration in the jmeter.bat
set JVM_ARGS="-Dhtttp.proxyHost=xx.xx.xx.xx -Dhttp.proxyPort=4088 -Dhtttps.proxyHost=xx.xx.xx.xx -Dhttps.proxyPort=4088 -Djpgc.repo.address=https://jmeter-plugins.org"

Error :
2016/07/22 11:07:38 ERROR - org.jmeterplugins.repository.PluginManagerDialog: Failed to load plugins manager org.apache.http.conn.ConnectTimeoutException: Connect to jmeter-plugins.org:80 timed out
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:122)

Same error http://jmeter-plugins.org
set JVM_ARGS="-Dhtttp.proxyHost=xx.xx.xx.xx -Dhttp.proxyPort=4088 -Dhtttps.proxyHost=xx.xx.xx.xx -Dhttps.proxyPort=4088 -Djpgc.repo.address=http://jmeter-plugins.org"

Regards.
Vincent D.

Vincent Daburon

unread,
Jul 22, 2016, 6:18:22 AM7/22/16
to jmeter-plugins
Sorry i make typo error :-(
3 t for http !
-Dhtttp.proxyHost

That explain connection trouble.

The correct configuration for me
JVM_ARGS="-Dhttps.proxyHost=xx.xx.xx.xx -Dhttps.proxyPort=4088"
and start
jmeter.bat -H myproxy -P 4088

But
this configuration
JVM_ARGS="-Dhttps.proxyHost=xx.xx.xx.xx -Dhttps.proxyPort=4088 -Dhttp.proxyHost=xx.xx.xx.xx -Dhttp.proxyPort=4088"
and start
jmeter.bat NOT OK
2016/07/22 12:17:48 ERROR - org.jmeterplugins.repository.PluginManagerDialog: Failed to load plugins manager org.apache.http.conn.ConnectTimeoutException: Connect to jmeter-plugins.org:80 timed out


Regards.
Vincent D.

Andrey Pokhilko

unread,
Jul 22, 2016, 2:57:32 PM7/22/16
to jmeter-...@googlegroups.com
Hey, good catch! I fixed it in the repo.

Andrey Pokhilko

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages