Skip to content

Cannot connect to database: ArgumentError: wrong number of arguments (given 4, expected 1..3) #1143

@number61971

Description

@number61971

activerecord-jdbc-adapter 70.1
jRuby 9.4.5.0
Rails (ActiveRecord) 7.1.3.2

All attempts to connect to a MySQL db fails with ArgumentError: wrong number of arguments (given 4, expected 1..3).

Possibly related to an existing (closed but apparently unsolved) issue: ArgumentError: wrong number of arguments (given 4, expected 1..3) #1013

Backtrace:

# /app/gems/gems/activerecord-jdbc-adapter-70.1-java/lib/arjdbc/abstract/core.rb:12:in `initialize'
# /app/gems/gems/activerecord-jdbc-adapter-70.1-java/lib/arjdbc/abstract/statement_cache.rb:23:in `initialize'
# /app/gems/gems/activerecord-jdbc-adapter-70.1-java/lib/arjdbc/mysql/adapter.rb:38:in `initialize'
# /app/gems/gems/activerecord-jdbc-adapter-70.1-java/lib/arjdbc/jdbc/callbacks.rb:14:in `new'
# /app/gems/gems/activerecord-jdbc-adapter-70.1-java/lib/arjdbc/jdbc/connection_methods.rb:10:in `jdbc_connection'
# /app/gems/gems/activerecord-jdbc-adapter-70.1-java/lib/arjdbc/mysql/connection_methods.rb:101:in `mysql_connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:676:in `new_connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:723:in `checkout_new_connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:702:in `try_to_checkout_new_connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:654:in `acquire_connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:353:in `checkout'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:182:in `connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/tasks/database_tasks.rb:501:in `block in with_temporary_connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/tasks/database_tasks.rb:518:in `with_temporary_pool'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/tasks/database_tasks.rb:500:in `with_temporary_connection'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/tasks/database_tasks.rb:377:in `schema_up_to_date?'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/migration.rb:762:in `block in any_schema_needs_update?'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/migration.rb:761:in `any_schema_needs_update?'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/migration.rb:715:in `load_schema_if_pending!'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/migration.rb:730:in `block in maintain_test_schema!'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/migration.rb:1026:in `suppress_messages'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/migration.rb:735:in `method_missing'
# /app/gems/gems/activerecord-7.1.3.2/lib/active_record/migration.rb:730:in `maintain_test_schema!'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions