Usage of deprecated method fastGetModule

XMLWordPrintableJSON

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Ruby Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      WHAT

      Ruby::fastGetModule is deprecated since 2011 (GitHub) but still being used in 
      NativeService::basicLoad (GitHub). The method has been removed completely in JRuby 10 (GitHub) resulting in an exception when loading the gem.

       Unhandled Java exception: java.lang.NoSuchMethodError: 'org.jruby.RubyModule org.jruby.Ruby.fastGetModule(java.lang.String)'
       java.lang.NoSuchMethodError: 'org.jruby.RubyModule org.jruby.Ruby.fastGetModule(java.lang.String)'
                          basicLoad at org/bson_ruby/NativeService.java:59
                      loadExtension at org/jruby/ext/jruby/JRubyUtilLibrary.java:243
                           load_ext at org/jruby/ext/jruby/JRubyUtilLibrary.java:234
                               call at org/jruby/ext/jruby/JRubyUtilLibrary$INVOKER$s$1$0$load_ext.gen:-1
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:466
                               call at org/jruby/runtime/callsite/CachingCallSite.java:244
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                     INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:100
                            execute at org/jruby/ir/interpreter/Interpreter.java:85
                            execute at org/jruby/ir/interpreter/Interpreter.java:35
                            execute at org/jruby/ir/IRTranslator.java:42
                     runInterpreter at org/jruby/Ruby.java:1234
                           loadFile at org/jruby/Ruby.java:3014
                               load at org/jruby/runtime/load/LibrarySearcher.java:936
                               load at org/jruby/runtime/load/LibrarySearcher.java:894
          tryLoadingLibraryOrScript at org/jruby/runtime/load/LoadService.java:667
         lambda$smartLoadInternal$0 at org/jruby/runtime/load/LoadService.java:569
                executeAndClearLock at org/jruby/runtime/load/LoadService.java:508
                               lock at org/jruby/runtime/load/LoadService.java:472
                  smartLoadInternal at org/jruby/runtime/load/LoadService.java:555
                            require at org/jruby/runtime/load/LoadService.java:414
                      requireCommon at org/jruby/RubyKernel.java:1188
                            require at org/jruby/RubyKernel.java:1183
                               call at org/jruby/RubyKernel$INVOKER$s$1$0$require.gen:-1
                               call at org/jruby/internal/runtime/methods/JavaMethod.java:421
                               call at org/jruby/internal/runtime/methods/AliasMethod.java:106
                               call at org/jruby/runtime/callsite/CachingCallSite.java:242
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:150
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:151
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:466
                               call at org/jruby/runtime/callsite/CachingCallSite.java:244
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                     INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:100
                            execute at org/jruby/ir/interpreter/Interpreter.java:85
                            execute at org/jruby/ir/interpreter/Interpreter.java:35
                            execute at org/jruby/ir/IRTranslator.java:42
                     runInterpreter at org/jruby/Ruby.java:1234
                           loadFile at org/jruby/Ruby.java:3014
                               load at org/jruby/runtime/load/LibrarySearcher.java:936
                               load at org/jruby/runtime/load/LibrarySearcher.java:894
          tryLoadingLibraryOrScript at org/jruby/runtime/load/LoadService.java:667
         lambda$smartLoadInternal$0 at org/jruby/runtime/load/LoadService.java:569
                executeAndClearLock at org/jruby/runtime/load/LoadService.java:508
                               lock at org/jruby/runtime/load/LoadService.java:472
                  smartLoadInternal at org/jruby/runtime/load/LoadService.java:555
                            require at org/jruby/runtime/load/LoadService.java:414
                      requireCommon at org/jruby/RubyKernel.java:1188
                            require at org/jruby/RubyKernel.java:1183
                               call at org/jruby/RubyKernel$INVOKER$s$1$0$require.gen:-1
                               call at org/jruby/internal/runtime/methods/JavaMethod.java:421
                               call at org/jruby/internal/runtime/methods/AliasMethod.java:106
                               call at org/jruby/runtime/callsite/CachingCallSite.java:242
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:150
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:151
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:466
                               call at org/jruby/runtime/callsite/CachingCallSite.java:244
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                     INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:100
                            execute at org/jruby/ir/interpreter/Interpreter.java:85
                            execute at org/jruby/ir/interpreter/Interpreter.java:35
                            execute at org/jruby/ir/IRTranslator.java:42
                     runInterpreter at org/jruby/Ruby.java:1234
                           loadFile at org/jruby/Ruby.java:3014
                               load at org/jruby/runtime/load/LibrarySearcher.java:936
                               load at org/jruby/runtime/load/LibrarySearcher.java:894
          tryLoadingLibraryOrScript at org/jruby/runtime/load/LoadService.java:667
         lambda$smartLoadInternal$0 at org/jruby/runtime/load/LoadService.java:569
                executeAndClearLock at org/jruby/runtime/load/LoadService.java:508
                               lock at org/jruby/runtime/load/LoadService.java:472
                  smartLoadInternal at org/jruby/runtime/load/LoadService.java:555
                            require at org/jruby/runtime/load/LoadService.java:414
                      requireCommon at org/jruby/RubyKernel.java:1188
                            require at org/jruby/RubyKernel.java:1183
                               call at org/jruby/RubyKernel$INVOKER$s$1$0$require.gen:-1
                               call at org/jruby/internal/runtime/methods/JavaMethod.java:421
                               call at org/jruby/internal/runtime/methods/AliasMethod.java:106
                               call at org/jruby/runtime/callsite/CachingCallSite.java:242
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:150
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:151
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:466
                               call at org/jruby/runtime/callsite/CachingCallSite.java:244
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                     INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:100
                            execute at org/jruby/ir/interpreter/Interpreter.java:85
                            execute at org/jruby/ir/interpreter/Interpreter.java:35
                            execute at org/jruby/ir/IRTranslator.java:42
                     runInterpreter at org/jruby/Ruby.java:1234
                           loadFile at org/jruby/Ruby.java:3014
                               load at org/jruby/runtime/load/LibrarySearcher.java:936
                               load at org/jruby/runtime/load/LibrarySearcher.java:894
          tryLoadingLibraryOrScript at org/jruby/runtime/load/LoadService.java:667
         lambda$smartLoadInternal$0 at org/jruby/runtime/load/LoadService.java:569
                executeAndClearLock at org/jruby/runtime/load/LoadService.java:508
                               lock at org/jruby/runtime/load/LoadService.java:472
                  smartLoadInternal at org/jruby/runtime/load/LoadService.java:555
                            require at org/jruby/runtime/load/LoadService.java:414
                      requireCommon at org/jruby/RubyKernel.java:1188
                            require at org/jruby/RubyKernel.java:1183
                               call at org/jruby/RubyKernel$INVOKER$s$1$0$require.gen:-1
                               call at org/jruby/internal/runtime/methods/JavaMethod.java:421
                               call at org/jruby/internal/runtime/methods/AliasMethod.java:106
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:466
                               call at org/jruby/runtime/callsite/CachingCallSite.java:244
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:150
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:151
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:466
                               call at org/jruby/runtime/callsite/CachingCallSite.java:244
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:140
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:99
                    unresolvedSuper at org/jruby/ir/runtime/IRRuntimeHelpers.java:1515
                          interpret at org/jruby/ir/instructions/UnresolvedSuperInstr.java:123
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:372
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:145
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:130
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:456
                               call at org/jruby/runtime/callsite/CachingCallSite.java:195
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:352
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:145
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:130
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:456
                               call at org/jruby/runtime/callsite/CachingCallSite.java:195
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:352
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:140
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:99
                               call at org/jruby/internal/runtime/methods/AliasMethod.java:146
             finvokeWithRefinements at org/jruby/RubyClass.java:644
                               send at org/jruby/RubyBasicObject.java:1821
                               call at org/jruby/RubyBasicObject$INVOKER$i$send.gen:-1
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:446
                               call at org/jruby/runtime/callsite/CachingCallSite.java:92
                          interpret at org/jruby/ir/instructions/CallBase.java:556
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:372
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:140
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:99
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:446
                               call at org/jruby/runtime/callsite/CachingCallSite.java:92
                          interpret at org/jruby/ir/instructions/CallBase.java:556
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:372
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:140
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:99
                    unresolvedSuper at org/jruby/ir/runtime/IRRuntimeHelpers.java:1515
                          interpret at org/jruby/ir/instructions/UnresolvedSuperInstr.java:123
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:372
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:155
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:173
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:476
                               call at org/jruby/runtime/callsite/CachingCallSite.java:293
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:330
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:140
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:99
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:446
                               call at org/jruby/runtime/callsite/CachingCallSite.java:92
                          interpret at org/jruby/ir/instructions/CallBase.java:556
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:372
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:140
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:99
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:446
                               call at org/jruby/runtime/callsite/CachingCallSite.java:92
                          interpret at org/jruby/ir/instructions/CallBase.java:556
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:372
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                    INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:120
                    commonYieldPath at org/jruby/runtime/InterpretedIRBlockBody.java:148
                      yieldSpecific at org/jruby/runtime/IRBlockBody.java:78
                      yieldSpecific at org/jruby/runtime/Block.java:160
                      yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:502
                          interpret at org/jruby/ir/instructions/YieldInstr.java:84
                     processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.java:155
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:98
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:150
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:141
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:471
                               call at org/jruby/runtime/callsite/CachingCallSite.java:259
                           callIter at org/jruby/runtime/callsite/CachingCallSite.java:270
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:343
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:155
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:173
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:476
                               call at org/jruby/runtime/callsite/CachingCallSite.java:293
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:330
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                     INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:100
                            execute at org/jruby/ir/interpreter/Interpreter.java:85
                            execute at org/jruby/ir/interpreter/Interpreter.java:35
                            execute at org/jruby/ir/IRTranslator.java:42
                     runInterpreter at org/jruby/Ruby.java:1234
                           loadFile at org/jruby/Ruby.java:3014
                               load at org/jruby/runtime/load/LibrarySearcher.java:936
                               load at org/jruby/runtime/load/LibrarySearcher.java:894
          tryLoadingLibraryOrScript at org/jruby/runtime/load/LoadService.java:667
         lambda$smartLoadInternal$0 at org/jruby/runtime/load/LoadService.java:569
                executeAndClearLock at org/jruby/runtime/load/LoadService.java:508
                               lock at org/jruby/runtime/load/LoadService.java:472
                  smartLoadInternal at org/jruby/runtime/load/LoadService.java:555
                            require at org/jruby/runtime/load/LoadService.java:414
                      requireCommon at org/jruby/RubyKernel.java:1188
                            require at org/jruby/RubyKernel.java:1183
                               call at org/jruby/RubyKernel$INVOKER$s$1$0$require.gen:-1
                               call at org/jruby/internal/runtime/methods/JavaMethod.java:421
                               call at org/jruby/internal/runtime/methods/AliasMethod.java:106
                               call at org/jruby/runtime/callsite/CachingCallSite.java:242
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                interpretFrameScope at org/jruby/ir/interpreter/Interpreter.java:174
                   INTERPRET_METHOD at org/jruby/ir/interpreter/Interpreter.java:150
                               call at org/jruby/internal/runtime/methods/InterpretedIRMethod.java:151
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:466
                               call at org/jruby/runtime/callsite/CachingCallSite.java:244
                        processCall at org/jruby/ir/interpreter/InterpreterEngine.java:320
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:66
                     INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:100
                            execute at org/jruby/ir/interpreter/Interpreter.java:85
                            execute at org/jruby/ir/interpreter/Interpreter.java:35
                            execute at org/jruby/ir/IRTranslator.java:42
                     runInterpreter at org/jruby/Ruby.java:1234
                     runInterpreter at org/jruby/Ruby.java:1264
                        runNormally at org/jruby/Ruby.java:1138
                        runFromMain at org/jruby/Ruby.java:978
                        internalRun at org/jruby/Main.java:282
                                run at org/jruby/Main.java:227
                               main at org/jruby/Main.java:199 

       
       
       

            Assignee:
            Unassigned
            Reporter:
            Paul Gillesberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: