Skip to content

Instantly share code, notes, and snippets.

@mysteriouspants
Created October 22, 2012 15:49
Show Gist options
  • Select an option

  • Save mysteriouspants/3932178 to your computer and use it in GitHub Desktop.

Select an option

Save mysteriouspants/3932178 to your computer and use it in GitHub Desktop.
TorqueSpec Failure
cmiller@cmiller-iMac:~/Code/ww-support/cuttlefish/src/var/www/cuttlefish
> which rspec jruby [337ddae]
/Users/cmiller/.rbenv/shims/rspec
cmiller@cmiller-iMac:~/Code/ww-support/cuttlefish/src/var/www/cuttlefish
> cat `which rspec` jruby [337ddae]
#!/usr/bin/env bash
set -e
export RBENV_ROOT="/Users/cmiller/.rbenv"
exec rbenv exec "${0##*/}" "$@"
cmiller@cmiller-iMac:~/Code/ww-support/cuttlefish/src/var/www/cuttlefish
> rbenv which rspec jruby [337ddae]
/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/bin/rspec
cmiller@cmiller-iMac:~/Code/ww-support/cuttlefish/src/var/www/cuttlefish
> cat `rbenv which rspec` jruby [337ddae]
#!/usr/bin/env jruby
#
# This file was generated by RubyGems.
#
# The application 'rspec-core' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0"
if ARGV.first
str = ARGV.first
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
if str =~ /\A_(.*)_\z/
version = $1
ARGV.shift
end
end
gem 'rspec-core', version
load Gem.bin_path('rspec-core', 'rspec', version)
> JRUBY_OPTS=--1.9 rspec spec/requests/csv_files_spec.rb jruby [337ddae]"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java" -Xms64m -Xmx1024m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -Djruby.home=/Users/cmiller/.rbenv/versions/jruby-1.6.7.2 -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.boot.log.file="/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/log/boot.log" -Dlogging.configuration=file:"/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/configuration/logging.properties" -jar "/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/jboss-modules.jar" -mp "/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir="/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss"
pid=5936
Waiting up to 120s for JBoss to boot
JBoss started in 4s
deploy /Users/cmiller/Code/ww-support/cuttlefish/src/var/www/cuttlefish/.torquespec/csv_files-knob.yml
10:02:45,427 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 42) JBAS016200: Activating ConfigAdmin Subsystem
10:02:45,438 INFO [org.jboss.as.security] (ServerService Thread Pool -- 64) JBAS013171: Activating Security Subsystem
10:02:45,439 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 47) JBAS010280: Activating Infinispan subsystem.
10:02:45,443 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 59) JBAS011906: Activating OSGi Subsystem
10:02:45,461 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 58) JBAS011800: Activating Naming Subsystem
10:02:45,463 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 48) JBAS016300: Activating JacORB Subsystem
10:02:45,470 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 68) JBAS015537: Activating WebServices Extension
10:02:45,482 INFO [org.jboss.as.security] (MSC service thread 1-2) JBAS013170: Current PicketBox version=4.0.9.Final
10:02:45,511 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on 127.0.0.1:9999
10:02:45,526 INFO [org.jboss.as.connector.logging] (MSC service thread 1-9) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.11.Final)
10:02:45,539 INFO [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
10:02:45,546 INFO [org.jboss.as.mail.extension] (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]
10:02:45,573 INFO [org.jboss.jaxr] (MSC service thread 1-5) JBAS014000: Started JAXR subsystem, binding JAXR connection factory into JNDI as: java:jboss/jaxr/ConnectionFactory
10:02:45,599 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 43) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
10:02:45,602 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-13) JBoss Web Services - Stack CXF Server 4.0.2.GA
10:02:45,671 WARN [org.jboss.as.messaging] (MSC service thread 1-9) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
10:02:45,778 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-7) Starting Coyote HTTP/1.1 on http-localhost/127.0.0.1:8080
10:02:45,786 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-9) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/data/messagingjournal,bindingsDirectory=/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/data/messagingbindings,largeMessagesDirectory=/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/data/messaginglargemessages,pagingDirectory=/Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/data/messagingpaging)
10:02:45,787 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-9) Waiting to obtain live lock
10:02:45,797 INFO [org.torquebox.core.runtime] (MSC service thread 1-15) Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, context: global)
10:02:45,815 WARN [jacorb.codeset] (MSC service thread 1-13) Warning - unknown codeset (MacRoman) - defaulting to ISO-8859-1
10:02:45,833 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-9) Using NIO Journal
10:02:45,891 INFO [org.jboss.as.jacorb] (MSC service thread 1-13) JBAS016330: CORBA ORB Service started
10:02:45,968 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-16) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
10:02:45,977 INFO [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-9) Waiting to obtain live lock
10:02:45,977 INFO [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-9) Live Server Obtained live lock
10:02:45,989 INFO [org.jboss.as.jacorb] (MSC service thread 1-2) JBAS016328: CORBA Naming Service started
10:02:46,028 INFO [org.infinispan.factories.GlobalComponentRegistry] (CacheService lifecycle - 1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.5.FINAL
10:02:46,188 INFO [org.jboss.as.clustering.infinispan] (CacheService lifecycle - 1) JBAS010281: Started __recoveryInfoCacheName__ cache from polyglot container
10:02:46,212 INFO [org.infinispan.jmx.CacheJmxRegistration] (CacheService lifecycle - 1) ISPN000031: MBeans were successfully registered to the platform mbean server.
10:02:46,213 INFO [org.jboss.as.clustering.infinispan] (CacheService lifecycle - 1) JBAS010281: Started sessions cache from polyglot container
10:02:46,422 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-9) Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5445 for CORE protocol
10:02:46,423 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-9) Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5455 for CORE protocol
10:02:46,424 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-9) Server is now live
10:02:46,424 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-9) HornetQ Server version 2.2.18.Final (HQ_2_2_18_FINAL, 122) [281b3b08-1a13-11e2-943f-1f2d002c361f]) started
10:02:46,438 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 80) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
10:02:46,440 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 81) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
10:02:46,471 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-3) JBAS010406: Registered connection factory java:/JmsXA
10:02:46,494 INFO [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-3) HornetQ resource adaptor started
10:02:46,494 INFO [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-3) IJ020002: Deployed: file://RaActivatorhornetq-ra
10:02:46,496 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-7) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
10:02:47,199 ERROR [org.torquebox.core.runtime] (MSC service thread 1-15) Failed to initialize runtime: : org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- bundler/setup
10:02:47,202 INFO [org.torquebox.core.runtime] (MSC service thread 1-15) Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, context: global) in 1.4s
10:02:47,203 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC00001: Failed to start service torquebox.core.runtime.global: org.jboss.msc.service.StartException in service torquebox.core.runtime.global: java.lang.NullPointerException
at org.torquebox.core.GlobalRuby$1.run(GlobalRuby.java:62) [torquebox-core.jar:2.1.2]
at org.jboss.msc.service.ServiceControllerImpl$StartContextImpl.execute(ServiceControllerImpl.java:2210) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.torquebox.core.GlobalRuby.start(GlobalRuby.java:52) [torquebox-core.jar:2.1.2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]
Caused by: java.lang.NullPointerException
at org.torquebox.core.runtime.RuntimeContext.registerRuntime(RuntimeContext.java:51) [torquebox-core.jar:2.1.2]
at org.torquebox.core.runtime.RubyRuntimeFactory.createInstance(RubyRuntimeFactory.java:348) [torquebox-core.jar:2.1.2]
at org.torquebox.core.runtime.RubyRuntimeFactory.createInstance(RubyRuntimeFactory.java:262) [torquebox-core.jar:2.1.2]
at org.torquebox.core.GlobalRuby$1.run(GlobalRuby.java:58) [torquebox-core.jar:2.1.2]
... 7 more
10:02:47,209 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on 127.0.0.1:4447
10:02:47,214 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory /Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/deployments
10:02:47,246 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service torquebox.core.runtime.global: org.jboss.msc.service.StartException in service torquebox.core.runtime.global: java.lang.NullPointerException
10:02:47,252 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
10:02:47,252 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
10:02:47,252 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.x.incremental.1 "Steropes" started (with errors) in 2992ms - Started 170 of 270 services (1 services failed or missing dependencies, 98 services are passive or on-demand)
10:02:48,337 INFO [org.jboss.as.repository] (HttpManagementService-threads - 1) JBAS014901: Content removed from location /Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/data/content/6d/94b8c1b68414d89460b42231cb2a7faefe4baa/content
10:02:48,356 INFO [org.jboss.as.repository] (HttpManagementService-threads - 1) JBAS014900: Content added at location /Users/cmiller/.rbenv/versions/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/torquebox-server-2.1.2-java/jboss/standalone/data/content/6d/94b8c1b68414d89460b42231cb2a7faefe4baa/content
10:02:48,396 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "csv_files-knob.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment