Created
March 29, 2010 18:09
-
-
Save captproton/348195 to your computer and use it in GitHub Desktop.
RestfulX account error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Flash Player error | |
| Error: An error has occured while invoking service provider with id: 1 :[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:3000/opportunities/52.fxml?_session_id=5ec554401de561a10f8b68a0bced4110"]. URL: http://localhost:3000/opportunities/52.fxml?_session_id=5ec554401de561a10f8b68a0bced4110"] messageId="A566ED0B-62A5-4ABC-1C71-AB1B2CD5F32A" type="fault" bubbles=false cancelable=true eventPhase=2] | |
| at org.restfulx.services::ServiceResponder/invokeOnFailure()[/Users/Dima/Projects/dev/restfulx_framework/framework/src/org/restfulx/services/ServiceResponder.as:146] | |
| at org.restfulx.services::ServiceResponder/fault()[/Users/Dima/Projects/dev/restfulx_framework/framework/src/org/restfulx/services/ServiceResponder.as:127] | |
| at <anonymous>()[/Users/Dima/Projects/dev/restfulx_framework/framework/src/org/restfulx/services/http/XMLHTTPServiceProvider.as:460] | |
| at flash.events::EventDispatcher/dispatchEventFunction() | |
| at flash.events::EventDispatcher/dispatchEvent() | |
| at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:989] | |
| at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:350] | |
| at mx.rpc::Responder/fault()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:68] | |
| at mx.rpc::AsyncRequest/fault()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113] | |
| at DirectHTTPMessageResponder/errorHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:405] | |
| at flash.events::EventDispatcher/dispatchEventFunction() | |
| at flash.events::EventDispatcher/dispatchEvent() | |
| at flash.net::URLLoader/onComplete() | |
| ## error in script/server | |
| Processing OpportunitiesController#update to fxml (for ::1 at 2010-03-29 11:07:15) [PUT] | |
| Parameters: {"format"=>"fxml", "opportunity"=>{"background_info"=>"", "name"=>"Suscipit magnam illum et dolorem magni", "stage"=>"negotiation", "assigned_to"=>"0", "discount"=>"0", "assignee_id"=>"2", "closes_on"=>"2010-05-12", "deleted_at"=>"", "campaign_id"=>"3", "amount"=>"600000", "user_id"=>"4", "access"=>"Public", "source"=>"other", "probability"=>"30"}, "_session_id"=>"5ec554401de561a10f8b68a0bced4110", "action"=>"update", "_method"=>"PUT", "id"=>"52", "controller"=>"opportunities"} | |
| Setting Load (3.6ms) SELECT * FROM "settings" WHERE ("settings"."name" = 'locale') LIMIT 1 | |
| CACHE (0.0ms) SELECT * FROM "settings" WHERE ("settings"."name" = 'locale') LIMIT 1 | |
| User Load (21.5ms) SELECT * FROM "users" WHERE ("users"."id" = '3') AND (users.deleted_at IS NULL OR users.deleted_at > '2010-03-29 18:07:16') ORDER BY id DESC LIMIT 1 | |
| User Update (25.9ms) UPDATE "users" SET "updated_at" = '2010-03-29 18:07:16', "perishable_token" = 'WlhQI-tS-DEyyujm2c4j', "last_request_at" = '2010-03-29 18:07:16' WHERE "id" = 3 | |
| Preference Load (0.4ms) SELECT * FROM "preferences" WHERE ("preferences"."user_id" = 3 AND "preferences"."name" = 'locale') LIMIT 1 | |
| Setting Load (0.7ms) SELECT * FROM "settings" WHERE ("settings"."name" = 'opportunity_stage') LIMIT 1 | |
| Opportunity Load Including Associations (1.6ms) SELECT "opportunities"."id" AS t0_r0, "opportunities"."user_id" AS t0_r1, "opportunities"."campaign_id" AS t0_r2, "opportunities"."assignee_id" AS t0_r3, "opportunities"."name" AS t0_r4, "opportunities"."access" AS t0_r5, "opportunities"."source" AS t0_r6, "opportunities"."stage" AS t0_r7, "opportunities"."probability" AS t0_r8, "opportunities"."amount" AS t0_r9, "opportunities"."discount" AS t0_r10, "opportunities"."closes_on" AS t0_r11, "opportunities"."deleted_at" AS t0_r12, "opportunities"."created_at" AS t0_r13, "opportunities"."updated_at" AS t0_r14, "opportunities"."background_info" AS t0_r15, "permissions"."id" AS t1_r0, "permissions"."user_id" AS t1_r1, "permissions"."asset_id" AS t1_r2, "permissions"."asset_type" AS t1_r3, "permissions"."created_at" AS t1_r4, "permissions"."updated_at" AS t1_r5 FROM "opportunities" LEFT OUTER JOIN "permissions" ON "permissions".asset_id = "opportunities".id AND "permissions".asset_type = 'Opportunity'WHERE ("opportunities"."id" = 52) AND ((opportunities.user_id=3 OR opportunities.assignee_id=3 OR permissions.user_id=3 OR access='Public') AND (opportunities.deleted_at IS NULL OR opportunities.deleted_at > '2010-03-29 18:07:16')) ORDER BY opportunities.id DESC | |
| NoMethodError (You have a nil object when you didn't expect it! | |
| You might have expected an instance of ActiveRecord::Base. | |
| The error occurred while evaluating nil.[]): | |
| app/models/account.rb:84:in `create_or_select_for' | |
| app/models/opportunity.rb:92:in `update_with_account_and_permissions' | |
| app/controllers/opportunities_controller.rb:143:in `update' | |
| app/controllers/opportunities_controller.rb:142:in `update' | |
| vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process' | |
| config/initializers/restfulx.rb:18:in `call' | |
| config/initializers/restfulx.rb:18:in `call' | |
| config/initializers/restfulx.rb:38:in `call' | |
| /opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' | |
| /opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:95:in `start' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:92:in `each' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:92:in `start' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:23:in `start' | |
| /opt/local/lib/ruby/1.8/webrick/server.rb:82:in `start' | |
| Rendered rescues/_trace (51.2ms) | |
| Rendered rescues/_request_and_response (0.5ms) | |
| Rendering rescues/layout (internal_server_error) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment