irb problems

28 views
Skip to first unread message

dostanko

unread,
Sep 21, 2009, 4:22:27 AM9/21/09
to appengine-jruby-commits
Hi, guys!

At last, I've managed to run helloworld jROR+googleappengine.
I use rails 2.3.4, jruby 1.3.1, MAC OS X 10_5_8, java 1.5.0_19. I used
http://rails-primer.appspot.com/ instructions. First I had problems
with dev_appserver(but remotely on your server it worked). On every
second non-static request it faild with next exception:

Sep 21, 2009 7:17:20 AM
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1253517440528000] javax.servlet.ServletContext log:
Application Error
file:/Users/irisha/Projects/extramuralbsuir/WEB-INF/lib/gems.jar!/gems/
actionpack-2.3.4/lib/action_controller/reloader.rb:31:in `lock': Mutex
relocking by same thread (ThreadError)
from file:/Users/irisha/Projects/extramuralbsuir/WEB-INF/lib/
gems.jar!/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:
31:in `run'
from file:/Users/irisha/Projects/extramuralbsuir/WEB-INF/lib/
gems.jar!/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:
108:in `call'
from file:/Users/irisha/Projects/extramuralbsuir/WEB-INF/lib/jruby-
rack-0.9.5.jar!/rack/handler/servlet.rb:18:in `call'
from :1
...internal jruby stack elided...
from Mutex.lock(file:/Users/irisha/Projects/extramuralbsuir/WEB-INF/
lib/gems.jar!/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:
31)
from #<Class:01xedefd2>.run(file:/Users/irisha/Projects/
extramuralbsuir/WEB-INF/lib/gems.jar!/gems/actionpack-2.3.4/lib/
action_controller/dispatcher.rb:108)
from ActionController::Dispatcher.call(file:/Users/irisha/Projects/
extramuralbsuir/WEB-INF/lib/jruby-rack-0.9.5.jar!/rack/handler/
servlet.rb:18)
from Rack::Handler::Servlet.call(:1)
from (unknown).(unknown)(:1)

I just commented 31-th line in file WEB-INF/lib/gems.jar!/gems/
actionpack-2.3.4/lib/action_controller/reloader.rb (in red).

def self.run(lock = @@default_lock)
#lock.lock
begin
Dispatcher.reload_application
status, headers, body = yield
[status, headers, BodyWrapper.new(body, lock)]
rescue Exception
lock.unlock
raise
end
end

Seems works fin locally now and I can work with datastore through web
interface,
but I steel can't run irb. Command "appcfg.rb run -S irb" just waiting
for something for ever with no messages. Have you any ideas what's go
wrong with my environment?

Thanks fro supporting ruby,
Best regards!
Reply all
Reply to author
Forward
0 new messages