This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error do | |
begin | |
# save error to DB | |
rescue => ex | |
mail_from = settings.email_settings[:default_sender] | |
mail_to = settings.email_settings[:errors_recipient] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
existing_raf_code = ':-(' # no do-while in Ruby | |
until existing_raf_code.nil? | |
new_client_raf_code = SIASquirrel::SIA::RAFReferrer.generateRAFCode | |
existing_raf_code = SIASquirrel::SIA::RAFReferrer[:rafcode => new_client_raf_code] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.return_code_test | |
return_code = @db.synchronize do |conn| | |
stmnt = conn.prepareCall('{ ? = call dbo.sp_tmp_stu_sequel_test() }') | |
stmnt.registerOutParameter(1, java::sql::Types::INTEGER) | |
stmnt.execute | |
# output parameters have not yet been processed, must call getMoreResults() first. | |
stmnt.getMoreResults | |
stmnt.getInt(1) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Thing | |
MY_CONST = 123 | |
def doStuff (&block) | |
p "doStuff: #{self.class}" # => "doStuff: Thing" | |
p "doStuff: #{MY_CONST}" # => "doStuff: 123" | |
instance_eval &block | |
end |