Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in PgStatement #1067

Open
mogman1 opened this issue Jun 5, 2020 · 1 comment
Open

NullPointerException in PgStatement #1067

mogman1 opened this issue Jun 5, 2020 · 1 comment

Comments

@mogman1
Copy link

mogman1 commented Jun 5, 2020

We're running into an issue at the interface between postgresql-jdbc and arjdbc. We're running JRuby (versions 9.2.6.0, 9.2.7.0, 9.2.9.0) and Rails 5.2 with arjdbc 52.6. Frustratingly the error (stack trace below) shows up only rarely and only under load, we're still trying to figure out how to produce it more reliably. What's also odd is I can't get the line numbers being given in the stack dump for postgresql-jdbc to line up (see https://github.com/pgjdbc/pgjdbc/blob/REL42.2.5/pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java#L457, which is just a }).

I made a stab at updating postgres jdbc to 42.2.13, since 42.2.5 is over a year old, but I keep running into:

NameError:
  cannot load Java class org.postgresql.Driver
# arjdbc/jdbc/RubyJdbcConnection.java:557:in `initialize'
[ERROR] [2020-06-04 16:02:41 -0600] [Failable] Java::JavaLang::NullPointerException: 
[ERROR] [2020-06-04 16:02:41 -0600] [Failable] org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:457)
org.postgresql.jdbc.PgStatement.execute(PgStatement.java:370)
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:311)
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:297)
org.postgresql.jdbc.PgStatement.executeUpdate(PgStatement.java:1173)
arjdbc.jdbc.RubyJdbcConnection$10.call(RubyJdbcConnection.java:927)
arjdbc.jdbc.RubyJdbcConnection$10.call(RubyJdbcConnection.java:916)
arjdbc.jdbc.RubyJdbcConnection.withConnection(RubyJdbcConnection.java:3514)
arjdbc.jdbc.RubyJdbcConnection.withConnection(RubyJdbcConnection.java:3480)
arjdbc.jdbc.RubyJdbcConnection.execute_insert_pk(RubyJdbcConnection.java:916)
arjdbc.jdbc.RubyJdbcConnection$INVOKER$i$execute_insert_pk.call(RubyJdbcConnection$INVOKER$i$execute_insert_pk.gen)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:201)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.abstract.database_statements.invokeOther1:execute_insert_pk(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/abstract/database_statements.rb:16)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.abstract.database_statements.RUBY$block$exec_insert$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/abstract/database_statements.rb:16)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract_adapter.RUBY$block$log$2(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:581)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
usr.local.rvm.rubies.jruby_minus_9_dot_2_dot_6_dot_0.lib.ruby.stdlib.monitor.RUBY$method$mon_synchronize$0(/usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/monitor.rb:226)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:85)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:158)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract_adapter.invokeOther2:synchronize(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:580)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract_adapter.RUBY$block$log$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:580)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.BlockBody.yield(BlockBody.java:114)
org.jruby.runtime.Block.yield(Block.java:165)
org.jruby.ir.runtime.IRRuntimeHelpers.yield(IRRuntimeHelpers.java:477)
org.jruby.ir.targets.YieldSite.yield(YieldSite.java:105)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activesupport_minus_5_dot_2_dot_4_dot_3.lib.active_support.notifications.instrumenter.RUBY$method$instrument$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activesupport-5.2.4.3/lib/active_support/notifications/instrumenter.rb:23)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:127)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:189)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:211)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:220)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract_adapter.invokeOther22:instrument(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:571)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract_adapter.RUBY$method$log$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:571)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.abstract.core.invokeSuper6:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/abstract/core.rb:72)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.abstract.core.RUBY$method$log$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/abstract/core.rb:72)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:127)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:189)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:211)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:220)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.abstract.database_statements.invokeOther9:log(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/abstract/database_statements.rb:16)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.abstract.database_statements.RUBY$method$exec_insert$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/abstract/database_statements.rb:16)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.postgresql.adapter.invokeSuper0:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/postgresql/adapter.rb:368)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_jdbc_minus_adapter_minus_52_dot_6_minus_java.lib.arjdbc.postgresql.adapter.RUBY$method$exec_insert$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-jdbc-adapter-52.6-java/lib/arjdbc/postgresql/adapter.rb:368)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:173)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:72)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.database_statements.invokeOther1:exec_insert(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:162)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.database_statements.RUBY$method$insert$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:162)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuperSplatArgs(IRRuntimeHelpers.java:1146)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.query_cache.invokeSuper2:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/query_cache.rb:21)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.query_cache.RUBY$method$insert$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/query_cache.rb:21)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:173)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:72)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.invokeOther23:insert(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:187)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.RUBY$method$_insert_record$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:187)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:117)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:156)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:199)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.invokeOther6:_insert_record(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:734)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.RUBY$method$_create_record$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:734)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuperSplatArgs(IRRuntimeHelpers.java:1146)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.counter_cache.invokeSuper4:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/counter_cache.rb:184)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.counter_cache.RUBY$method$_create_record$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/counter_cache.rb:184)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuperSplatArgs(IRRuntimeHelpers.java:1146)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.locking.optimistic.invokeSuper5:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/locking/optimistic.rb:70)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.locking.optimistic.RUBY$method$_create_record$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/locking/optimistic.rb:70)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.attribute_methods.dirty.invokeSuper2:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/attribute_methods/dirty.rb:140)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.attribute_methods.dirty.RUBY$method$_create_record$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/attribute_methods/dirty.rb:140)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
org.jruby.ir.runtime.IRRuntimeHelpers.zSuper(IRRuntimeHelpers.java:1177)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.invokeSuper2:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:346)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.RUBY$block$_create_record$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:346)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activesupport_minus_5_dot_2_dot_4_dot_3.lib.active_support.callbacks.RUBY$method$run_callbacks$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:132)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:117)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:156)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:357)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:182)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activesupport_minus_5_dot_2_dot_4_dot_3.lib.active_support.callbacks.invokeOther2:run_callbacks(/srv/newman/shared/bundle/jruby/2.5.0/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:816)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activesupport_minus_5_dot_2_dot_4_dot_3.lib.active_support.callbacks.RUBY$method$_run_create_callbacks$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:816)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:151)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:158)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.invokeOther4:_run_create_callbacks(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:346)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.RUBY$method$_create_record$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:346)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.RUBY$method$_create_record$0$__VARARGS__(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.timestamp.invokeSuper8:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/timestamp.rb:102)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.timestamp.RUBY$method$_create_record$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/timestamp.rb:102)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:151)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.invokeOther4:_create_record(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:705)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.RUBY$method$create_or_update$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:705)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
org.jruby.ir.runtime.IRRuntimeHelpers.zSuperSplatArgs(IRRuntimeHelpers.java:1172)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.invokeSuper2:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:342)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.RUBY$block$create_or_update$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:342)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activesupport_minus_5_dot_2_dot_4_dot_3.lib.active_support.callbacks.RUBY$method$run_callbacks$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:132)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:117)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:156)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:357)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:182)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activesupport_minus_5_dot_2_dot_4_dot_3.lib.active_support.callbacks.invokeOther2:run_callbacks(/srv/newman/shared/bundle/jruby/2.5.0/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:816)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activesupport_minus_5_dot_2_dot_4_dot_3.lib.active_support.callbacks.RUBY$method$_run_save_callbacks$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:816)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:151)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:158)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.invokeOther4:_run_save_callbacks(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:342)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.callbacks.RUBY$method$create_or_update$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/callbacks.rb:342)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:303)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:84)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.invokeOther0:create_or_update(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:308)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.persistence.RUBY$method$save!$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/persistence.rb:308)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.validations.invokeSuper1:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/validations.rb:52)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.validations.RUBY$method$save!$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/validations.rb:52)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
org.jruby.ir.runtime.IRRuntimeHelpers.zSuperSplatArgs(IRRuntimeHelpers.java:1172)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.invokeSuper2:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:315)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.RUBY$block$save!$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:315)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.RUBY$block$with_transaction_returning_status$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:387)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.database_statements.RUBY$block$transaction$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.transaction.RUBY$block$within_new_transaction$1(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:239)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)
org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)
org.jruby.runtime.Block.yieldSpecific(Block.java:134)
org.jruby.ir.targets.YieldSite.yieldSpecific(YieldSite.java:141)
usr.local.rvm.rubies.jruby_minus_9_dot_2_dot_6_dot_0.lib.ruby.stdlib.monitor.RUBY$method$mon_synchronize$0(/usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/monitor.rb:226)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:85)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:158)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.transaction.invokeOther35:synchronize(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:236)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.transaction.RUBY$method$within_new_transaction$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:236)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:114)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:156)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:180)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:189)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.database_statements.invokeOther11:within_new_transaction(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.connection_adapters.abstract.database_statements.RUBY$method$transaction$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:114)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:156)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:180)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.invokeOther1:transaction(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:212)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.RUBY$method$transaction$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:212)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:101)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:158)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.invokeOther4:transaction(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:385)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.RUBY$method$with_transaction_returning_status$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:385)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:104)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:158)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.invokeOther4:with_transaction_returning_status(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:315)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.transactions.RUBY$method$save!$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:315)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuper(IRRuntimeHelpers.java:1164)
org.jruby.ir.runtime.IRRuntimeHelpers.unresolvedSuperSplatArgs(IRRuntimeHelpers.java:1146)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.suppressor.invokeSuper4:-unknown-super-target-(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/suppressor.rb:48)
srv.newman.shared.bundle.jruby.$2_dot_5_dot_0.gems.activerecord_minus_5_dot_2_dot_4_dot_3.lib.active_record.suppressor.RUBY$method$save!$0(/srv/newman/shared/bundle/jruby/2.5.0/gems/activerecord-5.2.4.3/lib/active_record/suppressor.rb:48)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:101)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:123)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:191)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
srv.newman.releases.$20200511175427.app.models.notification_profile.invokeOther1:save!(/srv/newman/releases/20200511175427/app/models/notification_profile.rb:124)
**more app code**
@mogman1
Copy link
Author

mogman1 commented Jun 8, 2020

Over the weekend, I tried updating the jdbc postgres driver from 42.2.5 to 42.2.13 (I figured out what I was doing wrong). I still run into error after a while (see beginning of stack trace below), but at least this time it points to a line that makes sense (see https://github.com/pgjdbc/pgjdbc/blob/REL42.2.13/pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java#L459)

[ERROR] [2020-06-05 20:23:04 -0600] [Failable] Java::JavaLang::NullPointerException: 
[ERROR] [2020-06-05 20:23:04 -0600] [Failable] org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:459)
org.postgresql.jdbc.PgStatement.execute(PgStatement.java:369)
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:310)
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:296)
org.postgresql.jdbc.PgStatement.executeUpdate(PgStatement.java:1218)
arjdbc.jdbc.RubyJdbcConnection$10.call(RubyJdbcConnection.java:927)
arjdbc.jdbc.RubyJdbcConnection$10.call(RubyJdbcConnection.java:916)
arjdbc.jdbc.RubyJdbcConnection.withConnection(RubyJdbcConnection.java:3514)
arjdbc.jdbc.RubyJdbcConnection.withConnection(RubyJdbcConnection.java:3480)
arjdbc.jdbc.RubyJdbcConnection.execute_insert_pk(RubyJdbcConnection.java:916)
arjdbc.jdbc.RubyJdbcConnection$INVOKER$i$execute_insert_pk.call(RubyJdbcConnection$INVOKER$i$execute_insert_pk.gen)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:201)
org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:326)
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant