Skip to content

ByteList java.lang.IllegalAccessError #5332

@ahorek

Description

@ahorek

Environment

jruby 9.2.1.0-SNAPSHOT (2.5.0) 2018-09-28 8e6904f Java HotSpot(TM) 64-Bit Server VM 25.181-b13 on 1.8.0_181-b13 +jit [linux-x86_64]
activerecord-jdbc-adapter (52.1-java)

Test

https://github.com/redmine/redmine
replaced gem "mysql2"
with
gem "activerecord-jdbcmysql-adapter"
rake test

Expected Behavior

should be able to run tests

it works on jruby 9.2.0.0, but fails on master

Actual Behavior

https://github.com/jruby/activerecord-jdbc-adapter/blob/97f84e23add067f82d7fadb6e5c8347e73db9ca3/src/java/arjdbc/util/QuotingUtils.java#L105

Unhandled Java exception: java.lang.IllegalAccessError: tried to access field org.jruby.util.ByteList.begin from class arjdbc.util.QuotingUtils
java.lang.IllegalAccessError: tried to access field org.jruby.util.ByteList.begin from class arjdbc.util.QuotingUtils
                   quoteCharAndDecorateWith at arjdbc/util/QuotingUtils.java:105
                          quote_column_name at arjdbc/mysql/MySQLModule.java:149
                                       call at arjdbc/mysql/MySQLModule$INVOKER$s$1$0$quote_column_name.gen:-1
                               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
                                       call at org/jruby/runtime/callsite/CachingCallSite.java:170
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:315
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:103
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:90
                            unresolvedSuper at org/jruby/ir/runtime/IRRuntimeHelpers.java:1120
                                  interpret at org/jruby/ir/instructions/UnresolvedSuperInstr.java:85
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:360
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:84
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:169
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:156
                                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
                               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
                                       call at org/jruby/runtime/callsite/CachingCallSite.java:170
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:315
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:84
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:169
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:156
                                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
                               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
                                       call at org/jruby/runtime/callsite/CachingCallSite.java:170
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:315
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:84
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:169
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:156
                                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
                               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
                                       call at org/jruby/runtime/callsite/CachingCallSite.java:170
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:315
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:84
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:169
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:156
                                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
                               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
                                       call at org/jruby/runtime/callsite/CachingCallSite.java:170
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:315
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:84
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:169
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:156
                                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
                               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
                                       call at org/jruby/runtime/callsite/CachingCallSite.java:170
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:315
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:103
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:90
                            unresolvedSuper at org/jruby/ir/runtime/IRRuntimeHelpers.java:1120
                                  interpret at org/jruby/ir/instructions/UnresolvedSuperInstr.java:85
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:360
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:103
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:90
                            unresolvedSuper at org/jruby/ir/runtime/IRRuntimeHelpers.java:1120
                                  interpret at org/jruby/ir/instructions/UnresolvedSuperInstr.java:85
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:360
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:78
                           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:136
                                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:123
                                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:194
                               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
                                       call at org/jruby/runtime/callsite/CachingCallSite.java:139
                                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:344
                                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
                            INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:128
                            commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:151
                              yieldSpecific at org/jruby/runtime/IRBlockBody.java:89
                              yieldSpecific at org/jruby/runtime/Block.java:134
                              yieldSpecific at org/jruby/ir/targets/YieldSite.java:141
                            mon_synchronize at /home/ahorek/.rvm/rubies/jruby-head/lib/ruby/stdlib/monitor.rb:226
  RUBY$method$mon_synchronize$0$__VARARGS__ at home/ahorek/$_dot_rvm/rubies/jruby_minus_head/lib/ruby/stdlib//home/ahorek/.rvm/rubies/jruby-head/lib/ruby/stdlib/monitor.rb:-1
                                     .......

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions