Skip to content

Instantly share code, notes, and snippets.

@amiracam
Created July 22, 2013 17:41
Show Gist options
  • Save amiracam/6055902 to your computer and use it in GitHub Desktop.
Save amiracam/6055902 to your computer and use it in GitHub Desktop.
/Users/charles/.rvm/rubies/jruby-1.7.4/bin/jruby --1.9 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/charles/RubymineProjects/AMN/src/lib/amn_main_ui.rb
file:/Users/charles/.rvm/rubies/jruby-1.7.4/lib/jruby.jar!/jruby/java/core_ext/object.rb:73 warning: already initialized constant Set
ArgumentError: wrong number of arguments calling `initialize` (1 for 0)
new at org/jruby/java/proxies/JavaInterfaceTemplate.java:387
to_set at /Users/charles/.rvm/rubies/jruby-1.7.4/lib/ruby/1.9/set.rb:626
Query at /Users/charles/.rvm/gems/jruby-1.7.4/gems/dm-core-1.2.1/lib/dm-core/query.rb:32
DataMapper at /Users/charles/.rvm/gems/jruby-1.7.4/gems/dm-core-1.2.1/lib/dm-core/query.rb:28
(root) at /Users/charles/.rvm/gems/jruby-1.7.4/gems/dm-core-1.2.1/lib/dm-core/query.rb:23
require at org/jruby/RubyKernel.java:1054
(root) at /Users/charles/.rvm/gems/jruby-1.7.4/gems/dm-core-1.2.1/lib/dm-core.rb:1
require at org/jruby/RubyKernel.java:1054
(root) at /Users/charles/.rvm/gems/jruby-1.7.4/gems/dm-core-1.2.1/lib/dm-core.rb:46
each at org/jruby/RubyArray.java:1617
(root) at /Users/charles/.rvm/gems/jruby-1.7.4/gems/data_mapper-1.2.0/lib/data_mapper.rb:1
require at org/jruby/RubyKernel.java:1054
(root) at /Users/charles/.rvm/gems/jruby-1.7.4/gems/data_mapper-1.2.0/lib/data_mapper.rb:12
require at org/jruby/RubyKernel.java:1054
(root) at /Users/charles/.rvm/gems/jruby-1.7.4/gems/data_mapper-1.2.0/lib/data_mapper.rb:2
(root) at /Users/charles/RubymineProjects/AMN/src/lib/amn_domain.rb:1
load at org/jruby/RubyKernel.java:1073
(root) at -e:1
Process finished with exit code 1
@likethesky
Copy link

Hi amiracam ~

I don't see any method to contact you on github (perhaps you have no email added to your profile), so trying here. I'm getting this exact same error from JRuby (as in your gist above).

Did you solve this issue? If so, any tips would be much appreciated. I'm guessing I'm just doing something wrong (in my case, I'm guessing that there might be a conflict between the Ruby thrift libraries I'm using and JRuby itself).

But in case it's actually a bug or should be reported ... ? I thought I'd ask your thoughts.

UPDATE: Here's my gist, in case that's of help: https://gist.github.com/likethesky/6143675

Thanks
~ Brad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment