# Logstash 7.2.0 in Windows returns java.lang.IllegalStateException (GemspecError) error

**URL:** <https://discuss.elastic.co/t/logstash-7-2-0-in-windows-returns-java-lang-illegalstateexception-gemspecerror-error/188142>\
**Category:** Logstash\
**Created:** [June 29, 2019, 3:17pm UTC](https://discuss.elastic.co/t/logstash-7-2-0-in-windows-returns-java-lang-illegalstateexception-gemspecerror-error/188142 "2019-06-29T15:17:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pappu](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@pappu](https://discuss.elastic.co/u/pappu)\
**Post date:** [June 29, 2019, 3:17pm UTC](https://discuss.elastic.co/t/logstash-7-2-0-in-windows-returns-java-lang-illegalstateexception-gemspecerror-error/188142/1 "2019-06-29T15:17:28Z")

</div>

I installed logstash 7.2.0 on windows server, by copying .zip file and extracting binaries. When I run the following simple test as suggested in one of the documentation, I see the following.

C:\monitoring\logstash-7.2.0\logstash-7.2.0\bin\>logstash -e 'input { stdin { } } output { stdout {} }'  
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
WARNING: An illegal reflective access operation has occurred  
WARNING: Illegal reflective access by org.jruby.runtime.encoding.EncodingService (file:/C:/monitoring/logstash-7.2.0/logstash-7.2.0/logstash-core/lib/jars/jruby-complete-9.2.7.0.jar) to field java.io.Console.cs  
WARNING: Please consider reporting this to the maintainers of org.jruby.runtime.encoding.EncodingService  
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations  
WARNING: All illegal access operations will be denied in a future release  
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:54: warning: It seems your ruby installation is missing psych (for YAML output).  
To eliminate this warning, please install libyaml and reinstall your ruby.  
[ERROR] 2019-06-29 14:12:32.399 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (GemspecError)  
[!] There was an error while loading `logstash-core-plugin-api.gemspec`: load error: psych -- java.lang.NoSuchMethodError: org.yaml.snakeyaml.error.Mark.(Ljava/lang/String;III[II)V  
Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.

I have the following Java version installed:  
C:\monitoring\logstash-7.2.0\logstash-7.2.0\bin\>java -version  
openjdk version "12.0.1" 2019-04-16  
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.1+12)  
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.1+12, mixed mode, sharing)

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [July 1, 2019, 8:11am UTC](https://discuss.elastic.co/t/logstash-7-2-0-in-windows-returns-java-lang-illegalstateexception-gemspecerror-error/188142/2 "2019-07-01T08:11:39Z")

</div>

1. Logstash is untested on Java 12; we test on Java 11 and Java 1.8 (both LTS releases).
2. Can you add `--log.level debug` to your command line? Doing so _typically_ adds more context to failures.
3. Did you get your Logstash from the official [elastic.co](http://elastic.co) website, or was it bootstrapped/packaged from sources/github?

---

<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 29, 2019, 8:11am UTC](https://discuss.elastic.co/t/logstash-7-2-0-in-windows-returns-java-lang-illegalstateexception-gemspecerror-error/188142/3 "2019-07-29T08:11:42Z")

</div>

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