Skip to content

1.7.5.dev: error for rake spec for shoes4 (bundler/setup IllegalAcceError to_path) #998

Closed
PragTob opened this Issue Sep 9, 2013 · 12 comments

4 participants

@PragTob
PragTob commented Sep 9, 2013

Hi everyone,

I just tested out the current master, be aware that #997 is also from me so those 2 might be related :-)

When trying to run rake spec for the shoes4 project I get the following error:

LoadError: load error: bundler/setup -- java.lang.IllegalAccessError: tried to access method org.jruby.ext.pathname.RubyPathname.to_path(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject; from class org.jruby.ext.pathname.RubyPathname$INVOKER$i$0$0$to_path_DBG
  require at org/jruby/RubyKernel.java:1082
  require at /home/tobi/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:51
rake aborted!
Command failed with status (1): [jruby --debug --1.9 -Ispec  -S ./bin/rspec...]
org/jruby/RubyProc.java:271:in `call'
/home/tobi/github/shoes4/Rakefile:20:in `jruby_run'
/home/tobi/github/shoes4/Rakefile:38:in `jruby_rspec'
/home/tobi/github/shoes4/Rakefile:138:in `(root)'
org/jruby/RubyProc.java:271:in `call'
org/jruby/RubyArray.java:1613:in `each'
/home/tobi/github/shoes4/Rakefile:101:in `(root)'
org/jruby/RubyProc.java:271:in `call'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyKernel.java:1101:in `load'
org/jruby/RubyKernel.java:1121:in `eval'
/home/tobi/.rvm/gems/jruby-head@shoes4/bin/ruby_noexec_wrapper:14:in `(root)'
Tasks: TOP => spec:shoes
(See full trace by running task with --trace)

just running rspec spec/shoes and rspec spec/swt_shoes works. And so does running a couple of shoes samples that I tried so that's the bright side/good news of it :-)

However this rake task does not work, but it does work with jruby-1.7.4 and the same gem version (Gemfile.lock not changed).

Thanks for maintaining and developing JRuby! :heart:
Tobi

@eregon eregon was assigned Sep 9, 2013
@mkristian
JRuby Team member

5c96fed seems to fix it - for me. at least I do see only an OpenURI::HTTPError: 503 Forwarding failure which I would assume other reason for it to happen.

please let me know if you still see errors with the specs.

@PragTob
PragTob commented Sep 10, 2013

I still see the very same error with rake spec as before. I even ran rvm reinstall jruby-head twice just to make sure but it still breaks in the same way :-/

@mkristian
JRuby Team member
@PragTob
PragTob commented Sep 10, 2013

The 503 Forwarding error is also not normal/supposed to happen - at least it does not with the JRuby 1.7.4 for everyone that I know about.

I could try to compile/build JRuby myself and try that out - however I'm pretty busy atm so that might take me ike a week or more until I get to it :-/

Cheers and Thanks,
Tobi

@mkristian
JRuby Team member
@BanzaiMan
JRuby Team member

I can confirm that this is happening for me on the master. Not clear how it's happening.

@PragTob
PragTob commented Sep 12, 2013

Maybe it's specific to a bundler version?

I'm away from my other PC (from where I reported it) and with shaky wifi for now. When I'm back home and remember it I'll post my bundler version :-)

@BanzaiMan
JRuby Team member

I doubt this is a bundler issue. IllegalAccessError is most likely a result of our incorrectly generating the to_path method (in the Java land).

@eregon eregon closed this in d97e666 Sep 12, 2013
@eregon
JRuby Team member
eregon commented Sep 12, 2013

It should be fixed in d97e666, please try it as I do not have the setup right now to test it.
And I am truly sorry for this, it should have been obvious that it is a Java visibility problem.

@BanzaiMan
JRuby Team member

Confirmed.

Finished in 53.82 seconds
1126 examples, 1 failure, 3 pending

Failed examples:

rspec ./spec/swt_shoes/app_spec.rb:62 # Shoes::Swt::App when attempting to copy text copies text to clipboard
@PragTob
PragTob commented Sep 12, 2013

@BanzaiMan do you use tmux? We had some weird clipboard failures so that might be one of them.

I got wifi now, will install head on my laptop and try it out. Will report back here. Thanks so much!

edit: sorry the wifi seems too slow... still cloning

@BanzaiMan
JRuby Team member

@PragTob I do use tmux. I guess we're really good, then. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.