Rails 4.2.5 + jpmobile 4.2.2 でエラー

101 views
Skip to first unread message

naopontan

unread,
Feb 22, 2016, 11:33:45 PM2/22/16
to jpmobile
こんにちは。

Rails 4.2.5 + jpmobile 4.2.2 でエラーが出ました。
rails は ほぼ rails new した直後の状態です。

特に何もしていない状態でエラーがでるのでバージョンの組み合わせかな?と思い、今から jpmobile の旧バージョンで
試してみます。
もし、既知の問題であればご教示願います。

1) Gemfile に記述して bundle install
2) application_controller.rb に「include Jpmobile::ViewSelector」を記述するとエラー

以下にスタックトレースを記します。

=> Booting WEBrick
=> Rails 4.2.5 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2016-02-23 13:19:08] INFO  WEBrick 1.3.1
[2016-02-23 13:19:08] INFO  ruby 2.2.3 (2015-08-18) [i686-linux]
[2016-02-23 13:19:08] INFO  WEBrick::HTTPServer#start: pid=7589 port=3000


Started GET "/" for 127.0.0.1 at 2016-02-23 13:19:26 +0900
Processing by WelcomeController#index as HTML
Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.0ms)

ArgumentError (wrong number of arguments (3 for 4)):
  vendor/bundle/ruby/2.2.0/gems/jpmobile-4.2.2/lib/jpmobile/resolver.rb:14:in `query'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/template/resolver.rb:179:in `find_templates'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/template/resolver.rb:116:in `block in find_all'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/template/resolver.rb:146:in `block in cached'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/template/resolver.rb:63:in `cache'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/template/resolver.rb:145:in `cached'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/template/resolver.rb:115:in `find_all'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/path_set.rb:53:in `block (2 levels) in find_all'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/path_set.rb:52:in `each'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/path_set.rb:52:in `block in find_all'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/path_set.rb:51:in `each'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/path_set.rb:51:in `find_all'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/path_set.rb:46:in `find'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/lookup_context.rb:121:in `find'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:8:in `render'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/renderer/renderer.rb:42:in `render_template'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/renderer/renderer.rb:23:in `render'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/rendering.rb:100:in `_render_template'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/streaming.rb:217:in `_render_template'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/rendering.rb:83:in `render_to_body'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
  vendor/bundle/ruby/2.2.0/gems/jpmobile-4.2.2/lib/jpmobile/hook_action_controller.rb:24:in `render_to_body_with_jpmobile'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/rendering.rb:25:in `render'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:16:in `render'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
  /home/takaesu/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/core_ext/benchmark.rb:12:in `ms'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
  vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.5/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:43:in `render'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:198:in `process_action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:10:in `process_action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:117:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:117:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:505:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:505:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:19:in `process_action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rescue.rb:29:in `process_action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `block in instrument'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `instrument'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
  vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.5/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:137:in `process'
  vendor/bundle/ruby/2.2.0/gems/actionview-4.2.5/lib/action_view/rendering.rb:30:in `process'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal.rb:196:in `dispatch'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal.rb:237:in `block in action'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:76:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:45:in `serve'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:43:in `block in serve'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:in `each'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:in `serve'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:817:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
  vendor/bundle/ruby/2.2.0/gems/jpmobile-4.2.2/lib/jpmobile/rack/mobile_carrier.rb:13:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/flash.rb:260:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/cookies.rb:560:in `call'
  vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.5/lib/active_record/query_cache.rb:36:in `call'
  vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
  vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.5/lib/active_record/migration.rb:377:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/reloader.rb:73:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
  vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/middleware.rb:39:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:38:in `call_app'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `block in call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:26:in `tagged'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `tagged'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/static.rb:116:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/engine.rb:518:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/application.rb:165:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
  /home/takaesu/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
  /home/takaesu/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
  /home/takaesu/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'


  Rendered vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.0ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (26.9ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/_markup.html.erb (0.3ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.2ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.2ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.2ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/console.js.erb within layouts/javascript (18.9ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/main.js.erb within layouts/javascript (0.2ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.6ms)
  Rendered vendor/bundle/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/templates/index.html.erb (39.9ms)


Shin-ichiro OGAWA

unread,
Feb 22, 2016, 11:41:23 PM2/22/16
to jpmobile
小川です。

Securiy Fixが入ったRails 4.2.5.1のための変更が入っているので、
4.2.5.1を利用してください。


--------
小川 伸一郎 (Shin-ichiro OGAWA)
GPG ID 94B70E36 / 75360751
  fingerprint: {C64E 9826 8A75 723E DE54 / 70A8 F623 220C 94B7 0E36}


--
このメールは Google グループのグループ「jpmobile」に登録しているユーザーに送られています。
このグループから退会し、グループからのメールの配信を停止するには jpmobile+u...@googlegroups.com にメールを送信してください。
このグループに投稿するには jpmo...@googlegroups.com にメールを送信してください。
https://groups.google.com/group/jpmobile からこのグループにアクセスしてください。
その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。

naopontan

unread,
Feb 22, 2016, 11:48:26 PM2/22/16
to jpmobile
ありがとうございます!
今からやってみます。

2016年2月23日火曜日 13時41分23秒 UTC+9 Rust Stnard:
Reply all
Reply to author
Forward
0 new messages