pilhuhn / hawkfx

Hawkular explorer written in (J)Ruby with a JavaFX frontend.
Apache License 2.0
14 stars 10 forks source link

Error when cliking File -> Events/Alerts #16

Closed Fryguy closed 8 years ago

Fryguy commented 8 years ago

Using Metrics Only, and clicking on Events/Alerts, I get the following backtrace in the log. The UI doesn't complain or fail, but the menu item should probably be greyed out.

Exception in thread "JavaFX Application Thread" org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `alerts' for nil:NilClass
    at RUBY.alerts(/Users/jfrey/projects/external/hawkfx/lib/hawk.rb:18)
    at RUBY.display_items(/Users/jfrey/projects/external/hawkfx/lib/alert_controller.rb:52)
    at RUBY.update_time_range(/Users/jfrey/projects/external/hawkfx/lib/alert_controller.rb:38)
    at org.jruby.RubyMethod.call(org/jruby/RubyMethod.java:115)
    at RUBY.call_back(/Users/jfrey/projects/external/hawkfx/lib/time_picker.rb:47)
    at RUBY.initialize(/Users/jfrey/projects/external/hawkfx/lib/time_picker.rb:16)
    at RUBY.finish_initialization(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-1.1.1-java/lib/jrubyfx/controller.rb:271)
    at RUBY.initialize_controller(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-1.1.1-java/lib/jrubyfx/controller.rb:244)
    at RUBY.new(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-1.1.1-java/lib/jrubyfx/controller.rb:154)
    at Users.jfrey.$_dot_gem.jruby.$2_dot_3_dot_0.gems.jrubyfx_minus_1_dot_1_dot_1_minus_java.lib.jrubyfx.module.build(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-1.1.1-java/lib/jrubyfx/module.rb:92)
    at RUBY.method_missing(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-1.1.1-java/lib/jrubyfx/dsl.rb:108)
    at RUBY.initialize(/Users/jfrey/projects/external/hawkfx/lib/alert_controller.rb:14)
    at RUBY.finish_initialization(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-1.1.1-java/lib/jrubyfx/controller.rb:271)
    at RUBY.load_into(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-1.1.1-java/lib/jrubyfx/controller.rb:136)
    at RUBY.show_alerts(/Users/jfrey/projects/external/hawkfx/lib/hawk_main_controller.rb:65)
    at RUBY.handle(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-fxmlloader-0.4.1-java/lib/fxmlloader/elts.rb:521)
Fryguy commented 8 years ago

Probably related, so I'm tucking it under this issue as well, but I see a similar error when clicking "Reload Feeds"

Exception in thread "JavaFX Application Thread" org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `inventory' for nil:NilClass
    at RUBY.inventory(/Users/jfrey/projects/external/hawkfx/lib/hawk.rb:14)
    at RUBY.show_initial_tree_with_feeds(/Users/jfrey/projects/external/hawkfx/lib/hawk_main_controller.rb:45)
    at RUBY.reload_feeds(/Users/jfrey/projects/external/hawkfx/lib/hawk_main_controller.rb:122)
    at RUBY.handle(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-fxmlloader-0.4.1-java/lib/fxmlloader/elts.rb:521)
pilhuhn commented 8 years ago

They should both not be present/enabled for metrics-only mode.

On 3 Aug 2016, at 19:23, Jason Frey wrote:

Probably related, so I'm tucking it under this issue as well, but I see a similar error when clicking "Reload Feeds"

Exception in thread "JavaFX Application Thread" 
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method 
`inventory' for nil:NilClass
  at 
RUBY.inventory(/Users/jfrey/projects/external/hawkfx/lib/hawk.rb:14)
  at 
RUBY.show_initial_tree_with_feeds(/Users/jfrey/projects/external/hawkfx/lib/hawk_main_controller.rb:45)
  at 
RUBY.reload_feeds(/Users/jfrey/projects/external/hawkfx/lib/hawk_main_controller.rb:122)
  at 
RUBY.handle(/Users/jfrey/.gem/jruby/2.3.0/gems/jrubyfx-fxmlloader-0.4.1-java/lib/fxmlloader/elts.rb:521)

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/pilhuhn/hawkfx/issues/16#issuecomment-237293180

hwr@pilhuhn.de m:0179/207 4919 b:http://pilhuhn.blogspot.com