You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm afraid I've not managed to get a simple replication of this, but I've got a large, complicated and fairly stupid application which runs in JRuby and uses ActiveRecord. Trying to update to latest JRuby (1.7.23), I experienced this error when trying to connect this application (or its tests) to the database (i.e., the ActiveRecord::Base#establish(:adapter => "postgresql", ...) call:
TypeError: superclass mismatch for class PostgreSQLAdapter
[...]/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql/oid.rb:5:in `ConnectionAdapters'
[...]/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql/oid.rb:4:in `ActiveRecord'
[...]/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql/oid.rb:3:in `(root)'
org/jruby/RubyKernel.java:1065:in `require'
[...]
I bisected the versions and discovered that 1.7.13 does not display this behaviour, whilst 1.7.14 does.
Using "bundle exec rake test ..." in 1.7.14 makes the error disappear.
Using "jdbcpostgresql" instead of "postgresql" as the adapter makes the error appear in 1.7.13 as well
I hacked require to output the file being required and the call depth, and got these: 13.txt 14.txt
I'm doing a bunch of stupid stuff in my codebase, and it's possible activerecord is actually the one at fault here - detecting and acting on the different version of jruby, perhaps - but @headius demanded on IRC that I file a bug, so that's what I'm doing ^^.
The text was updated successfully, but these errors were encountered:
@lupine Is it possible for you to test with JRuby 9k?
If you can figure out what commit broke it, we can probably fix it in minutes. Alternatively, you can provide a reproduction (e.g. a git repo we can run against) we'll bisect it ourselves, but it will take longer to fix :-)
Punting this to 1.7.26 in the hopes it is still valid and should get lost. Without any more information I do not think we can fix this for 1.7.25 (out this week).
Hi,
I'm afraid I've not managed to get a simple replication of this, but I've got a large, complicated and fairly stupid application which runs in JRuby and uses ActiveRecord. Trying to update to latest JRuby (1.7.23), I experienced this error when trying to connect this application (or its tests) to the database (i.e., the ActiveRecord::Base#establish(:adapter => "postgresql", ...) call:
I hacked require to output the file being required and the call depth, and got these:
13.txt
14.txt
diff -Nru between 13 and 14 reports:
Installed gems that seem relevant:
I'm doing a bunch of stupid stuff in my codebase, and it's possible activerecord is actually the one at fault here - detecting and acting on the different version of jruby, perhaps - but @headius demanded on IRC that I file a bug, so that's what I'm doing ^^.
The text was updated successfully, but these errors were encountered: