You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
I am seeing an issue where Trinidad fails to startup because of a problem being raised in the scheduler extension which makes no sense to me. Below is the full log with backtrace of the error. And below that is the code for the scheduled job that is giving rise to the error.
2012-04-02 15:56:47 INFO: Set JAAS app name Tomcat
2012-04-02 15:56:47 INFO: Info: received max runtimes = 1
2012-04-02 15:56:47 INFO: jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK Server VM 1.6.0_20) [linux-i386-java]
2012-04-02 15:57:52 INFO: Info: received min runtimes = 1
2012-04-02 15:57:52 INFO: Info: received max runtimes = 1
2012-04-02 15:57:52 INFO: An exception happened during JRuby-Rack startup
can't convert nil into Hash
--- System
jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK Server VM 1.6.0_20) [linux-i386-java]
Time: 2012-04-02 11:57:52 -0400
Server: Apache Tomcat/7.0.23
jruby.home: /usr/local/jruby
--- Context Init Parameters:
jruby.compat.version = 1.9.2
jruby.initial.runtimes = 1
jruby.max.runtimes = 1
jruby.min.runtimes = 1
public.root = /public
rails.env = production
rails.root = /
--- Backtrace
TrinidadScheduler::ScheduledJob::JobError: can't convert nil into Hash
included at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/trinidad_scheduler_extension-0.1.2/lib/trinidad_scheduler_extension/app_job.rb:9
include at org/jruby/RubyModule.java:2118
__send__ at org/jruby/RubyBasicObject.java:1704
send at org/jruby/RubyKernel.java:2101
inherited at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/trinidad_scheduler_extension-0.1.2/lib/trinidad_scheduler_extension/app_job.rb:64
(root) at /var/apps/rails/refnet-admin/releases/20120402154700/app/jobs/cleanup_schedule.rb:3
require at org/jruby/RubyKernel.java:1042
require at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240
load_dependency at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:225
require at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240
require_or_load at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:348
depend_on at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:302
require_dependency at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:214
eager_load! at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/engine.rb:417
each at org/jruby/RubyArray.java:1615
eager_load! at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/engine.rb:416
each at org/jruby/RubyArray.java:1615
eager_load_b_ at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/engine.rb:414
Finisher at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/application/finisher.rb:51
instance_exec at org/jruby/RubyBasicObject.java:1757
run at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/initializable.rb:30
run_initializers at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/initializable.rb:55
each at org/jruby/RubyArray.java:1615
run_initializers at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/initializable.rb:54
initialize_b_ at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/application.rb:96
__send__ at org/jruby/RubyBasicObject.java:1698
send at org/jruby/RubyKernel.java:2097
method_missing at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30
(root) at /var/apps/rails/refnet-admin/releases/20120402154700/config/environment.rb:5
require at org/jruby/RubyKernel.java:1042
load_environment at file:/var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/jruby-rack-1.1.4/lib/jruby-rack-1.1.4.jar!/jruby/rack/rails.rb:177
load_environment at file:/var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/jruby-rack-1.1.4/lib/jruby-rack-1.1.4.jar!/jruby/rack/rails.rb:191
(root) at /var/apps/rails/refnet-admin/releases/20120402154700/app/jobs/cleanup_schedule.rb:1
create_takeover at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/trinidad-1.3.4/lib/trinidad/lifecycle/lifecycle_listener_host.rb:75
check_monitors at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/trinidad-1.3.4/lib/trinidad/lifecycle/lifecycle_listener_host.rb:48
each at org/jruby/RubyArray.java:1615
check_monitors at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/trinidad-1.3.4/lib/trinidad/lifecycle/lifecycle_listener_host.rb:40
lifecycleEvent at /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9/gems/trinidad-1.3.4/lib/trinidad/lifecycle/lifecycle_listener_host.rb:21
--- RubyGems
Gem.dir: /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9
Gem.path:
/var/apps/rails/refnet-admin/shared/bundle/jruby/1.9
/var/apps/rails/refnet-admin/releases/20120402154700/WEB-INF/gems
Activated gems:
rake-0.9.2.2
multi_json-1.0.4
activesupport-3.1.3
builder-3.0.0
i18n-0.6.0
activemodel-3.1.3
erubis-2.7.0
rack-1.3.6
rack-cache-1.1
rack-mount-0.8.3
rack-test-0.6.1
hike-1.2.1
tilt-1.3.3
sprockets-2.0.3
actionpack-3.1.3
mime-types-1.17.2
polyglot-0.3.3
treetop-1.4.10
mail-2.3.0
actionmailer-3.1.3
bcrypt-ruby-3.0.1-java
orm_adapter-0.0.5
warden-1.1.0
devise-1.5.3
fastercsv-1.5.4
formtastic-1.2.4
has_scope-0.5.1
responders-0.6.4
inherited_resources-1.2.2
rack-ssl-1.3.2
json-1.6.3-java
rdoc-3.12
thor-0.14.6
railties-3.1.3
kaminari-0.13.0
arel-2.2.1
tzinfo-0.3.31
activerecord-3.1.3
polyamorous-0.5.0
meta_search-1.1.1
activeresource-3.1.3
bundler-1.1.3
rails-3.1.3
sass-3.1.12
activeadmin-0.3.4
activerecord-jdbc-adapter-1.2.2
jdbc-postgres-9.1.901
activerecord-jdbcpostgresql-adapter-1.2.2
acts_as_list-0.1.4
xml-simple-1.1.1
aws-s3-0.6.2
bouncy-castle-java-1.5.0146.1
cancan-1.6.7
cocaine-0.2.1
exception_notification-2.5.2
execjs-1.2.13
term-ansicolor-1.0.7
foreman-0.30.1
jruby-openssl-0.7.6.1
jruby-rack-1.1.4
mootools-rails-1.0.1
paperclip-2.4.5
rack-protection-1.2.0
redis-2.2.2
redis-namespace-1.0.3
sinatra-1.3.2
vegas-0.1.11
resque-1.20.0
ruby-mp3info-0.6.16
sass-rails-3.1.5
trinidad_jars-1.0.2
trinidad-1.3.4
trinidad_daemon_extension-0.3.0
trinidad_resque_extension-0.1.1
trinidad_scheduler_extension-0.1.2
uglifier-1.2.0
workflow-0.8.1
zencoder-2.4.0
--- Bundler
Bundler.bundle_path: /var/apps/rails/refnet-admin/shared/bundle/jruby/1.9
Bundler.root: /var/apps/rails/refnet-admin/releases/20120402154700
Gemfile: /var/apps/rails/refnet-admin/releases/20120402154700/Gemfile
Settings:
frozen = 1
path = /var/apps/rails/refnet-admin/shared/bundle
disable_shared_gems = 1
without = development:test
bin_path = /usr/local/src/jruby-1.6.7/lib/ruby/gems/1.8/gems/bundler-1.1.3/bin/bundle
gemfile = /var/apps/rails/refnet-admin/releases/20120402154700/Gemfile
--- JRuby-Rack Config
compat_version = RUBY1_9
filter_adds_html = true
filter_verifies_resource = false
ignore_environment = false
initial_runtimes = 1
jms_connection_factory =
jms_jndi_properties =
logger = org.jruby.rack.logging.ServletContextLogger@85cce9
logger_class_name = servlet_context
logger_name = jruby.rack
maximum_runtimes = 1
num_initializer_threads =
rackup =
rackup_path =
rewindable = true
runtime_arguments =
runtime_timeout_seconds =
serial_initialization = false
servlet_context = org.apache.catalina.core.ApplicationContextFacade@14716c0
2012-04-02 15:57:52 SEVERE: unable to create shared application instance
2012-04-02 15:57:52 SEVERE: Error: application initialization failed
Oddly this issue is only impacting my production environment. Local development is running fine. Both are on JRuby 1.6.7 and using the same Trinidad configuration.
I am seeing an issue where Trinidad fails to startup because of a problem being raised in the scheduler extension which makes no sense to me. Below is the full log with backtrace of the error. And below that is the code for the scheduled job that is giving rise to the error.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: