Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with switching runtimes #6

Open
swistaczek opened this issue Aug 21, 2013 · 1 comment
Open

Problem with switching runtimes #6

swistaczek opened this issue Aug 21, 2013 · 1 comment

Comments

@swistaczek
Copy link

Calling switch_runtime('sampleapp', 'web') or any other context (ex. 'services') causes bellow error:

12:15:57,978 ERROR [org.torquebox.core.runtime] (New I/O worker #4) Error during evaluation: require 'torquebox/console/server': org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- torquebox/console/server
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054) [jruby.jar:]
    at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at ActiveSupport::Dependencies::Loadable.load_dependency(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213)   at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at RUBY.(root)(<script>:1)  at RUBY.(:1)    at RUBY.(:1)
12:15:57,979 ERROR [org.projectodd.stilts.conduit.stomp.ConduitStompConnection] (New I/O worker #4) Cannot send message: [StompMessage: headers={content-length=33, destination=/stomplet/console}
  content=switch_runtime('sampleapp', 'web')
]: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- torquebox/console/server
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
    at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at ActiveSupport::Dependencies::Loadable.load_dependency(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213)   at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at RUBY.(root)(<script>:1)  at RUBY.(:1)    at RUBY.(:1)
12:15:57,982 ERROR [org.projectodd.stilts.stomp.protocol.DebugHandler] (New I/O worker #4) SERVER-HEAD <<inbound<< [id: 0xdbc7b865, /127.0.0.1:62619 => /127.0.0.1:8675] :: EXCEPTION: org.projectodd.stilts.stomp.StompException: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- torquebox/console/server
    at org.projectodd.stilts.conduit.stomp.ConduitStompConnection.send(ConduitStompConnection.java:89) [stilts-conduit-server-core.jar:0.1.38]
    at org.projectodd.stilts.conduit.stomp.ConduitStompConnection.send(ConduitStompConnection.java:80) [stilts-conduit-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.SendHandler.messageReceived(SendHandler.java:43) [stilts-stomp-server-core.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) [netty-3.6.2.Final.jar:]
    at org.projectodd.stilts.stomp.server.protocol.ReceiptHandler.messageReceived(ReceiptHandler.java:41) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.ConnectHandler.handleUpstream(ConnectHandler.java:52) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.StompDisorderlyCloseHandler.handleUpstream(StompDisorderlyCloseHandler.java:20) [stilts-stomp-server-core.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) [netty-3.6.2.Final.jar:]
    at org.projectodd.stilts.stomp.protocol.websocket.WebSocketDisconnectionNegotiator.handleUpstream(WebSocketDisconnectionNegotiator.java:34) [stilts-stomp-common.jar:0.1.38]
    at org.projectodd.stilts.stomp.protocol.websocket.ietf07.PingHandler.messageReceived(PingHandler.java:25) [stilts-stomp-common.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) [netty-3.6.2.Final.jar:]
    at org.projectodd.stilts.stomp.server.protocol.http.OptionsHandler.messageReceived(OptionsHandler.java:49) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.http.CORSHandler.messageReceived(CORSHandler.java:43) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.http.FlashPolicyFileHandler.messageReceived(FlashPolicyFileHandler.java:62) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.protocol.DebugHandler.handleUpstream(DebugHandler.java:48) [stilts-stomp-common.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:175) [netty-3.6.2.Final.jar:]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- torquebox/console/server
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
    at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at ActiveSupport::Dependencies::Loadable.load_dependency(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213)   at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at RUBY.(root)(<script>:1)  at RUBY.(:1)    at RUBY.(:1)
12:15:57,985 ERROR [org.projectodd.stilts.stomp.server.protocol.AbstractProviderHandler] (New I/O worker #4) An error occurred: org.projectodd.stilts.stomp.StompException: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- torquebox/console/server
    at org.projectodd.stilts.conduit.stomp.ConduitStompConnection.send(ConduitStompConnection.java:89) [stilts-conduit-server-core.jar:0.1.38]
    at org.projectodd.stilts.conduit.stomp.ConduitStompConnection.send(ConduitStompConnection.java:80) [stilts-conduit-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.SendHandler.messageReceived(SendHandler.java:43) [stilts-stomp-server-core.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) [netty-3.6.2.Final.jar:]
    at org.projectodd.stilts.stomp.server.protocol.ReceiptHandler.messageReceived(ReceiptHandler.java:41) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.AbstractControlFrameHandler.messageReceived(AbstractControlFrameHandler.java:48) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.ConnectHandler.handleUpstream(ConnectHandler.java:52) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.StompDisorderlyCloseHandler.handleUpstream(StompDisorderlyCloseHandler.java:20) [stilts-stomp-server-core.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) [netty-3.6.2.Final.jar:]
    at org.projectodd.stilts.stomp.protocol.websocket.WebSocketDisconnectionNegotiator.handleUpstream(WebSocketDisconnectionNegotiator.java:34) [stilts-stomp-common.jar:0.1.38]
    at org.projectodd.stilts.stomp.protocol.websocket.ietf07.PingHandler.messageReceived(PingHandler.java:25) [stilts-stomp-common.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) [netty-3.6.2.Final.jar:]
    at org.projectodd.stilts.stomp.server.protocol.http.OptionsHandler.messageReceived(OptionsHandler.java:49) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.http.CORSHandler.messageReceived(CORSHandler.java:43) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.server.protocol.http.FlashPolicyFileHandler.messageReceived(FlashPolicyFileHandler.java:62) [stilts-stomp-server-core.jar:0.1.38]
    at org.projectodd.stilts.stomp.protocol.DebugHandler.handleUpstream(DebugHandler.java:48) [stilts-stomp-common.jar:0.1.38]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.6.2.Final.jar:]
    at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:175) [netty-3.6.2.Final.jar:]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- torquebox/console/server
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
    at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at ActiveSupport::Dependencies::Loadable.load_dependency(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213)   at ActiveSupport::Dependencies::Loadable.require(/Users/ernest.bursa/.rvm/gems/jruby-1.7.4@sampleapp/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228)   at RUBY.(root)(<script>:1)  at RUBY.(:1)    at RUBY.(:1)

Using latest available torquebox-console gem (via rubygems) 0.3.0 July 30, 2013 (2.88 MB)

@Xanthus
Copy link

Xanthus commented Nov 25, 2013

I literally (as in an hour ago) just started using TorqueBox and the console. Adding these lines to your app's boot/init process might work as it did for me in the meanwhile:

require 'pry'
require 'torquebox-console'
IRB = Pry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants