Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4424

JRuby + Mongoid + MongoAtlas

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      JRuby 9.1.8.0
      Mongoid 6.1.0
      Rails 5

      with -J-Djavax.net.debug=all:

      Padded plaintext before ENCRYPTION:  len = 96
      0000: 48 66 E8 E1 97 60 67 5F   48 88 70 51 15 96 1E 14  Hf...`g_H.pQ....
      0010: 3A 00 00 00 02 00 00 00   00 00 00 00 D4 07 00 00  :...............
      0020: 00 00 00 00 61 64 6D 69   6E 2E 24 63 6D 64 00 00  ....admin.$cmd..
      0030: 00 00 00 FF FF FF FF 13   00 00 00 10 69 73 6D 61  ............isma
      0040: 73 74 65 72 00 01 00 00   00 00 4A 93 C8 36 7D F5  ster......J..6..
      0050: CE 7D DF 21 8F 83 9E 10   EE 07 66 0A F4 37 01 01  ...!......f..7..
      main, WRITE: TLSv1.2 Application Data, length = 58
      [Raw write (bb)]: length = 101
      0000: 17 03 03 00 60 DE 5C 38   05 63 5F BA D8 7D EE 12  ....`.\8.c_.....
      0010: 42 A0 69 08 3A 40 00 DD   5A E8 C6 76 42 CE 77 94  B.i.:@..Z..vB.w.
      0020: 1B FE 29 84 32 54 9F 2C   F7 C9 3C C2 1E D5 ED 31  ..).2T.,..<....1
      0030: CC 68 08 D4 0A 01 1D 40   64 20 C2 AA 5A 1B EE BC  .h.....@d..Z...
      0040: 76 C1 ED 35 D8 B3 89 6E   E8 82 08 71 7E 74 AB DC  v..5...n...q.t..
      0050: 32 BD 01 B3 7D FE 74 4C   FE 64 AF D0 87 74 4A C2  2.....tL.d...tJ.
      0060: 03 CD 19 7C 0E                                     .....
      [Raw read (bb)]: length = 213
      0000: 17 03 03 00 D0 A0 FD 1B   B2 63 53 90 72 2E 24 4B  .........cS.r.$K
      0010: 56 24 71 6F D9 55 FA 04   B0 3C CC F3 1B AF 58 CF  V$qo.U...<....X.
      0020: 40 BD AE E6 E1 02 62 59   C8 0F 80 93 2D 1B 98 E4  @.....bY....-...
      0030: 1F CE EC A2 2C 0E A7 6A   72 4F 76 EE 1C BA 01 C8  ....,..jrOv.....
      0040: 53 AF 52 D7 C5 09 70 05   9B DB A7 04 6C 48 43 65  S.R...p.....lHCe
      0050: 93 67 03 63 10 4D 9F 35   95 DB 46 18 E8 BB D5 7A  .g.c.M.5..F....z
      0060: 57 56 22 73 18 92 A7 A5   E2 C7 9F 85 82 E1 28 50  WV"s..........(P
      0070: FA 5D 89 2D C1 39 1B C2   C1 6A B2 93 75 41 51 4B  .].-.9...j..uAQK
      0080: 9D EA 6D FE 92 BC 82 CE   6F 8C A5 23 87 F0 13 4D  ..m.....o..#...M
      0090: 29 ED 0E 73 83 09 9F F1   7E B2 2C 05 98 AF 49 0F  )..s......,...I.
      00A0: 14 7B F2 AF 57 93 79 59   E0 E5 81 E8 89 1B E4 AD  ....W.yY........
      00B0: D7 7D D6 C8 CE 16 82 CA   F2 03 3D 01 CC 25 CA 89  ..........=..%..
      00C0: 83 A8 B3 65 B2 B1 01 EE   75 00 21 88 3E E9 9E B2  ...e....u.!.>...
      00D0: F7 1F 6A 5A AF                                     ..jZ.
      Padded plaintext after DECRYPTION:  len = 208
      0000: 92 E5 8D 39 C6 1D 2A 1C   D6 B2 B4 8F B1 73 0B FC  ...9..*......s..
      0010: 9F 00 00 00 11 00 00 00   02 00 00 00 01 00 00 00  ................
      0020: 02 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  ................
      0030: 01 00 00 00 7B 00 00 00   10 6F 6B 00 00 00 00 00  .........ok.....
      0040: 02 65 72 72 6D 73 67 00   3F 00 00 00 6E 6F 20 53  .errmsg.?...no S
      0050: 4E 49 20 6E 61 6D 65 20   73 65 6E 74 2C 20 6D 61  NI name sent, ma
      0060: 6B 65 20 73 75 72 65 20   75 73 69 6E 67 20 61 20  ke sure using a 
      0070: 4D 6F 6E 67 6F 44 42 20   33 2E 34 2B 20 64 72 69  MongoDB 3.4+ dri
      0080: 76 65 72 2F 73 68 65 6C   6C 2E 00 10 63 6F 64 65  ver/shell...code
      0090: 00 40 1F 00 00 02 63 6F   64 65 4E 61 6D 65 00 0B  .@....codeName..
      00A0: 00 00 00 41 74 6C 61 73   45 72 72 6F 72 00 00 59  ...AtlasError..Y
      00B0: CA B6 DE 1D 2A D2 24 D5   DB 53 A5 44 CE D1 64 BD  ....*.$..S.D..d.
      00C0: 7D 46 B9 0C 0C 0C 0C 0C   0C 0C 0C 0C 0C 0C 0C 0C  .F..............
      

      Rails Error:

      Mongo::Error::NoServerAvailable: No server is available matching preference: #<Mongo::ServerSelector::Primary:0x2244 tag_sets=[] max_staleness=nil> using server_selection_timeout=30 and local_threshold=0.015
                                     select_server at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/mongo-2.4.1/lib/mongo/server_selector/selectable.rb:115
                                          distinct at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/mongo-2.4.1/lib/mongo/collection/view/readable.rb:173
                                          distinct at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/mongoid-6.1.0/lib/mongoid/contextual/mongo.rb:114
                                          distinct at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/mongoid-6.1.0/lib/mongoid/contextual.rb:20
                     <class:OrdenReparacionEstado> at /Projects/sofred2016/app/models/orden_reparacion_estado.rb:13
                                            <main> at /Projects/sofred2016/app/models/orden_reparacion_estado.rb:1
                                              load at org/jruby/RubyKernel.java:979
                                block in load_file at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477
                                  new_constants_in at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:662
                                         load_file at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:476
                          block in require_or_load at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:375
                           block in load_interlock at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37
                                  block in loading at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:12
                                         exclusive at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/concurrency/share_lock.rb:150
                                           loading at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:11
                                    load_interlock at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37
                                   require_or_load at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:358
                                         depend_on at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:336
                                require_dependency at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:252
                              block in eager_load! at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/engine.rb:476
                                              each at org/jruby/RubyArray.java:1734
                                   block in (root) at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/engine.rb:1
                                              each at org/jruby/RubyArray.java:1734
                                       eager_load! at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/engine.rb:475
                                       eager_load! at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/engine.rb:473
                                              each at org/jruby/RubyArray.java:1734
                              block in eager_load! at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/engine.rb:354
                                     instance_exec at org/jruby/RubyBasicObject.java:1724
                                               run at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/initializable.rb:30
                         block in run_initializers at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/initializable.rb:55
                               block in tsort_each at /Volumes/FdData/Users/mToribio/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/tsort.rb:228
        block in each_strongly_connected_component at /Volumes/FdData/Users/mToribio/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/tsort.rb:350
            each_strongly_connected_component_from at /Volumes/FdData/Users/mToribio/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/tsort.rb:431
        block in each_strongly_connected_component at /Volumes/FdData/Users/mToribio/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/tsort.rb:349
                                              each at org/jruby/RubyArray.java:1734
                                              call at org/jruby/RubyMethod.java:127
                                          Finisher at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/application/finisher.rb:59
                 each_strongly_connected_component at /Volumes/FdData/Users/mToribio/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/tsort.rb:347
                                        tsort_each at /Volumes/FdData/Users/mToribio/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/tsort.rb:226
                                        tsort_each at /Volumes/FdData/Users/mToribio/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/tsort.rb:205
                                  run_initializers at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/initializable.rb:54
                                            <main> at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/application.rb:352
                                           require at org/jruby/RubyKernel.java:961
                                            (root) at /Projects/sofred2016/config/environment.rb:5
                                   block in (root) at uri:classloader:/jruby/kernel/kernel.rb:1
                                     instance_eval at org/jruby/RubyBasicObject.java:1687
                                  require_relative at uri:classloader:/jruby/kernel/kernel.rb:13
                                            <eval> at /Projects/sofred2016/config.ru:3
                                              eval at org/jruby/RubyKernel.java:1000
                                        initialize at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/rack-2.0.1/lib/rack/builder.rb:55
                                   new_from_string at /Projects/sofred2016/config.ru:1
                                   new_from_string at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/rack-2.0.1/lib/rack/builder.rb:49
                                        parse_file at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/rack-2.0.1/lib/rack/builder.rb:40
                 build_app_and_options_from_config at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/rack-2.0.1/lib/rack/server.rb:318
                                               app at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/rack-2.0.1/lib/rack/server.rb:218
                                               app at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/commands/server.rb:59
                                       wrapped_app at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/rack-2.0.1/lib/rack/server.rb:353
                            block in log_to_stdout at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/commands/server.rb:124
                                               tap at org/jruby/RubyKernel.java:1747
                                             start at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/commands/server.rb:77
                                            server at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:90
                                            <main> at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85
                                           require at org/jruby/RubyKernel.java:961
                                            <main> at /Volumes/FdData/Users/mToribio/.rvm/gems/jruby-9.1.8.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49
                                              load at org/jruby/RubyKernel.java:979
                                            <main> at -e:1
      
      

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            marcostoribio10 Marcos Toribio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: