# Terminates immediately after starting

**URL:** https://discuss.elastic.co/t/terminates-immediately-after-starting/44994
**Category:** Logstash
**Created:** [March 21, 2016, 1:32pm UTC](https://discuss.elastic.co/t/terminates-immediately-after-starting/44994 "2016-03-21T13:32:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![PascalR](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@PascalR](https://discuss.elastic.co/u/PascalR)
#### Post date: [March 21, 2016, 1:32pm UTC](https://discuss.elastic.co/t/terminates-immediately-after-starting/44994/1 "2016-03-21T13:32:12Z")

</div>

Hello,  
I tried to install logstash and read the guide. I've created the example .conf - file and started logstash with the command 'logstash -f simple.conf'

An error window popped up and said that Jruby launcher has stopped working and the console said:

terminate called after throwing an instance of 'std::logic\_error'  
what(): basic\_string::\_S\_construct null not valid

This application has requested the Runtime to terminate it in an unusual way.  
Please contact the apllication's support team for more information.

I've installed the latest java version 1.8.0\_73.

---

<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: [March 21, 2016, 10:06pm UTC](https://discuss.elastic.co/t/terminates-immediately-after-starting/44994/2 "2016-03-21T22:06:25Z")

</div>

What OS? What version of LS? Can you paste the entire shell/CLI call you are making, and the response.

---

<div class="post-metadata">

### Author: ![PascalR](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@PascalR](https://discuss.elastic.co/u/PascalR)
#### Post date: [March 22, 2016, 10:01am UTC](https://discuss.elastic.co/t/terminates-immediately-after-starting/44994/3 "2016-03-22T10:01:38Z")

</div>

Thanks for replying!

OS: Windows 7 Professional SP1  
Logstash: Package Logstash-all-plugins-2.2.0

Created a .conf file with:

> input { stdin { } }  
> output {  
> elasticsearch { hosts =\> ["localhost:9200"] }  
> stdout { codec =\> rubydebug }  
> }

Tried these commands:

> bin/logstash -f logstash-simple.conf

> cd logstash-{logstash\_version}  
> bin/logstash -e 'input { stdin { } } output { stdout {} }'

Response:  
(Yesterday)

> terminate called after throwing an instance of 'std::logic\_error'  
> what(): basic\_string::\_S\_construct null not valid

(Today)  
I tried it again with the config file and it seems to work. Message:

> io/console not supported; tty will not be manipulated  
> Settings: Default pipeline workers: 2  
> Logstash startup completed

What could've caused the error?

---

<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: [July 6, 2017, 5:05am UTC](https://discuss.elastic.co/t/terminates-immediately-after-starting/44994/4 "2017-07-06T05:05:56Z")

</div>


