Issue when adding Confirmable in Devise - [ArgumentError - wrong number of arguments (given 0, expected 1)] - ruby-on-rails-5.1

I've been setting up Devise Confirmable for my development environment Rails 5.1.7 app.
My initializers/devise.rb looks like:
Devise.setup do |config|
require 'devise/orm/active_record'
config.secret_key = '########################'
config.authentication_keys = [ :login ]
config.skip_session_storage = [:http_auth]
config.stretches = Rails.env.test? ? 1 : 10
config.pepper = "################"
config.reconfirmable = true
config.password_length = 8..128
config.lock_strategy = :failed_attempts
config.unlock_strategy = :none
config.maximum_attempts = 3
config.sign_out_all_scopes = false
config.sign_out_via = :delete
config.warden do |manager|
manager.failure_app = CustomAuthenticationFailure
end
config.expire_password_after = 90.days
end
and my enviroments/development looks like:
config.action_mailer.raise_delivery_errors = false
config.action_mailer.perform_caching = false
config.active_support.deprecation = :log
config.active_record.migration_error = :page_load
config.assets.debug = true
config.assets.quiet = true
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
config.action_mailer.default_url_options = { :host => "localhost", :port => '3000'}
config.hostname = ''
config.relative_url = ''
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.smtp_settings = {
tls: 'true',
address: '***.***.com',
port: '25',
domain: '2222.com',
authentication: :login,
user_name: '11111#22222.com',
password: '111111'
}
When I sign in for an account, from the UI, I get the below error:
ArgumentError at /users/login wrong number of arguments (given 0, expected 1) activerecord (5.1.7) lib/active_record/persistence.rb def
update(attributes)
For the request parameter
*{"utf8"=>"✓", "authenticity_token"=>"***********", "user"=>{"login"=>"admin", "password"=>"***"}, "commit"=>"Login", "controller"=>"devise/sessions", "action"=>"create"}*
Error shown in the backend console -
ArgumentError - wrong number of arguments (given 0, expected 1):
(eval):1:in `block in compile_lambda'
Database fields added for confirmable are :
## Confirmable
t.string :confirmation_token
t.datetime :confirmed_at
t.datetime :confirmation_sent_at
t.string :unconfirmed_email # Only if using reconfirmable
The confirmations_controller looks like -
class ConfirmationsController < Devise::ConfirmationsController
private
def after_confirmation_path_for(resource_name, resource)
sign_in(resource) # In case you want to sign in the user
root_path
end
end
In routes.rb
devise_for :users, :path_names => {:sign_in => '/login', :sign_out => '/logout'}, :controllers => {:passwords => "passwords", :registrations => "registrations", confirmations: 'confirmations'} do
get "/login" => "devise/sessions#new", :as => :new_user_session
post "/login" => "devise/sessions#create", :as => :user_session
end
devise_scope :user do
root "devise/sessions#new"
get "/sessions/new", :to => "devise/sessions#new"
get "/login", :to => "devise/sessions#new"
get "/logout", :to => "sessions#destroy"
get "/users/logout", :to => "devise_sessions#destroy"
end
Stack trace:
wrong number of arguments (given 0
expected 1)
["/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/persistence.rb:277:in `update'"
"(eval):1:in `block in compile_lambda'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:413:in `instance_exec'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:413:in `block in make_lambda'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:259:in `block (2 levels) in conditional'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:259:in `all?'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:259:in `block in conditional'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:511:in `block in invoke_after'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:511:in `each'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:511:in `invoke_after'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:132:in `run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:827:in `_run_commit_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/transactions.rb:343:in `committed!'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:86:in `commit_records'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:178:in `block in commit_transaction'"
"/home/user/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:168:in `commit_transaction'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:207:in `block in within_new_transaction'"
"/home/user/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/transactions.rb:210:in `transaction'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/transaction_retry-1.0.3/lib/transaction_retry/active_record/base.rb:32:in `transaction_with_retry'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/transactions.rb:381:in `with_transaction_returning_status'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/transactions.rb:308:in `block in save'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/transactions.rb:323:in `rollback_active_record_state!'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/transactions.rb:307:in `save'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/suppressor.rb:42:in `save'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/devise-4.6.2/lib/devise/models/rememberable.rb:62:in `forget_me!'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/devise-4.6.2/lib/devise/controllers/rememberable.rb:32:in `forget_me'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/devise-4.6.2/lib/devise/hooks/forgetable.rb:9:in `block in <top (required)>'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/hooks.rb:15:in `block in _run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/hooks.rb:10:in `each'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/hooks.rb:10:in `_run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/manager.rb:52:in `_run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/proxy.rb:274:in `block in logout'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/proxy.rb:272:in `each'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/proxy.rb:272:in `logout'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/devise-4.6.2/lib/devise/hooks/activatable.rb:9:in `block in <top (required)>'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/hooks.rb:15:in `block in _run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/hooks.rb:10:in `each'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/hooks.rb:10:in `_run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/manager.rb:52:in `_run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/proxy.rb:191:in `set_user'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/proxy.rb:339:in `_perform_authentication'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/proxy.rb:133:in `authenticate!'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/devise-4.6.2/app/controllers/devise/sessions_controller.rb:19:in `create'"
"/home/user/projects/revremit_refer/app/controllers/devise_sessions_controller.rb:16:in `create'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/abstract_controller/base.rb:186:in `process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal/rendering.rb:30:in `process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/abstract_controller/callbacks.rb:20:in `block in process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:108:in `block in run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/marginalia-1.8.0/lib/marginalia.rb:111:in `record_query_comment'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:117:in `block in run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:135:in `run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/abstract_controller/callbacks.rb:19:in `process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal/rescue.rb:20:in `process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/notifications.rb:166:in `block in instrument'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/notifications/instrumenter.rb:21:in `instrument'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/notifications.rb:166:in `instrument'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal/instrumentation.rb:30:in `process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/railties/controller_runtime.rb:22:in `process_action'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/abstract_controller/base.rb:124:in `process'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionview-5.1.7/lib/action_view/rendering.rb:30:in `process'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal.rb:189:in `dispatch'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_controller/metal.rb:253:in `dispatch'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/routing/route_set.rb:31:in `serve'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/routing/mapper.rb:16:in `block in <class:Constraints>'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/routing/mapper.rb:46:in `serve'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/journey/router.rb:50:in `block in serve'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/journey/router.rb:33:in `each'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/journey/router.rb:33:in `serve'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/routing/route_set.rb:844:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/manager.rb:36:in `block in call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/manager.rb:34:in `catch'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/warden-1.2.8/lib/warden/manager.rb:34:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/etag.rb:25:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/conditional_get.rb:38:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:232:in `context'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:226:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/cookies.rb:613:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activerecord-5.1.7/lib/active_record/migration.rb:556:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:97:in `run_callbacks'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/callbacks.rb:24:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/executor.rb:12:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/better_errors-2.5.1/lib/better_errors/middleware.rb:84:in `protected_app_call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/better_errors-2.5.1/lib/better_errors/middleware.rb:79:in `better_errors_call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/better_errors-2.5.1/lib/better_errors/middleware.rb:57:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/web-console-3.7.0/lib/web_console/middleware.rb:135:in `call_app'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/web-console-3.7.0/lib/web_console/middleware.rb:30:in `block in call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/web-console-3.7.0/lib/web_console/middleware.rb:20:in `catch'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/web-console-3.7.0/lib/web_console/middleware.rb:20:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/railties-5.1.7/lib/rails/rack/logger.rb:36:in `call_app'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/railties-5.1.7/lib/rails/rack/logger.rb:24:in `block in call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb:69:in `block in tagged'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb:26:in `tagged'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb:69:in `tagged'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/railties-5.1.7/lib/rails/rack/logger.rb:24:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/request_store-1.4.1/lib/request_store/middleware.rb:19:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/request_id.rb:25:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/method_override.rb:22:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/activesupport-5.1.7/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/executor.rb:12:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb:125:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/railties-5.1.7/lib/rails/engine.rb:522:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/puma-3.12.1/lib/puma/configuration.rb:227:in `call'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/puma-3.12.1/lib/puma/server.rb:660:in `handle_request'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/puma-3.12.1/lib/puma/server.rb:474:in `process_client'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/puma-3.12.1/lib/puma/server.rb:334:in `block in run'"
"/home/user/.rvm/gems/ruby-2.6.3#rails_5_1_2/gems/puma-3.12.1/lib/puma/thread_pool.rb:135:in `block in spawn_thread'"]
NOTE:
The same issue is seen when tried to create a new user, through rails console.

Related

Solr Repeater ReplicationHandler Exception

I am using Solr8.8.0 leader and there are about 16 repeaters. I am seeing following exception on repeater. (Not using SolrCloud) When I checked the Leader instance for file "_9.fdm", it is not there. So my question is where the repeater is getting the name of file from when it does not even exist on Leader? And how to resolve the issue. TIA
Exception while writing response for params: generation=11&checksum=true&qt=/replication&file=_9.fdm&wt=filestream&command=filecontent
java.nio.file.NoSuchFileException: /app/solr/testCore/data/index.20210817190431551/_9.fdm
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at java.nio.c`enter code here`hannels.FileChannel.open(FileChannel.java:335)
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:238)
at org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:181)
at org.apache.solr.handler.ReplicationHandler$DirectoryFileStream.write(ReplicationHandler.java:1648)
at org.apache.solr.core.SolrCore$4.write(SolrCore.java:2796)
at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:49)
at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:890)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:583)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
at java.lang.Thread.run(Thread.java:748)

PyFlink java.io.EOFException at java.io.DataInputStream.readFully

I have a PyFlink job that reads from a file, filter based on a condition, and print. This is a tree view of my working directory. This is the PyFlink script main.py:
from pyflink.datastream import StreamExecutionEnvironment
from pyflink.table import StreamTableEnvironment, DataTypes
from pyflink.table.udf import udf
# https://flink.apache.org/2020/04/09/pyflink-udf-support-flink.html
# https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/python/table-api-users-guide/udfs/python_udfs.html
#udf(input_types=[DataTypes.STRING()], result_type=DataTypes.MAP(DataTypes.STRING(), DataTypes.STRING()))
def parse(s):
import json
# a dummy parser
res = {'item_id': 123, 'tag': 'a'}
return res
env = StreamExecutionEnvironment.get_execution_environment()
t_env = StreamTableEnvironment.create(env)
t_env.register_function("parse", parse)
my_source_ddl = """
create table mySource (
id BIGINT,
contentstr STRING
) with (
'connector' = 'filesystem',
'format' = 'json',
'path' = '/tmp/input'
)
"""
my_sink_ddl = """
create table mySink (
id BIGINT
) with (
'connector' = 'print'
)
"""
my_transform_dml = """
insert into mySink
with t1 as (
select id, parse(contentstr) as content
from mySource
)
select id
from t1
where content['item_id'] is not null
and content['tag'] = 'a'
"""
t_env.execute_sql(my_source_ddl)
t_env.execute_sql(my_sink_ddl)
t_env.execute_sql(my_transform_dml).wait()
To run the main.py:
Ensure installing pyflink==1.12.0 in my conda env
/tmp/input has a single row of content {"id":1,"tag":"a"}
Then I run main.py and I get the exception:
Traceback (most recent call last):
File "udf_parse.py", line 53, in <module>
t_env.execute_sql(my_transform_dml).wait()
File "/usr/local/anaconda3/envs/pyflink-quickstart/lib/python3.7/site-packages/pyflink/table/table_result.py", line 76, in wait
get_method(self._j_table_result, "await")()
File "/usr/local/anaconda3/envs/pyflink-quickstart/lib/python3.7/site-packages/py4j/java_gateway.py", line 1286, in __call__
answer, self.gateway_client, self.target_id, self.name)
File "/usr/local/anaconda3/envs/pyflink-quickstart/lib/python3.7/site-packages/pyflink/util/exceptions.py", line 147, in deco
return f(*a, **kw)
File "/usr/local/anaconda3/envs/pyflink-quickstart/lib/python3.7/site-packages/py4j/protocol.py", line 328, in get_return_value
format(target_id, ".", name), value)
py4j.protocol.Py4JJavaError: An error occurred while calling o53.await.
: java.util.concurrent.ExecutionException: org.apache.flink.table.api.TableException: Failed to wait job finish
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
at org.apache.flink.table.api.internal.TableResultImpl.awaitInternal(TableResultImpl.java:123)
at org.apache.flink.table.api.internal.TableResultImpl.await(TableResultImpl.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.flink.api.python.shaded.py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at org.apache.flink.api.python.shaded.py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at org.apache.flink.api.python.shaded.py4j.Gateway.invoke(Gateway.java:282)
at org.apache.flink.api.python.shaded.py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at org.apache.flink.api.python.shaded.py4j.commands.CallCommand.execute(CallCommand.java:79)
at org.apache.flink.api.python.shaded.py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.flink.table.api.TableException: Failed to wait job finish
at org.apache.flink.table.api.internal.InsertResultIterator.hasNext(InsertResultIterator.java:56)
at org.apache.flink.table.api.internal.TableResultImpl$CloseableRowIteratorWrapper.hasNext(TableResultImpl.java:350)
at org.apache.flink.table.api.internal.TableResultImpl$CloseableRowIteratorWrapper.isFirstRowReady(TableResultImpl.java:363)
at org.apache.flink.table.api.internal.TableResultImpl.lambda$awaitInternal$1(TableResultImpl.java:110)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
Caused by: java.util.concurrent.ExecutionException: org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
at org.apache.flink.table.api.internal.InsertResultIterator.hasNext(InsertResultIterator.java:54)
... 7 more
Caused by: org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
at org.apache.flink.runtime.jobmaster.JobResult.toJobExecutionResult(JobResult.java:144)
at org.apache.flink.runtime.minicluster.MiniClusterJobClient.lambda$getJobExecutionResult$2(MiniClusterJobClient.java:117)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:616)
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:591)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975)
at org.apache.flink.runtime.rpc.akka.AkkaInvocationHandler.lambda$invokeRpc$0(AkkaInvocationHandler.java:237)
at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975)
at org.apache.flink.runtime.concurrent.FutureUtils$1.onComplete(FutureUtils.java:1046)
at akka.dispatch.OnComplete.internal(Future.scala:264)
at akka.dispatch.OnComplete.internal(Future.scala:261)
at akka.dispatch.japi$CallbackBridge.apply(Future.scala:191)
at akka.dispatch.japi$CallbackBridge.apply(Future.scala:188)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36)
at org.apache.flink.runtime.concurrent.Executors$DirectExecutionContext.execute(Executors.java:73)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:44)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:252)
at akka.pattern.PromiseActorRef.$bang(AskSupport.scala:572)
at akka.pattern.PipeToSupport$PipeableFuture$$anonfun$pipeTo$1.applyOrElse(PipeToSupport.scala:22)
at akka.pattern.PipeToSupport$PipeableFuture$$anonfun$pipeTo$1.applyOrElse(PipeToSupport.scala:21)
at scala.concurrent.Future$$anonfun$andThen$1.apply(Future.scala:436)
at scala.concurrent.Future$$anonfun$andThen$1.apply(Future.scala:435)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91)
at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:90)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:44)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: org.apache.flink.runtime.JobException: Recovery is suppressed by NoRestartBackoffTimeStrategy
at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.handleFailure(ExecutionFailureHandler.java:118)
at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.getFailureHandlingResult(ExecutionFailureHandler.java:80)
at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:233)
at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeHandleTaskFailure(DefaultScheduler.java:224)
at org.apache.flink.runtime.scheduler.DefaultScheduler.updateTaskExecutionStateInternal(DefaultScheduler.java:215)
at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:669)
at org.apache.flink.runtime.scheduler.SchedulerNG.updateTaskExecutionState(SchedulerNG.java:89)
at org.apache.flink.runtime.jobmaster.JobMaster.updateTaskExecutionState(JobMaster.java:447)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcInvocation(AkkaRpcActor.java:305)
at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:212)
at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:77)
at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:158)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21)
at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123)
at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
at akka.actor.Actor$class.aroundReceive(Actor.scala:517)
at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:225)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:592)
at akka.actor.ActorCell.invoke(ActorCell.scala:561)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:258)
at akka.dispatch.Mailbox.run(Mailbox.scala:225)
at akka.dispatch.Mailbox.exec(Mailbox.scala:235)
... 4 more
Caused by: java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at java.io.DataInputStream.readFully(DataInputStream.java:169)
at org.apache.flink.table.runtime.typeutils.StringDataSerializer.deserializeInternal(StringDataSerializer.java:88)
at org.apache.flink.table.runtime.typeutils.StringDataSerializer.deserialize(StringDataSerializer.java:82)
at org.apache.flink.table.runtime.typeutils.StringDataSerializer.deserialize(StringDataSerializer.java:34)
at org.apache.flink.table.runtime.typeutils.serializers.python.MapDataSerializer.deserializeInternal(MapDataSerializer.java:129)
at org.apache.flink.table.runtime.typeutils.serializers.python.MapDataSerializer.deserialize(MapDataSerializer.java:110)
at org.apache.flink.table.runtime.typeutils.serializers.python.MapDataSerializer.deserialize(MapDataSerializer.java:46)
at org.apache.flink.table.runtime.typeutils.serializers.python.RowDataSerializer.deserialize(RowDataSerializer.java:106)
at org.apache.flink.table.runtime.typeutils.serializers.python.RowDataSerializer.deserialize(RowDataSerializer.java:49)
at org.apache.flink.table.runtime.operators.python.scalar.RowDataPythonScalarFunctionOperator.emitResult(RowDataPythonScalarFunctionOperator.java:81)
at org.apache.flink.streaming.api.operators.python.AbstractPythonFunctionOperator.emitResults(AbstractPythonFunctionOperator.java:250)
at org.apache.flink.streaming.api.operators.python.AbstractPythonFunctionOperator.invokeFinishBundle(AbstractPythonFunctionOperator.java:273)
at org.apache.flink.streaming.api.operators.python.AbstractPythonFunctionOperator.processWatermark(AbstractPythonFunctionOperator.java:199)
at org.apache.flink.streaming.runtime.tasks.ChainingOutput.emitWatermark(ChainingOutput.java:123)
at org.apache.flink.streaming.runtime.tasks.SourceOperatorStreamTask$AsyncDataOutputToOutput.emitWatermark(SourceOperatorStreamTask.java:170)
at org.apache.flink.streaming.runtime.tasks.SourceOperatorStreamTask.advanceToEndOfEventTime(SourceOperatorStreamTask.java:110)
at org.apache.flink.streaming.runtime.tasks.SourceOperatorStreamTask.afterInvoke(SourceOperatorStreamTask.java:116)
at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:589)
at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:755)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:570)
at java.lang.Thread.run(Thread.java:748)
The issue is probably related to the udf. Any help? Thanks!
The root cause is:
#udf(input_types=[DataTypes.STRING()], result_type=DataTypes.MAP(DataTypes.STRING(), DataTypes.STRING()))
def parse(s):
import json
# a dummy parser
res = {'item_id': 123, 'tag': 'a'}
return res
The result_type is DataTypes.MAP(DataTypes.STRING(), DataTypes.STRING()), but item_id has value type integer.
A fix is simple:
def parse(s):
import json
# a dummy parser
res = {'item_id': 123, 'tag': 'a'}
res = {str(k): str(v) for k, v in res.items()}
return res

Transaction Roll Back is not working in Spring Data MongoDB

I was testing transaction roll back feature using Spring Data MongoDB(2.2.5) and MongoDB 4.2.5 Community Version. As mentioned in Spring Data official documentation I have configured MongoTransactionManager in the configuration class, and have created a replica set with 3 members in the back end.
Also, have used repository for mongo db transactions. Have annotated my Dao method using #Transactional. Even I have implemented the transaction scope in the method, my data is still getting saved in the collections(Person as well Address) and no rollback happening at the Databse layer on a Run time exception in the application. I have provided the required source code and trace from my application. Kindly help to troubleshoot the true and pleas let me if i miss anything from my end.
#Slf4j
#Configuration
#EnableMongoRepositories
#EnableTransactionManagement(proxyTargetClass=true)
class ApplicationConfig extends AbstractMongoClientConfiguration {
#Bean
MongoTransactionManager transactionManager(MongoDbFactory dbFactory) {
log.info("Creating dbFactory {}", dbFactory);
MongoTransactionManager manager=new MongoTransactionManager(dbFactory);
log.info("Creating manager {}",manager);
return manager;
}
#Override
public MongoClient mongoClient() {
return MongoClients.create("mongodb://localhost:27020,localhost:27021,localhost:27022/?replicaSet=rs0");
}
#Override
protected String getDatabaseName() {
return "testDB";
}
public #Bean MongoTemplate mongoTemplate() {
return new MongoTemplate(mongoClient(), "testDB");
}
}
#Slf4j
#Service("TestDao")
public class TestDaoImpl implements TestDao{
#Autowired
PersonRepository repository;
#Autowired
MongoOperations ops;
#Autowired
AddressRepository addressRepo;
#Transactional
public void save(List<PersonVO> personList) {
//if(!p.getNationaliy().equalsIgnoreCase("AU"))
AddressVO addVo=new AddressVO();
addVo.setCity("COCHIN");
addVo.setCountry("IN");
addVo.setHouseNo("Rose Villa 123");
Address addr=AddressMapper.INSTANCE.ToAddress(addVo);
addressRepo.save(addr);
//ops.insert(addr);
log.info("Saving....");
for(PersonVO vo:personList) {
log.info("Saving person");
Person p=PersonMapper.INSTANCE.ToPerson(vo);
repository.save(p);
}
throw new RuntimeException();
}
}
Here's the log, the exception and the stack trace.
2020-04-01 01:21:24.106 INFO 7696 --- [nio-7092-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-04-01 01:21:24.106 INFO 7696 --- [nio-7092-exec-2] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020-04-01 01:21:24.127 INFO 7696 --- [nio-7092-exec-2] o.s.web.servlet.DispatcherServlet : Completed initialization in 21 ms
2020-04-01 01:21:24.189 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : Creating new transaction with name [com.example.mongo.demo.service.TestServiceImpl.save]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
2020-04-01 01:21:24.227 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : About to start transaction for session [ClientSessionImpl#3e82b37d id = {"id": {"$binary": "zw5ZFyfdRPSSOgZ/pW/D3A==", "$type": "04"}}, causallyConsistent = true, txActive = false, txNumber = 0, error = d != java.lang.Boolean].
2020-04-01 01:21:24.228 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : Started transaction for session [ClientSessionImpl#3e82b37d id = {"id": {"$binary": "zw5ZFyfdRPSSOgZ/pW/D3A==", "$type": "04"}}, causallyConsistent = true, txActive = true, txNumber = 1, error = d != java.lang.Boolean].
2020-04-01 01:21:24.238 INFO 7696 --- [nio-7092-exec-2] c.e.mongo.demo.service.TestServiceImpl : Saving
2020-04-01 01:21:24.239 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : Participating in existing transaction
2020-04-01 01:21:24.285 DEBUG 7696 --- [nio-7092-exec-2] o.s.data.mongodb.core.MongoTemplate : Inserting Document containing fields: [houseNo, city, country, _class] in collection: address
2020-04-01 01:21:24.334 INFO 7696 --- [nio-7092-exec-2] org.mongodb.driver.connection : Opened connection [connectionId{localValue:7, serverValue:37}] to localhost:27021
2020-04-01 01:21:24.501 INFO 7696 --- [nio-7092-exec-2] com.example.mongo.demo.dao.TestDaoImpl : Saving....
2020-04-01 01:21:24.501 INFO 7696 --- [nio-7092-exec-2] com.example.mongo.demo.dao.TestDaoImpl : Saving person
2020-04-01 01:21:24.530 DEBUG 7696 --- [nio-7092-exec-2] o.s.data.mongodb.core.MongoTemplate : Inserting Document containing fields: [name, age, gender, nationaliy, _class] in collection: person
2020-04-01 01:21:24.532 INFO 7696 --- [nio-7092-exec-2] com.example.mongo.demo.dao.TestDaoImpl : Saving person
2020-04-01 01:21:24.533 DEBUG 7696 --- [nio-7092-exec-2] o.s.data.mongodb.core.MongoTemplate : Inserting Document containing fields: [name, age, gender, nationaliy, _class] in collection: person
2020-04-01 01:21:24.536 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : Participating transaction failed - marking existing transaction as rollback-only
2020-04-01 01:21:24.536 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : Initiating transaction rollback
2020-04-01 01:21:24.537 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : About to abort transaction for session [ClientSessionImpl#3e82b37d id = {"id": {"$binary": "zw5ZFyfdRPSSOgZ/pW/D3A==", "$type": "04"}}, causallyConsistent = true, txActive = true, txNumber = 1, error = d != java.lang.Boolean].
2020-04-01 01:21:24.538 DEBUG 7696 --- [nio-7092-exec-2] o.s.d.mongodb.MongoTransactionManager : About to release Session [ClientSessionImpl#3e82b37d id = {"id": {"$binary": "zw5ZFyfdRPSSOgZ/pW/D3A==", "$type": "04"}}, causallyConsistent = true, txActive = false, txNumber = 1, error = d != java.lang.Boolean] after transaction.
2020-04-01 01:21:24.554 ERROR 7696 --- [nio-7092-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException] with root cause
java.lang.RuntimeException: null
at com.example.mongo.demo.dao.TestDaoImpl.save(TestDaoImpl.java:57) ~[classes/:na]
at com.example.mongo.demo.dao.TestDaoImpl$$FastClassBySpringCGLIB$$8c1970a4.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366) ~[spring-tx-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99) ~[spring-tx-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at com.example.mongo.demo.dao.TestDaoImpl$$EnhancerBySpringCGLIB$$8ea2a8.save(<generated>) ~[classes/:na]
at com.example.mongo.demo.service.TestServiceImpl.save(TestServiceImpl.java:46) ~[classes/:na]
at com.example.mongo.demo.service.TestServiceImpl$$FastClassBySpringCGLIB$$949c2e6a.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366) ~[spring-tx-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99) ~[spring-tx-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at com.example.mongo.demo.service.TestServiceImpl$$EnhancerBySpringCGLIB$$7980a7ba.save(<generated>) ~[classes/:na]
at com.example.mongo.demo.controller.TestController.savePersons(TestController.java:33) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:109) ~[spring-boot-actuator-2.2.5.RELEASE.jar:2.2.5.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.31.jar:9.0.31]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

Error in druby when reading files

I'm using dRuby and i'm trying to read a file in this way:
SERVER'S CODE:
require 'drb/drb'
URI="druby://0.0.0.0:8787"
class TimeServer
def leer(nombre)
puts nombre
lines = []
File.open(nombre, "r") do |file|
file.each_line do |line|
lines << line
end
end
return lines
end
end
FRONT_OBJECT=TimeServer.new
$SAFE = 1
DRb.start_service(URI, FRONT_OBJECT)
DRb.thread.join
CLIENT'S CODE:
SERVER_URI="druby://192.168.56.1:8787"
DRb.start_service
timeserver = DRbObject.new_with_uri(SERVER_URI)
puts timeserver.leer("aname")
This is the error on the client's console:
C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:570:in `load': connection closed (DRb::DRbConnError)
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:632:in `recv_reply'
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:918:in `recv_reply'
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:1197:in `send_message'
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:1088:in `block (2 levels) in method_missing'
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:1172:in `open'
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:1087:in `block in method_missing'
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:1105:in `with_friend'
from C:/Ruby193/lib/ruby/1.9.1/drb/drb.rb:1086:in `method_missing'
from C:/Users/federico/Downloads/RUBY/PROGRAMITAS/pruebaclien.rb:5:in `<main>'
The program prints in the server's console the value of "nombre", but it crashes when it gets to File.open(nombre, "r").

Restlet that works on localhost throws NullPointerException when deployed on GAE

The following simple method works well on my local machine but throws a NullPointerException when I deploy it to App Engine. Calling any method on memberVO such as getId() throws NullPointerException. I cannot understand why this works on my local network but not on appspot.com.
I have tried replacing the serializable object with primitives and strings just for test purposes but none can be passed to GAE. All become null.
I also included the exception from the logs if anyone has any idea.
Thank you in advance for any insight.
Orville
#Override
public Boolean updateMember(MemberVO memberVO) {
PersistenceManager pm = PMF.get().getPersistenceManager();
try {
Member member = pm.getObjectById(Member.class, memberVO.getId());
member.setFirstName(memberVO.getFirstName());
member.setLastName(memberVO.getLastName());
pm.makePersistent(member);
} catch (NullPointerException npe) {
npe.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
} finally {
pm.close();
}
return true;
}
#Override
public Boolean updateMember(MemberVO memberVO) {
PersistenceManager pm = PMF.get().getPersistenceManager();
try {
Member member = pm.getObjectById(Member.class, memberVO.getId());
member.setFirstName(memberVO.getFirstName());
member.setLastName(memberVO.getLastName());
pm.makePersistent(member);
} catch (NullPointerException npe) {
npe.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
} finally {
pm.close();
}
return true;
}
Stacktrace:
12-20 05:23PM 48.523 /rest/member 500 3162ms 3858cpu_ms 8api_cpu_ms 0kb Restlet-Framework/2.0snapshot,gzip(gfe)
72.27.92.51 - - [20/Dec/2010:17:23:51 -0800] "POST /rest/member HTTP/1.1" 500 549 - "Restlet-Framework/2.0snapshot,gzip(gfe)"
"myapp.appspot.com" ms=3162 cpu_ms=3858 api_cpu_ms=8 cpm_usd=0.307323
loading_request=1 pending_ms=977
I 12-20 05:23PM 50.343
javax.servlet.ServletContext log: adapter: [Restlet] Attaching
application: com.myapp.MyApplication#1a3b359 to URI:
W 12-20 05:23PM 51.656
org.restlet.resource.UniformResource doCatch: Exception or error
caught in resource
java.lang.NullPointerException
at com.myapp.MemberResource.updateMember(MemberResource.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
43)
at java.lang.reflect.Method.invoke(Method.java:43)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:
453)
at org.restlet.resource.ServerResource.post(ServerResource.java:1095)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:
506)
at
org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:
563)
at
org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java :
299)
at org.restlet.resource.ServerResource.handle(ServerResource.java:
821)
at org.restlet.resource.Finder.handle(Finder.java:513)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:495)
at org.restlet.routing.Router.handle(Router.java:735)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at
org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:
154)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at
org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.j ava:
72)
at org.restlet.Application.handle(Application.java:382)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:495)
at org.restlet.routing.Router.handle(Router.java:735)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:495)
at org.restlet.routing.Router.handle(Router.java:735)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.Component.handle(Component.java:387)
at org.restlet.Server.handle(Server.java:488)
at org.restlet.engine.ServerHelper.handle(ServerHelper.java:71)
at
org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:
150)
at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:
1037)
at
org.restlet.ext.gwt.GwtShellServletWrapper.service(GwtShellServletWrapper.j ava:
189)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingAp plicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
435)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:
572)
at com.google.tracing.TraceContext$TraceContextRunnable
$1.run(TraceContext.java:448)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:
688)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.jav a:
326)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
318)
at com.google.tracing.TraceContext
$TraceContextRunnable.run(TraceContext.java:446)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
I 12-20 05:23PM 51.684
This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.
This is due to a know limitation of GAE with HTTP chunked encoding (not related to Restlet).
However, Restlet does offer a convenient workaround in recent 2.1 snapshot to prevent chunking on the client-side. See details here:
http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html

Resources