Martin Schürrer created JRUBY-6521:
--------------------------------------

             Summary: Nailgun leads to all kind of weird behavior
                 Key: JRUBY-6521
                 URL: https://jira.codehaus.org/browse/JRUBY-6521
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9.3
    Affects Versions: JRuby 1.7
         Environment: jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-03-03 ed5390c) 
(Java HotSpot(TM) 64-Bit Server VM 1.7.0_04-ea) [darwin-amd64-java]
            Reporter: Martin Schürrer
            Assignee: Thomas E Enebo


Tried running one of my projects with JRuby, works well without nailgun, 
getting lots of weird errors when using nailgun.

I'm using --1.9

{code}
$ script/console
Invalid gemspec in 
[/Users/msch/.rvm/gems/jruby-head/specifications/tilt-1.3.3.gemspec]: Valid 
types are [:development, :runtime], 
/Users/msch/.rvm/gems/jruby-head/gems/bundler-1.1.rc.7/lib/bundler.rb:250 
warning: shadowing outer local variable - path
org.jruby.exceptions.RaiseException: (ArgumentError) Valid types are 
[:development, :runtime], 
        at 
Gem::Dependency.initialize(/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/dependency.rb:45)
        at 
RUBY.gem(/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems.rb:1208)
        at 
RUBY.(root)(/Users/msch/.rvm/gems/jruby-head/gems/bundler-1.1.rc.7/lib/bundler/psyched_yaml.rb:3)
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:976)
        at 
RUBY.require(/Users/msch/.rvm/gems/jruby-head/gems/bundler-1.1.rc.7/lib/bundler/psyched_yaml.rb:36)
        at 
RUBY.(root)(/Users/msch/.rvm/gems/jruby-head/gems/bundler-1.1.rc.7/lib/bundler.rb:4)
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:976)
        at 
RUBY.require(/Users/msch/.rvm/gems/jruby-head/gems/bundler-1.1.rc.7/lib/bundler.rb:36)
        at 
RUBY.(root)(/Users/msch/.rvm/gems/jruby-head/gems/bundler-1.1.rc.7/lib/bundler/setup.rb:4)
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:976)
        at 
RUBY.require(/Users/msch/.rvm/gems/jruby-head/gems/bundler-1.1.rc.7/lib/bundler/setup.rb:36)
{code}

{code}
$ gem -version
1.8.15
$ gem --version
TypeError: assigning non-exception to $!
          load at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/specification.rb:548
          _all at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/specification.rb:269
          each at org/jruby/RubyArray.java:1611
          _all at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/specification.rb:268
  reverse_each at org/jruby/RubyArray.java:1691
          _all at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/specification.rb:267
          each at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/specification.rb:409
           map at org/jruby/RubyEnumerable.java:705
    find_files at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems.rb:480
  load_plugins at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems.rb:1085
        (root) at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/gem_runner.rb:86
       require at org/jruby/RubyKernel.java:976
       require at 
/Users/msch/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/gem_runner.rb:36
        (root) at /Users/msch/.rvm/rubies/jruby-head/bin/gem:13
$ bundle install
Using i18n (0.6.0) 
Using multi_json (1.1.0) 
Using activesupport (3.2.2) from https://github.com/rails/rails.git (at 
3-2-stable) 
Using builder (3.0.0) 
Using activemodel (3.2.2) from https://github.com/rails/rails.git (at 
3-2-stable) 
Using arel (3.0.2) 
Using tzinfo (0.3.31) 
Using activerecord (3.2.2) from https://github.com/rails/rails.git (at 
3-2-stable) 
Java::JavaLang::NoClassDefFoundError: org/jruby/runtime/ThreadContext
An error occured while installing activerecord (3.2.2), and Bundler cannot 
continue.
Make sure that `gem install activerecord -v '3.2.2'` succeeds before bundling.
{code}

Sometimes a command works once but not a second time after restarting the ng 
server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to