org.jruby.exceptions.RaiseException: (NameError) method 'to_yaml' not defined in Object

JIRA | Clay Cooper | 3 years ago
  1. 0

    $ cd /tmp/logstash test $ java -jar logstash-1.3.3-flatjar.jar agent -f hello.conf 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:2340) at RUBY.(eval)(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:47) at org.jruby.RubyModule.module_eval(org/jruby/RubyModule.java:2312) at RUBY.yamler=(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:43) at RUBY.(root)(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:82) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) at RUBY.(root)(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) at RUBY.require(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at RUBY.require(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/logstash/JRUBY-6970.rb:27) at RUBY.(root)(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/backend/base.rb:1) at RUBY.(root)(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/backend/simple.rb:1) at RUBY.Implementation(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/backend/simple.rb:21) at RUBY.Simple(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/backend/simple.rb:20) at RUBY.Backend(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/backend/simple.rb:17) at RUBY.I18n(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/backend/simple.rb:2) at RUBY.(root)(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/backend/simple.rb:1) at RUBY.(root)(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/config.rb:1) at RUBY.backend(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n/config.rb:17) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) at RUBY.translate(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/i18n.rb:146) at RUBY.Agent(file:/private/tmp/logstash test/logstash-1.3.3-flatjar.jar!/logstash/agent.rb:7) at logstash.runner.run(logstash/runner.rb:185) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at logstash.runner.run(logstash/runner.rb:207) at logstash.runner.main(logstash/runner.rb:79) at logstash.runner.(root)(logstash/runner.rb:237) $ cd /tmp/logstash $ java -jar logstash-1.3.3-flatjar.jar agent -f hello.conf test { "message" => "test", "@version" => "1", "@timestamp" => "2014-03-13T17:24:47.776Z", "type" => "human", "host" => "XXXXXX" } ^CInterrupt received. Shutting down the pipeline. {:level=>:warn}

    JIRA | 3 years ago | Clay Cooper
    org.jruby.exceptions.RaiseException: (NameError) method 'to_yaml' not defined in Object
  2. 0

    I wanted to try out logstash on my Windows Seven machine starting from the "10-minute Tutorial" using {{logstash-1.2.2-flatjar.jar}}: {code} 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) {code} My java version: {code} 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) {code} Thanks!

    JIRA | 3 years ago | Project Hate
    org.jruby.exceptions.RaiseException: (NameError) method 'to_yaml' not defined in Object
  3. 0

    First creation of SortedSet is not thread-safe, sometimes causing load errors in Celluloid

    GitHub | 3 years ago | Burgestrand
    org.jruby.exceptions.RaiseException: (NameError) method 'old_init' not defined in SortedSet
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 30#107999087

    GitHub | 2 years ago | julianooi
    org.jruby.embed.EvalFailedException: (NameError) undefined local variable or method `assetFilePath' for main:Object
  6. 0

    Registering java extensions fails because java_import syntax

    GitHub | 2 years ago | ktoso
    org.jruby.exceptions.RaiseException: (NameError) undefined local variable or method `pl' for main:Object at RUBY.(root)(<script>:1)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jruby.exceptions.RaiseException

      (NameError) method 'to_yaml' not defined in Object

      at org.jruby.RubyModule.remove_method()
    2. JRuby Main Maven Artifact
      RubyModule.remove_method
      1. org.jruby.RubyModule.remove_method(org/jruby/RubyModule.java:2340)
      1 frame
    3. Unknown
      RUBY.<init>
      1. RUBY.<init>(eval)
      1 frame
    4. JRuby Main Maven Artifact
      RubyModule.module_eval
      1. org.jruby.RubyModule.module_eval(org/jruby/RubyModule.java:2312)
      1 frame