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

Travis CI reports NoMethodError: undefined method status' for #<Array:0x254513e8>` when tested with jruby-head #1279

Closed
yahonda opened this issue Apr 3, 2017 · 1 comment

Comments

@yahonda
Copy link
Collaborator

yahonda commented Apr 3, 2017

Travis CI reports NoMethodError: undefined method status' for #Array:0x254513e8` when tested with jruby-head

https://travis-ci.org/rsim/oracle-enhanced/jobs/218137456

  • Environments
jruby 9.1.9.0-SNAPSHOT (2.3.3) 2017-04-03 e7bcde5 OpenJDK 64-Bit Server VM 25.121-b14 on 1.8.0_121-b14 +jit [linux-x86_64]
$ java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b14)
OpenJDK 64-Bit Server VM (build 25.121-b14, mixed mode)
  • Output
$ bundle exec rake spec
==> Loading config from ENV or use default
==> Running specs with JRuby version 9.1.9.0-SNAPSHOT
==> Effective ActiveRecord version 5.2.0.alpha
/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/bin/jruby -I/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib:/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-support-3.5.0/lib /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
==> Loading config from ENV or use default
==> Running specs with JRuby version 9.1.9.0-SNAPSHOT
/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/bundler/gems/ruby-plsql-f3a4ba8034bb/lib/plsql/variable.rb:87: warning: shadowing outer local variable - column
==> Effective ActiveRecord version 5.2.0.alpha
..............................................*..........................*.........................................................................................................................................................................................................................................................................*......................*..

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) OracleEnhancedAdapter explain should explain query with binds
     # Pending until further investigation made for #908
     Failure/Error: Unable to find oracle.jdbc.driver.OraclePreparedStatement.setLongInternal(oracle/jdbc/driver/OraclePreparedStatement.java to read failed line

     ActiveRecord::StatementInvalid:
       Java::JavaSql::SQLException: Invalid column index: EXPLAIN PLAN FOR SELECT "TEST_POSTS".* FROM "TEST_POSTS" WHERE "TEST_POSTS"."ID" = 0
     # oracle.jdbc.driver.OraclePreparedStatement.setLongInternal(oracle/jdbc/driver/OraclePreparedStatement.java:4857)
     # oracle.jdbc.driver.OraclePreparedStatement.setLong(oracle/jdbc/driver/OraclePreparedStatement.java:4848)
     # oracle.jdbc.driver.OraclePreparedStatementWrapper.setLong(oracle/jdbc/driver/OraclePreparedStatementWrapper.java:201)
     # java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
     # org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:468)
     # org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:326)
     # RUBY.bind_param(/home/yahonda/git/oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb:348)
     # RUBY.block in bind_params(/home/yahonda/git/oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb:339)
     # org.jruby.RubyArray.each(org/jruby/RubyArray.java:1734)
     # org.jruby.RubyArray$INVOKER$i$0$0$each_DBG.call(org/jruby/RubyArray$INVOKER$i$0$0$each_DBG.gen)
     # RUBY.bind_params(/home/yahonda/git/oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb:335)
     # RUBY.block in exec_query(/home/yahonda/git/oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:34)
     # RUBY.block in log(/home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:580)
     # RUBY.mon_synchronize(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/stdlib/monitor.rb:214)
     # RUBY.block in log(/home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:579)
     # RUBY.instrument(/home/yahonda/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21)
     # RUBY.log(/home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:578)
     # RUBY.log(/home/yahonda/git/oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:1037)
     # RUBY.exec_query(/home/yahonda/git/oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:22)
     # RUBY.explain(/home/yahonda/git/oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:72)
     # RUBY.block in (root)(/home/yahonda/git/oracle-enhanced/spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb:582)
     # org.jruby.RubyBasicObject.yieldUnder(org/jruby/RubyBasicObject.java:1747)
     # org.jruby.RubyBasicObject.instance_exec(org/jruby/RubyBasicObject.java:1724)
     # org.jruby.RubyBasicObject$INVOKER$i$0$3$instance_exec19_DBG.call(org/jruby/RubyBasicObject$INVOKER$i$0$3$instance_exec19_DBG.gen)
     # RUBY.block in run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example.rb:254)
     # RUBY.block in with_around_and_singleton_context_hooks(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example.rb:496)
     # RUBY.block in with_around_example_hooks(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example.rb:453)
     # RUBY.block in run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/hooks.rb:464)
     # RUBY.run_around_example_hooks_for(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/hooks.rb:602)
     # RUBY.run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/hooks.rb:464)
     # RUBY.with_around_example_hooks(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example.rb:453)
     # RUBY.with_around_and_singleton_context_hooks(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example.rb:496)
     # RUBY.run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example.rb:251)
     # RUBY.block in run_examples(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:627)
     # org.jruby.RubyArray.collect(org/jruby/RubyArray.java:2472)
     # org.jruby.RubyArray.map(org/jruby/RubyArray.java:2486)
     # org.jruby.RubyArray$INVOKER$i$0$0$map19_DBG.call(org/jruby/RubyArray$INVOKER$i$0$0$map19_DBG.gen)
     # RUBY.run_examples(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:623)
     # RUBY.run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:589)
     # RUBY.block in run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:590)
     # org.jruby.RubyArray.collect(org/jruby/RubyArray.java:2472)
     # org.jruby.RubyArray.map(org/jruby/RubyArray.java:2486)
     # org.jruby.RubyArray$INVOKER$i$0$0$map19_DBG.call(org/jruby/RubyArray$INVOKER$i$0$0$map19_DBG.gen)
     # RUBY.run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:590)
     # RUBY.block in run_specs(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:113)
     # org.jruby.RubyArray.collect(org/jruby/RubyArray.java:2472)
     # org.jruby.RubyArray.map(org/jruby/RubyArray.java:2486)
     # org.jruby.RubyArray$INVOKER$i$0$0$map19_DBG.call(org/jruby/RubyArray$INVOKER$i$0$0$map19_DBG.gen)
     # RUBY.block in run_specs(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:113)
     # RUBY.with_suite_hooks(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1835)
     # RUBY.block in run_specs(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:112)
     # RUBY.report(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:77)
     # RUBY.run_specs(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:111)
     # RUBY.run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:87)
     # RUBY.run(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71)
     # RUBY.invoke(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45)
     # RUBY.<main>(/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/exe/rspec:4)
     # org.jruby.Ruby.runInterpreter(org/jruby/Ruby.java:844)
     # org.jruby.Ruby.runInterpreter(org/jruby/Ruby.java:848)
     # org.jruby.Ruby.runNormally(org/jruby/Ruby.java:751)
     # org.jruby.Ruby.runNormally(org/jruby/Ruby.java:764)
     # org.jruby.Ruby.runFromMain(org/jruby/Ruby.java:577)
     # org.jruby.Main.doRunFromMain(org/jruby/Main.java:417)
     # org.jruby.Main.internalRun(org/jruby/Main.java:305)
     # org.jruby.Main.run(org/jruby/Main.java:232)
     # org.jruby.Main.main(org/jruby/Main.java:204)
     # ------------------
     # --- Caused by: ---
     # Java::JavaSql::SQLException:
     #   Invalid column index
     #   oracle.jdbc.driver.OraclePreparedStatement.setLongInternal(oracle/jdbc/driver/OraclePreparedStatement.java:4857)

  2) OracleEnhancedConnection create JDBC connection should create a new connection using JNDI
     # cannot load Java class org.apache.commons.pool.impl.GenericObjectPool
     # ./spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb:187

  3) OracleEnhancedAdapter schema definition load schema multi insert is NOT supported should loads the migration schema table from insert versions sql
     # Not supported in this database version
     # ./spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb:1348

  4) OracleEnhancedAdapter structure dump schema migrations multi insert is NOT supported should dump schema migrations one version per insert
     # Not supported in this database version
     # ./spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb:331


Finished in 10 minutes 44 seconds (files took 5.04 seconds to load)
365 examples, 0 failures, 4 pending

NoMethodError: undefined method `status' for #<Array:0x3bc57af4>
        block in result at (erb):15
                   each at org/jruby/RubyArray.java:1734
        each_with_index at org/jruby/RubyEnumerable.java:1067
                 <eval> at (erb):14
                   eval at org/jruby/RubyKernel.java:1000
                 result at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/stdlib/erb.rb:864
  formatted_source_file at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:56
        block in result at (erb):36
                   each at org/jruby/RubyArray.java:1734
                 <eval> at (erb):35
                   eval at org/jruby/RubyKernel.java:1000
                 result at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/stdlib/erb.rb:864
        block in format at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:23
                   open at org/jruby/RubyIO.java:1139
                 format at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:22
                format! at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/bundler/gems/simplecov-1be16d266fe5/lib/simplecov/result.rb:46
       block in at_exit at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/bundler/gems/simplecov-1be16d266fe5/lib/simplecov/configuration.rb:180
        block in (root) at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/bundler/gems/simplecov-1be16d266fe5/lib/simplecov/defaults.rb:68
/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/bin/jruby -I/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/lib:/home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-support-3.5.0/lib /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/rspec-core-3.5.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
NoMethodError: undefined method `status' for #<Array:0x3635099>
        block in result at (erb):15
                   each at org/jruby/RubyArray.java:1734
        each_with_index at org/jruby/RubyEnumerable.java:1067
                 <eval> at (erb):14
                   eval at org/jruby/RubyKernel.java:1000
                 result at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/stdlib/erb.rb:864
  formatted_source_file at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:56
        block in result at (erb):36
                   each at org/jruby/RubyArray.java:1734
                 <eval> at (erb):35
                   eval at org/jruby/RubyKernel.java:1000
                 result at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/stdlib/erb.rb:864
        block in format at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:23
                   open at org/jruby/RubyIO.java:1139
                 format at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/gems/simplecov-html-0.10.0/lib/simplecov-html.rb:22
                format! at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/bundler/gems/simplecov-1be16d266fe5/lib/simplecov/result.rb:46
       block in at_exit at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/bundler/gems/simplecov-1be16d266fe5/lib/simplecov/configuration.rb:180
        block in (root) at /home/yahonda/.rbenv/versions/jruby-9.1.9.0-dev/lib/ruby/gems/shared/bundler/gems/simplecov-1be16d266fe5/lib/simplecov/defaults.rb:68
$

Since jruby-head failures allowed, this is not a prioriry now.

@yahonda
Copy link
Collaborator Author

yahonda commented May 18, 2017

This error itself is reported as jruby/jruby#4610. simplecov-ruby/simplecov-html#53 addresses it at simplecov-html side.

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