Skip to content

Instantly share code, notes, and snippets.

bbrowning@bbrowning-mbp:~/src/torquebox/assemblage/assembly/target/stage(master)$ ls torquebox-1.0.0.Beta22-SNAPSHOT/jruby/lib/ruby/gems/1.8/gems/
abstract-1.0.0 mail-2.2.6.1
actionmailer-2.3.8 mime-types-1.16
actionmailer-3.0.0 org.torquebox.torquebox-container-foundation-1.0.0.Beta22-java
actionpack-2.3.8 org.torquebox.torquebox-messaging-client-1.0.0.Beta22-java
actionpack-3.0.0 org.torquebox.torquebox-messaging-container-1.0.0.Beta22-java
activemodel-3.0.0 org.torquebox.torquebox-naming-client-1.0.0.Beta22-java
activerecord-2.3.8 org.torquebox.torquebox-naming-container-1.0.0.Beta22-java
activerecord-3.0.0 org.torquebox.vfs-1.0.0.Beta22
activerecord-j
/**
* Use this helper method to generate pre-signed S3 urls for use with S3_PING.
* You'll need to generate urls for both the put and delete http methods.
* Example:
* Your AWS Access Key is "abcd".
* Your AWS Secret Access Key is "efgh".
* You want this node to write its information to "/S3_PING/DemoCluster/node1".
* So, your bucket is "S3_PING" and your key is "DemoCluster/node1".
* You want this to expire one year from now, or
* (System.currentTimeMillis / 1000) + (60 * 60 * 24 * 365)
it "should be able to publish to and receive from a topic" do
topic = TorqueBox::Messaging::Topic.new "/topics/foo"
topic.start
latch = java.util.concurrent.CountDownLatch.new(1)
t1 = Thread.new { topic.publish "howdy"; latch.countDown }
latch.await
message = topic.receive
topic.destroy
I, [2010-10-07 11:44:24 #846] INFO -- : Discovering platform...
D, [2010-10-07 11:44:24 #846] DEBUG -- : Discovering if we're on EC2...
T, [2010-10-07 11:44:24 #846] TRACE -- : GET: http://169.254.169.254/1.0/meta-data/local-ipv4
E, [2010-10-07 11:44:25 #846] ERROR -- : GET failed: Request Timeout
E, [2010-10-07 11:44:25 #846] ERROR -- : /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:174:in `transmit'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb:54:in `get'
./lib/sc-agent/helpers/client-helper.rb:34:in `get'
./lib/sc-agent/helpers/cloud-helper.rb:49:in `discover_ec2'
Processing ArtifactVersionsController#create (for 127.0.0.1 at 2010-10-07 14:09:57) [POST]
Parameters: {"authenticity_token"=>"QNDKulHzbbDzUrMFRd/EWGGKQvSaZgyIQ3wmCqY+bdc=", "artifact_version"=>{"archive"=>#<File:/var/folders/ak/ak4JdjHqGAq17hqpLCzISk+++TI/-Tmp-/RackMultipart.20335.24779>}, "commit"=>"Upload", "artifact_id"=>"5", "controller"=>"artifact_versions", "action"=>"create"}
[paperclip] Saving attachments.
New Aws::S3Interface using per_thread-connection mode
Opening new HTTPS connection to s3.amazonaws.com:443
/!\ FAILSAFE /!\ Thu Oct 07 14:09:58 -0400 2010
Status: 500 Internal Server Error
unexpected break
/Users/bbrowning/src/torquebox/assemblage/assembly/target/stage/torquebox-1.0.0.Beta22-SNAPSHOT/jruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `call'
/Users/bbrowning/src/torquebox/assemblage/assembly/target/stage/torquebox-1.0.0.Beta22-SNAPSHOT/jruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_recor
Processing ArtifactsController#create (for 127.0.0.1 at 2010-10-07 14:25:45) [POST]
Parameters: {"authenticity_token"=>"QNDKulHzbbDzUrMFRd/EWGGKQvSaZgyIQ3wmCqY+bdc=", "artifact"=>{"name"=>"Donkey", "service_id"=>"1", "description"=>"", "artifact_versions_attributes"=>{"0"=>{"archive"=>#<File:/var/folders/ak/ak4JdjHqGAq17hqpLCzISk+++TI/-Tmp-/RackMultipart.20335.24792>}}}, "commit"=>"Create", "controller"=>"artifacts", "action"=>"create"}
[paperclip] Saving attachments.
New Aws::S3Interface using per_thread-connection mode
Opening new HTTPS connection to s3.amazonaws.com:443
ArgumentError (Cannot yield from a Proc type filter. The Proc must take two arguments and execute #call on the second argument.):
app/controllers/artifacts_controller.rb:64:in `create'
app/controllers/artifacts_controller.rb:63:in `create'
compass (0.10.2) lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process_with_compass'
14:32:51,606 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100911-M5 "Neo"] Started in 1m:40s:580ms
14:32:51,797 ERROR [org.torquebox.rack.core.servlet.RackFilter] Error invoking Rack filter: org.jruby.exceptions.RaiseException: uninitialized constant Rack::Builder
at Kernel.raise(/Users/bbrowning/src/torquebox/assemblage/assembly/target/stage/torquebox-1.0.0.Beta22-SNAPSHOT/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443) at ActiveSupport::Dependencies.load_missing_constant(/Users/bbrowning/src/torquebox/assemblage/assembly/target/stage/torquebox-1.0.0.Beta22-SNAPSHOT/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80) at ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(vfs:/Users/bbrowning/src/steamcannon/config.ru:4) at (unknown).(unknown)(:1)
14:32:51,803 ERROR [org.torquebox.rack.core.servlet.RackFilter] Error invoking Rack filter: org.jruby.exception
0:50 bobmcw: and wanted to test-build an appliance, but it didn't check my local RPM builds
10:50 bobmcw: so I had to scp to repository.boxgrinder.org and createrepo
10:50 bobmcw: is there some --local-rpms flag to use locally-produced RPMs during early dev cycle?
10:50 bobmcw: I know I could add a file:/// repo to my appl
10:50 bobmcw: but that seemed ugly
10:50 mgoldmann: bobmcw: some kind of
10:51 mgoldmann: yes, this is the way, + mark it as ephemeral repo
10:51 bobmcw: "mark as emphemeral repo" ?
10:51 mgoldmann: yes, it's ugly, you don't want to check in this to the repo
10:51 mgoldmann: ephemeral: true
[21:25:56]: Running org.torquebox.integration.MessagingTest
[21:25:58]: org.torquebox.integration.BasicSinatra_1_0_Test (2m:01s)
[21:25:58]: [org.torquebox.integration.BasicSinatra_1_0_Test] testHighlevel (7s)
[21:25:58]: [org.torquebox.integration.BasicSinatra_1_0_Test] testRequestMapping (3s)
[21:25:58]: [org.torquebox.integration.BasicSinatra_1_0_Test] testPostAlot (1m:38s)
[21:28:25]: Oct 11, 2010 9:27:55 PM ClientCommunicatorAdmin Checker-run
[21:28:25]: WARNING: Failed to check the connection: java.net.SocketTimeoutException: Read timed out
[21:33:08]: attempting to slurp: org/torquebox/integration/messaging_test.rb
[21:33:09]: connecting to JNDI on
[21:33:09]: in=java.io.BufferedInputStream@24d6c6ea
bbrowning@bbrowning-mbp:~/src/steamcannon(bundler)$ jruby -S bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using aasm (2.1.5)
Using activesupport (2.3.8)
Using rack (1.1.0)
Using actionpack (2.3.8)
Using actionmailer (2.3.8)
Using activerecord (2.3.8)
Using activeresource (2.3.8)