# Java Msgs in Log

**URL:** https://discuss.elastic.co/t/java-msgs-in-log/287967
**Category:** Elasticsearch
**Created:** [October 29, 2021, 3:10am UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967 "2021-10-29T03:10:34Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)
#### Post date: [October 29, 2021, 3:10am UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/1 "2021-10-29T03:10:34Z")

</div>

Hello all,

I have installed Elasticsearch for the first time and I am seeing msgs that a terminally deprecated method in java.lang.system has been called. Should I be concerned with this, even though it looks like Elasticsearch is started and running?

Thanks,  
Steve

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 29, 2021, 5:03am UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/2 "2021-10-29T05:03:28Z")

</div>

It'd be useful if you could please share what you are seeing 🙂

---

<div class="post-metadata">

### Author: ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)
#### Post date: [October 29, 2021, 5:15pm UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/3 "2021-10-29T17:15:06Z")

</div>

Here you go Mark...attached!

 ![Screenshot 2021-10-29 131431](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4ff6fdca47796d177ee398a59afb9422a3e8269.png)

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 31, 2021, 8:55pm UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/4 "2021-10-31T20:55:49Z")

</div>

Please don't post pictures of text or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

### Author: ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)
#### Post date: [November 3, 2021, 5:47pm UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/5 "2021-11-03T17:47:11Z")

</div>

This is not code....this is a screenshot of the Elasticsearch log. Not sure how you would like me to present this then.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 3, 2021, 7:01pm UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/6 "2021-11-03T19:01:21Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

And please share Elasticsearch logs instead

---

<div class="post-metadata">

### Author: ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)
#### Post date: [November 5, 2021, 5:08pm UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/7 "2021-11-05T17:08:29Z")

</div>

Here it is:

**A terminally deprecated method in java.lang.System has been called**  
**System::setSecurityManager has been called by org.Elasticsearch.bootstrap.Elasticsearch (file: /usr/share/Elasticsearch/lib/Elasticsearch-7.15.1.jar)**  
**Please consider reporting this to the maintainers of org.Elasticsearch.bootstrap.Elasticsearch**  
**System::setSecurityManager will be removed in a future release**

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [November 5, 2021, 5:17pm UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/8 "2021-11-05T17:17:39Z")

</div>

This is nothing to worry about. We need to take action to be compatible with future JDKs but everything is fine today and you can safely ignore this message.

> <https://github.com/elastic/elasticsearch/issues/80344>
>
> I'm running elasticsearch 7.15.1 from a docker-compose setup and get the followi…ng warnings
> 
> \`\`\`
> elasticsearch | WARNING: A terminally deprecated method in java.lang.System has been called
> elasticsearch | WARNING: System::setSecurityManager has been called by org.elasticsearch.bootstrap.Elasticsearch (file:/usr/share/elasticsearch/lib/elasticsearch-7.15.1.jar)
> elasticsearch | WARNING: Please consider reporting this to the maintainers of org.elasticsearch.bootstrap.Elasticsearch
> elasticsearch | WARNING: System::setSecurityManager will be removed in a future release
> (kafka.utils.Log4jControllerRegistration$)
> elasticsearch | WARNING: A terminally deprecated method in java.lang.System has been called
> elasticsearch | WARNING: System::setSecurityManager has been called by org.elasticsearch.bootstrap.Security (file:/usr/share/elasticsearch/lib/elasticsearch-7.15.1.jar)
> elasticsearch | WARNING: Please consider reporting this to the maintainers of org.elasticsearch.bootstrap.Security
> elasticsearch | WARNING: System::setSecurityManager will be removed in a future release
> \`\`\`
> 
> I'm not seeing this with version 7.15.0.
> 
> This was also raised in https://discuss.elastic.co/t/warnings-when-service-starts/286928 but i could not find an issue here on GitHub, as requested.

---

<div class="post-metadata">

### Author: ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)
#### Post date: [November 6, 2021, 2:13am UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/9 "2021-11-06T02:13:16Z")

</div>

Thanks!

---

<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: [December 4, 2021, 2:14am UTC](https://discuss.elastic.co/t/java-msgs-in-log/287967/10 "2021-12-04T02:14:13Z")

</div>

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