Exception with blanks in path (for 10-minutes-tutorial on Win)

Description

I wanted to try out logstash on my Windows Seven machine starting from the "10-minute Tutorial" using logstash-1.2.2-flatjar.jar:

C:\>"C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar logstash-1.2.2-flatjar.jar agent Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (NameError) method 'to_yaml' not defined in Object at org.jruby.RubyModule.remove_method(org/jruby/RubyModule.java:2338) at RUBY.(eval)(file:/C:/logstash-1.2.2-flatjar.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:47) at org.jruby.RubyModule.module_eval(org/jruby/RubyModule.java:2310) at RUBY.yamler=(file:/C:/logstash-1.2.2-flatjar.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:43) at RUBY.(root)(file:/C:/logstash-1.2.2-flatjar.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:82) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082) at RUBY.(root)(file:/C:/logstash-1.2.2-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) at RUBY.require(file:/C:/logstash-1.2.2-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53) at RUBY.require(file:/C:/logstash-1.2.2-flatjar.jar!/logstash/JRUBY-6970.rb:22) at RUBY.(root)(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/backend/base.rb:1) at RUBY.(root)(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/backend/simple.rb:1) at RUBY.Implementation(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/backend/simple.rb:21) at RUBY.Simple(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/backend/simple.rb:20) at RUBY.Backend(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/backend/simple.rb:17) at RUBY.I18n(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/backend/simple.rb:2) at RUBY.(root)(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/backend/simple.rb:1) at RUBY.(root)(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/config.rb:1) at RUBY.backend(file:/C:/logstash-1.2.2-flatjar.jar!/i18n/config.rb:16) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082) at RUBY.translate(file:/C:/logstash-1.2.2-flatjar.jar!/i18n.rb:146) at RUBY.Agent(file:/C:/logstash-1.2.2-flatjar.jar!/logstash/agent.rb:6) at logstash.runner.run(logstash/runner.rb:180) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at logstash.runner.run(logstash/runner.rb:200) at logstash.runner.main(logstash/runner.rb:74) at logstash.runner.(root)(logstash/runner.rb:230)

My java version:

java version "1.7.0_15" Java(TM) SE Runtime Environment (build 1.7.0_15-b03) Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

Thanks!

Gliffy Diagrams

Activity

Show:

Srdjan Prodanovic May 8, 2014 at 12:20 PM

Registered here just to say the same thing. Move the logstash_deploy dir to the path without spaces in it.

November 11, 2013 at 11:23 AM

Hi,

I experienced the same problem and I tracked it down to a path with spaces. Move the logstash JAR to a folder with no spaces like C:\logstash and try again and it should work.

Philippe Weber October 31, 2013 at 12:35 PM

I have also Win7, but I cannot reproduced with

  • jre7 1.7.0.25 (my current one)

  • jre7 1.7.0.45 (updated to lastest)

  • jdk1.7.0.9/jre/bin

  • jdk1.7.0.9/bin

No report of a similar recent issue on JRuby side.

Could you try to update your JRE and re-test ?

Cannot Reproduce

Details

Assignee

Reporter

Labels

Affects versions

Created October 30, 2013 at 5:34 PM
Updated May 9, 2014 at 4:51 AM
Resolved April 11, 2014 at 7:22 AM