Forum: JRuby undefined method `accept' for nil:NilClass

B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2012-01-20 21:12
(Received via mailing list)
I've upgraded to rails 3.2.
I'm using jruby-1.6.5.
When I run db:migrate rake abort with message "undefined method
`accept' for nil:NilClass".
I had not that problem with jruby-1.6.5 and rails 3.1.
I've submited the bug to jira.
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2012-01-21 10:02
(Received via mailing list)
On 20 January 2012 21:11, Mauro <mrsanna1@gmail.com> wrote:
> I've upgraded to rails 3.2.
> I'm using jruby-1.6.5.
> When I run db:migrate rake abort with message "undefined method
> `accept' for nil:NilClass".
> I had not that problem with jruby-1.6.5 and rails 3.1.
> I've submited the bug to jira.

Someone have the same problem?
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2012-01-22 00:13
(Received via mailing list)
On 21 January 2012 10:01, Mauro <mrsanna1@gmail.com> wrote:
> On 20 January 2012 21:11, Mauro <mrsanna1@gmail.com> wrote:
>> I've upgraded to rails 3.2.
>> I'm using jruby-1.6.5.
>> When I run db:migrate rake abort with message "undefined method
>> `accept' for nil:NilClass".
>> I had not that problem with jruby-1.6.5 and rails 3.1.
>> I've submited the bug to jira.
>
> Someone have the same problem?

It seems so strange to me that none has reported to have the same
problem after upgrade to rails 3.2.
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2012-01-22 00:16
(Received via mailing list)
that's the trace:


activerecord (3.2.0)
lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
`to_sql'
activerecord (3.2.0)
lib/active_record/connection_adapters/abstract/query_cache.rb:60:in
`select_all'
activerecord (3.2.0) lib/active_record/querying.rb:38:in `find_by_sql'
activerecord (3.2.0) lib/active_record/explain.rb:38:in
`logging_query_plan'
activerecord (3.2.0) lib/active_record/querying.rb:37:in `find_by_sql'
activerecord (3.2.0) lib/active_record/relation.rb:170:in `exec_queries'
activerecord (3.2.0) lib/active_record/relation.rb:159:in `to_a'
activerecord (3.2.0) lib/active_record/explain.rb:31:in
`logging_query_plan'
activerecord (3.2.0) lib/active_record/relation.rb:158:in `to_a'
activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:159:in
`all'
org/jruby/RubyBasicObject.java:1688:in `__send__'
activerecord (3.2.0) lib/active_record/querying.rb:5:in `all'
app/controllers/companies_controller.rb:14:in `index'
org/jruby/RubyBasicObject.java:1688:in `__send__'
org/jruby/RubyKernel.java:2114:in `send'
actionpack (3.2.0) lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
actionpack (3.2.0) lib/abstract_controller/base.rb:167:in
`process_action'
actionpack (3.2.0) lib/action_controller/metal/rendering.rb:10:in
`process_action'
actionpack (3.2.0) lib/abstract_controller/callbacks.rb:18:in
`process_action'
activesupport (3.2.0) lib/active_support/callbacks.rb:439:in
`_run__796208665__process_action__1096936011__callbacks'
org/jruby/RubyBasicObject.java:1688:in `__send__'
org/jruby/RubyKernel.java:2114:in `send'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in
`__run_callback'
activesupport (3.2.0) lib/active_support/callbacks.rb:390:in
`_run_process_action_callbacks'
org/jruby/RubyBasicObject.java:1694:in `__send__'
org/jruby/RubyKernel.java:2118:in `send'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in
`run_callbacks'
actionpack (3.2.0) lib/abstract_controller/callbacks.rb:17:in
`process_action'
actionpack (3.2.0) lib/action_controller/metal/rescue.rb:29:in
`process_action'
actionpack (3.2.0)
lib/action_controller/metal/instrumentation.rb:30:in `process_action'
activesupport (3.2.0) lib/active_support/notifications.rb:123:in
`instrument'
activesupport (3.2.0)
lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.0) lib/active_support/notifications.rb:123:in
`instrument'
actionpack (3.2.0)
lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.0)
lib/action_controller/metal/params_wrapper.rb:205:in `process_action'
activerecord (3.2.0)
lib/active_record/railties/controller_runtime.rb:18:in
`process_action'
actionpack (3.2.0) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.0) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.0) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.0)
lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.0) lib/action_controller/metal.rb:246:in `action'
org/jruby/RubyProc.java:258:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in
`dispatch'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:30:in `call'
journey (1.0.0) lib/journey/router.rb:60:in `call'
org/jruby/RubyArray.java:1612:in `each'
journey (1.0.0) lib/journey/router.rb:48:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:570:in
`call'
sass (3.1.12) lib/sass/plugin/rack.rb:54:in `call'
warden (1.1.0) lib/warden/manager.rb:35:in `call'
org/jruby/RubyKernel.java:1206:in `catch'
warden (1.1.0) lib/warden/manager.rb:34:in `call'
actionpack (3.2.0)
lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.0) lib/rack/etag.rb:23:in `call'
rack (1.4.0) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/head.rb:14:in `call'
remotipart (1.0.1) lib/remotipart/middleware.rb:30:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/params_parser.rb:21:in
`call'
actionpack (3.2.0) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.0) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.0) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/cookies.rb:338:in
`call'
activerecord (3.2.0) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.0)
lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in
`call'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:28:in
`call'
activesupport (3.2.0) lib/active_support/callbacks.rb:408:in
`_run__453674643__call__1045394743__callbacks'
org/jruby/RubyBasicObject.java:1688:in `__send__'
org/jruby/RubyKernel.java:2114:in `send'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in
`__run_callback'
activesupport (3.2.0) lib/active_support/callbacks.rb:390:in
`_run_call_callbacks'
org/jruby/RubyBasicObject.java:1688:in `__send__'
org/jruby/RubyKernel.java:2114:in `send'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in
`run_callbacks'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in
`call'
actionpack (3.2.0) lib/action_dispatch/middleware/reloader.rb:65:in
`call'
actionpack (3.2.0) lib/action_dispatch/middleware/remote_ip.rb:31:in
`call'
actionpack (3.2.0)
lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.0)
lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.0) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.0) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/request_id.rb:22:in
`call'
rack (1.4.0) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.0) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.0)
lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.0) lib/rack/lock.rb:15:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.2.0) lib/rails/engine.rb:479:in `call'
railties (3.2.0) lib/rails/application.rb:220:in `call'
rack (1.4.0) lib/rack/content_length.rb:14:in `call'
railties (3.2.0) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.0) lib/rack/handler/webrick.rb:59:in `service'
/home/mauro/jruby/lib/ruby/1.9/webrick/httpserver.rb:111:in `service'
/home/mauro/jruby/lib/ruby/1.9/webrick/httpserver.rb:70:in `run'
/home/mauro/jruby/lib/ruby/1.9/webrick/server.rb:183:in `start_thread'
2dd6e5d9b64b48c3ed571f2edc1f913f?d=identicon&s=25 Venka Ashtakala (venka10)
on 2012-01-23 14:36
I am getting the same error, and I am using a SQLite database.
5c0b963a5d80a4bef067204dc1149881?d=identicon&s=25 Shyam Habarakada (shyamh)
on 2012-01-23 21:14
I get the same error, and using mysql adapter -- development environment
on OSX (haven't tested on production yet)

activerecord (3.2.0)
lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
`to_sql'
activerecord (3.2.0)
lib/active_record/connection_adapters/abstract/query_cache.rb:60:in
`select_all'
activerecord (3.2.0) lib/active_record/querying.rb:38:in `block in
find_by_sql'
activerecord (3.2.0) lib/active_record/explain.rb:38:in
`logging_query_plan'
activerecord (3.2.0) lib/active_record/querying.rb:37:in `find_by_sql'
activerecord (3.2.0) lib/active_record/relation.rb:170:in `exec_queries'
activerecord (3.2.0) lib/active_record/relation.rb:159:in `block in
to_a'

<snip />
40e5e9fe36a1f85166493faac2c17499?d=identicon&s=25 Hirotsugu Asari (Guest)
on 2012-01-23 21:20
(Received via mailing list)
Hi.

We have a JIRA ticket now: https://jira.codehaus.org/browse/JRUBY-6363

This is most likely a JRuby issue (and much less likely JDBC
adapter/Rails issue).
3371fa23f27b88a3d7e234f5f90cf692?d=identicon&s=25 Randy Parker (transonik)
on 2012-01-23 22:52
I'm getting the error on Ubuntu when running an Oracle query.   MRI Ruby
1.9.3-p0
5c0b963a5d80a4bef067204dc1149881?d=identicon&s=25 Shyam Habarakada (shyamh)
on 2012-01-23 23:24
Opened an issue in the rails github
https://github.com/rails/rails/issues/4632
5c0b963a5d80a4bef067204dc1149881?d=identicon&s=25 Shyam Habarakada (shyamh)
on 2012-01-23 23:37
I was able to FIX the issue by getting the latest mysql2 gem. In my gem
file, I has a specific older vesion and removing the version and
updating the bundle resolved the issue.

Here's the closing comment from GitHub:
https://github.com/rails/rails/issues/4632
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2012-01-23 23:41
(Received via mailing list)
On 23 January 2012 23:37, Shyam Habarakada <lists@ruby-forum.com> wrote:
> I was able to FIX the issue by getting the latest mysql2 gem. In my gem
> file, I has a specific older vesion and removing the version and
> updating the bundle resolved the issue.

I'm using postgres and I've still the issue.
F24d1e7ef449d5b771a0cd5e0c941ac8?d=identicon&s=25 David Wei (dwei)
on 2012-01-26 18:17
Same case using ruby-oci8(v2.1.0) along with oracle_enhanced(v1.4.0)
adapters. It worked with Rails 3.1. Neither console nor rake work. I
guess the problem is from oracle_enhanced adapter because the ruby-oci8
worked (OCI8.new ...).
F24d1e7ef449d5b771a0cd5e0c941ac8?d=identicon&s=25 David Wei (dwei)
on 2012-01-26 19:15
David Wei wrote in post #1042688:
> Same case using ruby-oci8(v2.1.0) along with oracle_enhanced(v1.4.0)
> adapters. It worked with Rails 3.1. Neither console nor rake work. I
> guess the problem is from oracle_enhanced adapter because the ruby-oci8
> worked (OCI8.new ...).

I have to uninstall rails v3.2 and install rails 3.1 to make my app
work. Thanks!
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2012-01-27 08:34
(Received via mailing list)
On 26 January 2012 19:15, David Wei <lists@ruby-forum.com> wrote:
> David Wei wrote in post #1042688:
>> Same case using ruby-oci8(v2.1.0) along with oracle_enhanced(v1.4.0)
>> adapters. It worked with Rails 3.1. Neither console nor rake work. I
>> guess the problem is from oracle_enhanced adapter because the ruby-oci8
>> worked (OCI8.new ...).
>
> I have to uninstall rails v3.2 and install rails 3.1 to make my app
> work. Thanks!

I've done the same, but I hope the bug is resolved soon.
3371fa23f27b88a3d7e234f5f90cf692?d=identicon&s=25 Randy Parker (transonik)
on 2012-02-01 22:39
After upgrading activerecord-oracle_enhanced-adapter to 1.4.1, it is now
working for me against both MySQL and Oracle from Rails 3.2.1 and MRI
Ruby 1.9.3-p0.

Thank you Raimonds Simanovskis & Edgars Beigarts!
2553a4e57589e8d210aaf7c1e29906c9?d=identicon&s=25 "Sébastien Le Callonnec" <slc_ie@yahoo.ie> (Guest)
on 2012-02-04 00:11
(Received via mailing list)
Hi,


On 27/01/2012 07:32, Mauro wrote:
> I've done the same, but I hope the bug is resolved soon.
>

As a follow-up to this in case someone comes across this thread (as I
did), this was a AR-JDBC issue that’s now fixed.

$ bundle update activerecord-jdbc-adapter

fixes the problem for me.

Regards,
Sébastien.
This topic is locked and can not be replied to.