# EMPTY\_BYTE\_ARRAY error for for log4j configuration file after update

**URL:** <https://discuss.elastic.co/t/empty-byte-array-error-for-for-log4j-configuration-file-after-update/302560>\
**Category:** Elasticsearch\
**Created:** [April 16, 2022, 7:40pm UTC](https://discuss.elastic.co/t/empty-byte-array-error-for-for-log4j-configuration-file-after-update/302560 "2022-04-16T19:40:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roman-tasi](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@roman-tasi](https://discuss.elastic.co/u/roman-tasi)\
**Post date:** [April 16, 2022, 7:40pm UTC](https://discuss.elastic.co/t/empty-byte-array-error-for-for-log4j-configuration-file-after-update/302560/1 "2022-04-16T19:40:36Z")

</div>

I just did a full system update for my Linux machine and now have this error when trying to start the Elasticsearch service:

```auto
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: Exception in thread "main" java.lang.NoSuchFieldError: EMPTY_BYTE_ARRAY
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.apache.logging.log4j.core.config.ConfigurationSource.<clinit>(ConfigurationSource.java:56) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.apache.logging.log4j.core.config.builder.impl.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:188) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.apache.logging.log4j.core.config.builder.impl.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:180) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.apache.logging.log4j.core.config.builder.impl.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:69) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.elasticsearch.common.logging.LogConfigurator.configureStatusLogger(LogConfigurator.java:251) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.elasticsearch.common.logging.LogConfigurator.configureWithoutConfig(LogConfigurator.java:95) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.elasticsearch.cli.CommandLoggingConfigurator.configureLoggingWithoutConfig(CommandLoggingConfigurator.java:29) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.elasticsearch.cli.Command.main(Command.java:74) 
Apr 14 09:58:38 ELK-Stack.uhtasi.local systemd-entrypoint[16746]: at org.elasticsearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:33)

```

So how can I fix this?

---

<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:** [May 14, 2022, 7:40pm UTC](https://discuss.elastic.co/t/empty-byte-array-error-for-for-log4j-configuration-file-after-update/302560/2 "2022-05-14T19:40:56Z")

</div>

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