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

**URL:** <https://discuss.elastic.co/t/npe-with-ls-5-4-0-logstash-plugin-when-env-vars-http-s--proxy-set-but-empty/84845>\
**Category:** Logstash\
**Created:** [May 7, 2017, 12:28pm UTC](https://discuss.elastic.co/t/npe-with-ls-5-4-0-logstash-plugin-when-env-vars-http-s--proxy-set-but-empty/84845 "2017-05-07T12:28:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jupp](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jupp](https://discuss.elastic.co/u/jupp)\
**Post date:** [May 7, 2017, 12:28pm UTC](https://discuss.elastic.co/t/npe-with-ls-5-4-0-logstash-plugin-when-env-vars-http-s--proxy-set-but-empty/84845/1 "2017-05-07T12:28:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jupp](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jupp](https://discuss.elastic.co/u/jupp)\
**Post date:** [May 7, 2017, 1:01pm UTC](https://discuss.elastic.co/t/npe-with-ls-5-4-0-logstash-plugin-when-env-vars-http-s--proxy-set-but-empty/84845/2 "2017-05-07T13:01:52Z")

</div>

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](https://www.elastic.co/guide/en/logstash/5.4/logstash-5-4-0.html#logstash-5-4-0)

> ...

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

---

<div class="post-metadata">

**Author:** ![jordansissel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jordansissel/32/44957_2.png) [@jordansissel](https://discuss.elastic.co/u/jordansissel)\
**Post date:** [May 7, 2017, 11:44pm UTC](https://discuss.elastic.co/t/npe-with-ls-5-4-0-logstash-plugin-when-env-vars-http-s--proxy-set-but-empty/84845/3 "2017-05-07T23:44:40Z")

</div>

As a workaround I recommend unsetting these variables.

Can you file a bug on [https://github.com/elastic/logstash/](https://github.com/elastic/logstash/) about the problem you see when http\_proxy is empty?

---

<div class="post-metadata">

**Author:** ![jupp](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jupp](https://discuss.elastic.co/u/jupp)\
**Post date:** [May 8, 2017, 1:25pm UTC](https://discuss.elastic.co/t/npe-with-ls-5-4-0-logstash-plugin-when-env-vars-http-s--proxy-set-but-empty/84845/4 "2017-05-08T13:25:06Z")

</div>

Hi Jordan,

I opened a issue. Here is the Link:

> <https://github.com/elastic/logstash/issues/7045>

Greetz

jupp

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 5, 2017, 1:36pm UTC](https://discuss.elastic.co/t/npe-with-ls-5-4-0-logstash-plugin-when-env-vars-http-s--proxy-set-but-empty/84845/5 "2017-06-05T13:36:01Z")

</div>

Closed on June 5, 2017, 1:36pm UTC

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