Skip to content

Instantly share code, notes, and snippets.

View stubotnik's full-sized avatar

Stu Gray stubotnik

  • Dublin, Ireland
View GitHub Profile
@stubotnik
stubotnik / gist:3904867
Created October 17, 2012 10:29
(NameError) uninitialized constant TorqueBox::Messaging::ProcessorWrapper
11:27:12,854 ERROR [org.torquebox.messaging] (Thread-0 (HornetQ-client-global-threads-22141386))
Unexpected error in /queues/metrics/script_timing.ScriptTimingMsgProcessor: org.jruby.exceptions.RaiseException: (NameError) uninitialized constant TorqueBox::Messaging::ProcessorWrapper
at org.jruby.RubyModule.const_missing(org/jruby/RubyModule.java:2642) [jruby.jar:]
at Module.const_missing(C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36)
@stubotnik
stubotnik / gist:3904894
Created October 17, 2012 10:37
HttpRouter::DoubleCompileError
11:34:39,868 ERROR [stderr] (http--127.0.0.1-8080-1) HttpRouter::DoubleCompileError - HttpRouter::DoubleCompileError:
11:34:39,868 ERROR [stderr] (http--127.0.0.1-8080-1) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/http_router-0.10.2/lib/http_router/route.rb:243:in `add_path_to_tree'
11:34:39,869 ERROR [stderr] (http--127.0.0.1-8080-1) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/http_router-0.10.2/lib/http_router/route.rb:47:in `to'
11:34:39,870 ERROR [stderr] (http--127.0.0.1-8080-1) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/padrino-core-0.10.7/lib/padrino-core/application/routing.rb:409:in `compiled_router'
11:34:39,870 ERROR [stderr] (http--127.0.0.1-8080-1) org/jruby/RubyArray.java:1615:in `each'
11:34:39,871 ERROR [stderr] (http--127.0.0.1-8080-1) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/padrino-core-0.10.7/lib/padrino-core/application/routing.rb:409:in `compiled_router'
11:34:39,871 ERROR [stderr] (http--127.0.0.1-8080-1) org/jruby/RubyHash.java:1186:in `each'
11:34:39,872 ERROR [stderr] (http--1
class App < Padrino::Application
#...
configure :production do
error ::Exception do
Padrino.logger.error "Catching #{env['sinatra.error'].class}."
# some logging...
erb :'errors/500'
end
end
end
10:34:20,303 ERROR [stderr] (ajp-127.0.0.1/127.0.0.1:8009-4) C:/dev/repos/hermes/vendor/bundle/jruby/1.9/gems/torquebox-messaging-2.1.0-java/lib/torquebox-messaging.rb:2 warning: already initialized constant VERSION
10:34:20,303 ERROR [stderr] (ajp-127.0.0.1/127.0.0.1:8009-4) C:/dev/repos/hermes/vendor/bundle/jruby/1.9/gems/torquebox-messaging-2.1.0-java/lib/torquebox-messaging.rb:3 warning: already initialized constant MAVEN_VERSION
10:34:20,412 ERROR [stderr] (ajp-127.0.0.1/127.0.0.1:8009-4) C:/dev/repos/hermes/vendor/bundle/jruby/1.9/gems/torquebox-core-2.1.0-java/lib/torquebox/registry.rb:22 warning: already initialized constant MUTEX
10:34:20,443 ERROR [stderr] (ajp-127.0.0.1/127.0.0.1:8009-4) C:/dev/repos/hermes/vendor/bundle/jruby/1.9/gems/torquebox-messaging-2.1.0-java/lib/torquebox/messaging/session.rb:23 warning: already initialized constant AUTO_ACK
10:34:20,443 ERROR [stderr] (ajp-127.0.0.1/127.0.0.1:8009-4) C:/dev/repos/hermes/vendor/bundle/jruby/1.9/gems/torquebox-messaging-2.1.0-java/lib/torque
13:57:08,729 INFO [org.torquebox.core.runtime] (MSC service thread 1-7) Created ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: global) in 2.1s
13:57:25,383 INFO [org.torquebox.core.runtime] (Thread-107) Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: instaploy, context: web) in 1.88s
13:57:45,223 INFO [org.torquebox.core.runtime] (Thread-108) Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: instaploy, context: web) in 1.33s
13:58:00,606 INFO [org.torquebox.core.runtime] (Thread-110) Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: instaploy, context: web) in 1.61s
13:58:15,368 INFO [org.torquebox.core.runtime] (Thread-111) Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: instaploy, context: web) in 1.26s
13:59:25,562 INFO [org.torquebox.core.runtime] (Thread-112) Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: instaploy, context: web) in 1.27s
14:01:20,707 INFO [org.torquebox.core.run
15:17:52,834 ERROR [stderr] (Finalizer) NoMethodError - undefined method `publish' for nil:NilClass:
15:17:52,834 ERROR [stderr] (Finalizer) C:\Users\sgray\Dropbox\ruby\bar_live_betting\livebet\config.ru:22:in `POST /live_push'
15:17:52,834 ERROR [stderr] (Finalizer) org/jruby/RubyMethod.java:117:in `call'
15:17:52,835 ERROR [stderr] (Finalizer) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `compile!'
15:17:52,835 ERROR [stderr] (Finalizer) org/jruby/RubyProc.java:258:in `call'
15:17:52,835 ERROR [stderr] (Finalizer) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `route!'
15:17:52,836 ERROR [stderr] (Finalizer) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:in `route_eval'
15:17:52,836 ERROR [stderr] (Finalizer) C:/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `route!'
15:17:52,836 ERROR [stderr] (Finalizer) C:/jrub
error do
begin
# save error to DB
rescue => ex
mail_from = settings.email_settings[:default_sender]
mail_to = settings.email_settings[:errors_recipient]
map('/') {run API::Base}
map('/clients') {run API::Clients}
map('/tech') {run API::Tech}
load_paths = [
'../this/**/*.rb',
'../that/**/*.rb',
'../other/**/*.rb'
]
load_paths.each do |path|
path = File.join(File.dirname(__FILE__), path)
Dir[path].each do |file|
@stubotnik
stubotnik / gist:4344106
Created December 20, 2012 09:24
curl - http headers + request time
curl -I -w "%{time_total}" www.example.com