Haven't we seen this one before, like a long time ago?  I wish like
heck I could remember what it was, but it looks very familiar...

On 4/10/07, Ashish Sahni <[EMAIL PROTECTED]> wrote:
>
>  Running the app in development mode helped (thanks for the tip Charlie !)
>  Here's the error stack trace - now what's causing it ?
>
>
>  TypeError in StoreController#add_to_cart assigning non-exception to $!
>
>
> RAILS_ROOT:
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/config/..
>  Application Trace | Framework Trace | Full Trace
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in
> `add_to_cart'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in
> `send'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/filters.rb:631:in
> `call_filter'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/filters.rb:619:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:65:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/rescue.rb:83:in
> `measure'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:66:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/rescue.rb:83:in
> `perform_action_with_rescue'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:431:in
> `send'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:431:in
> `process'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/filters.rb:624:in
> `process'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/session_management.rb:114:in
> `process_with_session_management_support'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:330:in
> `process'
> :0
>
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/rails-1.2.2/lib/dispatcher.rb:41:in
> `dispatch'
>
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in
> `add_to_cart'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in
> `send'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/filters.rb:631:in
> `call_filter'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/filters.rb:619:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:65:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/rescue.rb:83:in
> `measure'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:66:in
> `perform_action'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/rescue.rb:83:in
> `perform_action_with_rescue'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:431:in
> `send'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:431:in
> `process'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/filters.rb:624:in
> `process'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/session_management.rb:114:in
> `process_with_session_management_support'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/actionpack-1.13.2/lib/action_controller/base.rb:330:in
> `process'
> /home/ashish/gf91/publish/glassfish/domains/domain1/applications/j2ee-modules/depot_k/WEB-INF/gems/gems/rails-1.2.2/lib/dispatcher.rb:41:in
> `dispatch'
> :0
>
> Request
>
> Parameters: {"id"=>"1"}
>
> Show session dump
>  ---
> flash: !map:ActionController::Flash::FlashHash {}
> :cart: !ruby/object:Cart
>   items: []
>
>
> Response Headers: {"Cache-Control"=>"no-cache", "cookie"=>[]}
>
>  Thanks
>  Ashish
>
>
>
>  Ashish Sahni wrote:
>  Thats odd - jetty is failing for me for the same reasons ...
>
> Robert Egglestone wrote:
>
>
>
>  I've just tried with jetty.
> I could add things to the cart, and empty it.
> The admin page would throw a NPE when I tried to create a new item.
>
> I did this to run it:
> + script/plugin install
> svn://rubyforge.org/var/svn/jruby-extras/trunk/rails-integration/plugins/war-snapshot
> + created depot_production in mysql
> + env RAILS_ENV=production rake db:migrate
> + rake war:standalone:run
>
> Cheers,
> Robert
>
>
> Ashish Sahni wrote:
>
>
>
>
>  Hi Folks,
> I'm running in failures while running the depot_k version of
> the depot apps as a web app. Code can be downloaded here
> http://www.pragmaticprogrammer.com/titles/rails/code.html
>
> The wierd thing is that the failure are intermittent(more failures than
> not)
> and there are no error messages in the logs and the http return code
> in case of failure is 500(internal server error).
> Has anybody run the depot apps successfully as web application ?
> And maybe more importantly how does one go about debugging rails
> as the return from the rails-integration servlet code seems to be without
> any error/exceptions. No idea whats failing where.
>
> All combinations seem to be failing - jruby trunk/0.9.8, GlassFish v2,
> Tomcat
> 6.x, firefox, IE. Though I could never get the request to fail if I sent
> the http
> request from command line ie GET /depot_k/store HTTP/1.0
>
> Any ideas ?
>
> Thanks
> Ashish
>
>
> _______________________________________________
> Jruby-extras-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
>
>
>
>
>  _______________________________________________
> Jruby-extras-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
>
>
>
>  _______________________________________________
> Jruby-extras-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
>
>
>
> _______________________________________________
> Jruby-extras-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
>
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to