{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/3104","labels_url":"https://api.github.com/repos/elastic/logstash/issues/3104/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/3104/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/3104/events","html_url":"https://github.com/elastic/logstash/issues/3104","id":70697268,"number":3104,"title":"[1.5.0RC3] failing on windows","user":{"login":"peepa","id":4662976,"avatar_url":"https://avatars.githubusercontent.com/u/4662976?v=3","gravatar_id":"","url":"https://api.github.com/users/peepa","html_url":"https://github.com/peepa","followers_url":"https://api.github.com/users/peepa/followers","following_url":"https://api.github.com/users/peepa/following{/other_user}","gists_url":"https://api.github.com/users/peepa/gists{/gist_id}","starred_url":"https://api.github.com/users/peepa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peepa/subscriptions","organizations_url":"https://api.github.com/users/peepa/orgs","repos_url":"https://api.github.com/users/peepa/repos","events_url":"https://api.github.com/users/peepa/events{/privacy}","received_events_url":"https://api.github.com/users/peepa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/windows","name":"windows","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/elastic/logstash/milestones/2","html_url":"https://github.com/elastic/logstash/milestones/v1.5.0","labels_url":"https://api.github.com/repos/elastic/logstash/milestones/2/labels","id":624113,"number":2,"title":"v1.5.0","description":"","creator":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":301,"state":"open","created_at":"2014-04-08T16:53:38Z","updated_at":"2015-04-24T14:00:48Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-24T13:55:44Z","updated_at":"2015-04-24T15:55:41Z","closed_at":null,"body":"Hi, I have downloaded the 1.5.0 RC3 from here: \r\nhttps://www.elastic.co/downloads/logstash\r\nunzipped and run through logstash.bat agent -f c:\\apps\\logstash\\conf --debug\r\n\r\nI'm getting this error:\r\nNameError: uninitialized constant LogStash::Environment::Gem\r\n  const_missing at org/jruby/RubyModule.java:2726\r\n       windows? at c:/apps/logstash/lib/logstash/environment.rb:98\r\n         (root) at c:/apps/logstash/lib/logstash/patches/bugfix_jruby_2558.rb:3\r\n        require at org/jruby/RubyKernel.java:1071\r\n         (root) at c:/apps/logstash/lib/logstash/patches.rb:1\r\n        require at org/jruby/RubyKernel.java:1071\r\n         (root) at c:/apps/logstash/lib/logstash/patches.rb:1\r\n        require at org/jruby/RubyKernel.java:1071\r\n         (root) at c:/apps/logstash/lib/logstash/environment.rb:1\r\n        require at org/jruby/RubyKernel.java:1071\r\n         (root) at c:\\apps\\logstash\\lib\\logstash\\runner.rb:9\r\n\r\nI'm not a ruby skilled, but from what I found, the Gem class should be part of ruby itself, but it seems the code does not see it (maybe jruby compat issue?). \r\n\r\nrunning this on Windows 2012R2.\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/95975954","html_url":"https://github.com/elastic/logstash/issues/3104#issuecomment-95975954","issue_url":"https://api.github.com/repos/elastic/logstash/issues/3104","id":95975954,"user":{"login":"jsvd","id":31809,"avatar_url":"https://avatars.githubusercontent.com/u/31809?v=3","gravatar_id":"","url":"https://api.github.com/users/jsvd","html_url":"https://github.com/jsvd","followers_url":"https://api.github.com/users/jsvd/followers","following_url":"https://api.github.com/users/jsvd/following{/other_user}","gists_url":"https://api.github.com/users/jsvd/gists{/gist_id}","starred_url":"https://api.github.com/users/jsvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsvd/subscriptions","organizations_url":"https://api.github.com/users/jsvd/orgs","repos_url":"https://api.github.com/users/jsvd/repos","events_url":"https://api.github.com/users/jsvd/events{/privacy}","received_events_url":"https://api.github.com/users/jsvd/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T15:55:41Z","updated_at":"2015-04-24T15:55:41Z","body":"```\r\nC:\\logstash-1.5.0-rc3>bin\\logstash.bat agent -f c:\\logstash-1.5.0-rc3\\confi --debug\r\nio/console not supported; tty will not be manipulated\r\n?[36mReading config file {:file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/agent.rb\", :level=>:debug, :line=>\"\r\n326\", :method=>\"local_config\"}?[0m\r\n?[36mCompiled pipeline code:\r\n        @inputs = []\r\n        @filters = []\r\n        @outputs = []\r\n        @periodic_flushers = []\r\n        @shutdown_flushers = []\r\n\r\n          @input_generator_1 = plugin(\"input\", \"generator\", LogStash::Util.hash_merge_many({ \"count\" => 1 }))\r\n\r\n          @inputs << @input_generator_1\r\n\r\n          @output_stdout_2 = plugin(\"output\", \"stdout\", LogStash::Util.hash_merge_many({ \"codec\" => (\"rubydebug\") }))\r\n\r\n          @outputs << @output_stdout_2\r\n\r\n  def filter_func(event)\r\n    events = [event]\r\n    @logger.debug? && @logger.debug(\"filter received\", :event => event.to_hash)\r\n    events\r\n  end\r\n  def output_func(event)\r\n    @logger.debug? && @logger.debug(\"output received\", :event => event.to_hash)\r\n    @output_stdout_2.handle(event)\r\n\r\n  end {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/pipeline.rb\", :line=>\"28\", :method=>\"initialize\"}?[0m?[36mPlugin not defined in namespace, checking for plugin file {:type=>\"input\", :name=>\"generator\", :path=>\"logstash/inputs/generator\", :level=>:debug, :file=>\" /logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/plugin.rb\", :line=>\"133\", :method=>\"lookup\"}?[0m?[32mUsing version 0.1.x input plugin 'generator'. This plugin isn't well supported by the community and likely has no maintainer. {:level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"223\", :method=>\"print_version_notice\"}?[0m?[36mPlugin not defined in namespace, checking for plugin file {:type=>\"codec\",:name=>\"plain\", :path=>\"logstash/codecs/plain\", :level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/plugin.rb\", :line=>\"133\", :method=>\"lookup\"}?[0m?[32mUsing version 0.1.x codec plugin 'plain'. This plugin isn't well supportedby the community and likely has no maintainer. {:level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"223\", :method=>\"print_version_notice\"}?[0m?[36mconfig LogStash::Codecs::Plain/@charset = \"UTF-8\" {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Inputs::Generator/@count = 1 {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Inputs::Generator/@debug = false {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Inputs::Generator/@codec = <LogStash::Codecs::Plain charset=>\"UTF-8\"> {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\",:method=>\"config_init\"}?[0m?[36mconfig LogStash::Inputs::Generator/@add_field = {} {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Inputs::Generator/@threads = 1 {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Inputs::Generator/@message = \"Hello world!\" {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0. rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mPlugin not defined in namespace, checking for plugin file {:type=>\"output\",:name=>\"stdout\", :path=>\"logstash/outputs/stdout\", :level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/plugin.rb\", :line=>\"133\", :method=>\"lookup\"}?[0m?[32mUsing version 0.1.x output plugin 'stdout'. This plugin isn't well supported by the community and likely has no maintainer. {:level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"223\", :method=>\"print_version_notice\"}?[0m?[36mPlugin not defined in namespace, checking for plugin file {:type=>\"codec\",:name=>\"rubydebug\", :path=>\"logstash/codecs/rubydebug\", :level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/plugin.rb\", :line=>\"133\", :method=>\"lookup\"}?[0m?[32mUsing version 0.1.x codec plugin 'rubydebug'. This plugin isn't well supported by the community and likely has no maintainer. {:level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"223\", :method=>\"print_version_notice\"}?[0m?[36mconfig LogStash::Codecs::RubyDebug/@metadata = false {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Outputs::Stdout/@codec = <LogStash::Codecs::RubyDebug > {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Outputs::Stdout/@type = \"\" {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Outputs::Stdout/@tags = [] {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Outputs::Stdout/@exclude_tags = [] {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[36mconfig LogStash::Outputs::Stdout/@workers = 1 {:level=>:debug, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/config/mixin.rb\", :line=>\"112\", :method=>\"config_init\"}?[0m?[32mPipeline started {:level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/pipeline.rb\", :line=>\"86\", :method=>\"run\"}?[0m\r\nLogstash startup completed\r\n?[32mPlugin is finished {:plugin=><LogStash::Inputs::Generator message=>\"Hello world!\">, :level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/plugin.rb\", :line=>\"61\", :method=>\"finished\"}?[0m?[36moutput received {:event=>{\"message\"=>\"Hello world!\", \"@version\"=>\"1\", \"@timestamp\"=>\"2015-04-24T15:49:17.181Z\", \"host\"=>\"Jsvd-VAIO\", \"sequence\"=>0}, :level=>:debug, :file=>\"(eval)\", :line=>\"21\", :method=>\"output_func\"}?[0m\r\n{\r\n       \"message\" => \"Hello world!\",\r\n      \"@version\" => \"1\",\r\n    \"@timestamp\" => \"2015-04-24T15:49:17.181Z\",\r\n          \"host\" => \"Jsvd-VAIO\",\r\n      \"sequence\" => 0\r\n}\r\n?[32mPlugin is finished {:plugin=><LogStash::Outputs::Stdout >, :level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/plugin.rb\", :line=>\"61\", :method=>\"finished\"}?[0m?[32mPipeline shutdown complete. {:level=>:info, :file=>\"/logstash-1.5.0-rc3/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0.rc3-java/lib/logstash/pipeline.rb\", :line=>\"100\", :method=>\"run\"}?[0mLogstash shutdown completed\r\n\r\nC:\\logstash-1.5.0-rc3>type c:\\logstash-1.5.0-rc3\\confi\r\ninput {\r\n  generator { count => 1 }\r\n}\r\noutput {\r\n  stdout { codec => rubydebug }\r\n}\r\n\r\nC:\\logstash-1.5.0-rc3>\r\n```"}}