Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8143865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:13:34+00:00 2026-06-06T13:13:34+00:00

This very likely a setup issue on my part. I am trying to run

  • 0

This very likely a setup issue on my part.

I am trying to run the tests for the activerecord-jdbc-adapter but they are failing, see log below.

I am using JRuby 1.6.4, tried on both OSX and Ubuntu.

Using the Rails trunk source for activerecord.

Believe I have the mysql and postgres databases setup correctly…

In rails.rake, this call is giving rake 2 params:

Dir.chdir(activerecord) do
  rake "RUBYLIB=#{rubylib}", "#{_target(driver)}"
end

But the rake method in Rakefile takes 1 param:

def rake(args)
  ruby "-S", "rake", *args
end

I am probably missing something basic.

Thanks in advance for any tips/tricks.

Log:

$ rake rails:test DRIVER=mysql RAILS=../rails --trace
** Invoke rails:test (first_time)
** Invoke java_compile (first_time)
** Execute java_compile
mkdir -p pkg/classes
javac -target 1.5 -source 1.5  -d pkg/classes -cp "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar:/Users/kimptoc/.rvm/rubies/jruby-1.6.4/lib/jruby.jar" src/java/arjdbc/db2/DB2RubyJdbcConnection.java src/java/arjdbc/derby/DerbyModule.java src/java/arjdbc/h2/H2RubyJdbcConnection.java src/java/arjdbc/informix/InformixRubyJdbcConnection.java src/java/arjdbc/jdbc/AdapterJavaService.java src/java/arjdbc/jdbc/JdbcConnectionFactory.java src/java/arjdbc/jdbc/RubyJdbcConnection.java src/java/arjdbc/jdbc/SQLBlock.java src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java src/java/arjdbc/mysql/MySQLModule.java src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java src/java/arjdbc/oracle/OracleRubyJdbcConnection.java src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java src/java/arjdbc/sqlite3/Sqlite3RubyJdbcConnection.java
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: src/java/arjdbc/jdbc/RubyJdbcConnection.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
jar cf lib/arjdbc/jdbc/adapter_java.jar -C pkg/classes .
** Execute rails:test
rake aborted!
wrong number of arguments (2 for 1)
/Users/kimptoc/Documents/ruby/libs/activerecord-jdbc-adapter.kimptoc/rakelib/rails.rake:38:in `(root)'
org/jruby/RubyDir.java:335:in `chdir'
/Users/kimptoc/Documents/ruby/libs/activerecord-jdbc-adapter.kimptoc/rakelib/rails.rake:37:in `(root)'
org/jruby/RubyProc.java:274:in `call'
org/jruby/RubyProc.java:229:in `call'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
org/jruby/RubyArray.java:1603:in `each'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/Users/kimptoc/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
org/jruby/RubyArray.java:1603:in `each'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:62:in `run'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/gems/rake-0.9.2/bin/rake:32:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
/Users/kimptoc/.rvm/gems/jruby-1.6.4@global/bin/rake:19:in `(root)'
Tasks: TOP => rails:test
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:13:35+00:00Added an answer on June 6, 2026 at 1:13 pm

    This commit has resolved the bug

    https://github.com/jruby/activerecord-jdbc-adapter/commit/b76f828ecbd2733bdbacdd571f67959235de96be

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This issue is very likely codeigniter specific. I have a controller called redirect.php that
This is more then likely a very simple question but I am completely stumped
Since in log4j javadoc is WARNING: This version of JDBCAppender is very likely to
I was making this very simple lex program (just an introductory program). But on
I posted this very same item on SERVERFAULT, but got no reply. So here
Very likely I'm going about this in the wrong way entirely. I'm completely new
Okay this could very likely be a silly question. I am using Entity Framework
Summarization: (1) This is very likely to be a bug. However, I cannot say
--- THIS THREAD IS VERY LIKELY OUTDATED AS OF 2013 --- Is it worth
This is likely a much broader SQL topic than Entity Framework, and I'm very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.