NPE with LS 5.4.0 logstash-plugin when env vars "http(s)_proxy" set but empty

Hi Folks,

i get following error when i try to execute logstash-plugin:

jupp@jupp-laptop-e530:~/entwicklung/software/elastic/5.4.0/logstash-5.4.0$ bin/logstash-plugin 
java/util/Hashtable.java:459:in `put': java.lang.NullPointerException
        from java/util/Properties.java:166:in `setProperty'
        from java/lang/System.java:796:in `setProperty'
        from java/lang/reflect/Method.java:498:in `invoke'
        from /home/jupp/entwicklung/software/elastic/5.4.0/logstash-5.4.0/lib/pluginmanager/proxy_support.rb:40:in `apply_env_proxy_settings'
        from /home/jupp/entwicklung/software/elastic/5.4.0/logstash-5.4.0/lib/pluginmanager/proxy_support.rb:62:in `configure_proxy'
        from /home/jupp/entwicklung/software/elastic/5.4.0/logstash-5.4.0/lib/pluginmanager/main.rb:26:in `(root)'

My Java:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

My System:

Linux jupp-laptop-e530 4.9.0-2-amd64 #1 SMP Debian 4.9.18-1 (2017-03-30) x86_64 GNU/Linux

The Download-link:

https://artifacts.elastic.co/downloads/logstash/logstash-5.4.0.tar.gz

SHA1 of downloaded file is correct.

I am not using a proxy, but my env_vars are set and empty (Standard on debian??)

jupp@jupp-laptop-e530:~/entwicklung/software/elastic/5.4.0/logstash-5.4.0$ env | grep proxy
https_proxy=
http_proxy=
ftp_proxy=

Greetz

jupp

Ok,

when i unset my env_vars "http_proxy, https_proxy" i works.

Is this a bug? With Logstash 5.3.1 i have no problems.

Maybe this change affects me:

Logstash 5.4.0 Release-Notes

...

  • Logstash’s plugin manager now works when an HTTP proxy is used (Issue 6619, Issue 6528).
    ....

As a workaround I recommend unsetting these variables.

Can you file a bug on https://github.com/elastic/logstash/ about the problem you see when http_proxy is empty?

Hi Jordan,

I opened a issue. Here is the Link:

Greetz

jupp

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.