Updating Rails: This is a Stacktrace for a Man.

July 16, 2012

And this is one where you really see what’s wrong. There are other ones where it’s “a littl” harder to find.

ActionView::Template::Error: ActiveRecord::JDBCError: DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=NULL, DRIVER=3.57.82: SELECT COUNT(*) FROM DB2TEST.eo_st_gvt  WHERE DB2TEST.eo_st_gvt.id IN (NULL)
arjdbc/jdbc/RubyJdbcConnection.java:281:in `execute_query’
./vendor/gems/jruby/1.9/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/db2/adapter.rb:120:in `_execute’
./vendor/gems/jruby/1.9/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/jdbc/adapter.rb:211:in `execute’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:19:in `instrument’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log’
./vendor/gems/jruby/1.9/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/jdbc/adapter.rb:211:in `execute’
./vendor/gems/jruby/1.9/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/jdbc/adapter.rb:337:in `select’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:61:in `select_all’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:75:in `cache_sql’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:61:in `select_all’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_one’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:30:in `select_value’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/relation/calculations.rb:243:in `execute_simple_calculation’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/relation/calculations.rb:208:in `perform_calculation’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/relation/calculations.rb:159:in `calculate’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/relation/calculations.rb:58:in `count’
./vendor/gems/jruby/1.9/gems/kaminari-0.13.0/lib/kaminari/models/active_record_relation_methods.rb:28:in `total_count’
./vendor/gems/jruby/1.9/gems/kaminari-0.13.0/lib/kaminari/models/page_scope_methods.rb:19:in `num_pages’
./vendor/gems/jruby/1.9/gems/kaminari-0.13.0/lib/kaminari/helpers/action_view_extension.rb:18:in `paginate’
./app/views/admin/gevo_types/index.html.erb:19:in `_app_views_admin_gevo_types_index_html_erb__1467586675_2132′
org/jruby/RubyKernel.java:2084:in `send’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/template.rb:145:in `render’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications.rb:125:in `instrument’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/template.rb:143:in `render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:47:in `render_template’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:19:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:46:in `render_template’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:45:in `render_template’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:18:in `render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/renderer.rb:36:in `render_template’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_view/renderer/renderer.rb:17:in `render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:110:in `_render_template’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/streaming.rb:225:in `_render_template’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:103:in `render_to_body’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/renderers.rb:28:in `render_to_body’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/compatibility.rb:50:in `render_to_body’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:88:in `render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/rendering.rb:16:in `render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:40:in `render’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/core_ext/benchmark.rb:5:in `ms’
C:/Programme/h7daecy/jruby-1.6.7/lib/ruby/1.8/benchmark.rb:308:in `realtime’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/core_ext/benchmark.rb:5:in `ms’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:40:in `render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:39:in `render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/implicit_render.rb:10:in `default_render’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/implicit_render.rb:5:in `send_action’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/base.rb:167:in `process_action’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/rendering.rb:10:in `process_action’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/callbacks.rb:18:in `process_action’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:450:in `_run__515678977__process_action__1250044157__callbacks’
org/jruby/RubyKernel.java:2076:in `send’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:390:in `_run_process_action_callbacks’
org/jruby/RubyKernel.java:2080:in `send’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/callbacks.rb:17:in `process_action’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/rescue.rb:29:in `process_action’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:30:in `process_action’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:19:in `instrument’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:29:in `process_action’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/params_wrapper.rb:206:in `process_action’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/railties/controller_runtime.rb:18:in `process_action’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/base.rb:121:in `process’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:45:in `process’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal.rb:203:in `dispatch’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_controller/metal.rb:246:in `action’
org/jruby/RubyProc.java:270:in `call’
org/jruby/RubyProc.java:220:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:73:in `dispatch’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:36:in `call’
./vendor/gems/jruby/1.9/gems/journey-1.0.4/lib/journey/router.rb:68:in `call’
org/jruby/RubyArray.java:1615:in `each’
./vendor/gems/jruby/1.9/gems/journey-1.0.4/lib/journey/router.rb:56:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:600:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/head.rb:14:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/params_parser.rb:21:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/flash.rb:242:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/cookies.rb:338:in `call’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/query_cache.rb:64:in `call’
./vendor/gems/jruby/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/callbacks.rb:28:in `call’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:408:in `_run__1204827396__call__27951681__callbacks’
org/jruby/RubyKernel.java:2076:in `send’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:390:in `_run_call_callbacks’
org/jruby/RubyKernel.java:2076:in `send’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/callbacks.rb:27:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/remote_ip.rb:31:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call’
./vendor/gems/jruby/1.9/gems/cucumber-rails-1.3.0/lib/cucumber/rails/action_controller.rb:10:in `call’
./vendor/gems/jruby/1.9/gems/railties-3.2.6/lib/rails/rack/logger.rb:26:in `call_app’
./vendor/gems/jruby/1.9/gems/railties-3.2.6/lib/rails/rack/logger.rb:16:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/request_id.rb:22:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call’
./vendor/gems/jruby/1.9/gems/activesupport-3.2.6/lib/active_support/cache/strategy/local_cache.rb:72:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call’
./vendor/gems/jruby/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/static.rb:62:in `call’
./vendor/gems/jruby/1.9/gems/railties-3.2.6/lib/rails/engine.rb:479:in `call’
./vendor/gems/jruby/1.9/gems/railties-3.2.6/lib/rails/application.rb:220:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/builder.rb:134:in `call’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in `call’
org/jruby/RubyArray.java:1615:in `each’
./vendor/gems/jruby/1.9/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `call’
./vendor/gems/jruby/1.9/gems/rack-test-0.6.1/lib/rack/mock_session.rb:30:in `request’
./vendor/gems/jruby/1.9/gems/rack-test-0.6.1/lib/rack/test.rb:219:in `process_request’
./vendor/gems/jruby/1.9/gems/rack-test-0.6.1/lib/rack/test.rb:57:in `get’
org/jruby/RubyKernel.java:2088:in `send’
org/jruby/RubyKernel.java:2088:in `send’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:62:in `process’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:39:in `follow_redirects!’
org/jruby/RubyFixnum.java:252:in `times’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:38:in `follow_redirects!’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:28:in `submit’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/rack_test/form.rb:64:in `submit’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/rack_test/node.rb:59:in `click’
./vendor/gems/jruby/1.9/gems/cucumber-rails-1.3.0/lib/cucumber/rails/capybara/javascript_emulation.rb:16:in `click_with_javascript_emulation’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/node/element.rb:99:in `click’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/node/base.rb:46:in `wait_until’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/node/element.rb:99:in `click’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/node/actions.rb:38:in `click_button’
org/jruby/RubyKernel.java:2080:in `send’
(eval):2:in `click_button’
./vendor/gems/jruby/1.9/gems/capybara-1.1.2/lib/capybara/dsl.rb:165:in `click_button’
./features/step_definitions/webrat_de_steps.rb:16:in `(root)’:in `/^ich “([^\”]*)” dr\303\274cke$/’
C:\Repositories\apollo\features\admin_gevos.feature:135:in `Und ich “Filter anwenden” drücke’


iPhone 3GS: Touchscreen – Glas is slightly inclined

February 25, 2010

The Touchscreen – Glas of the iPhone 3GS is slightly inclined. Just put your Finger in the middle and squeeze once to the left and once to the right: You will notice that on the right end you will notice a little edge that results from the Glas not being inserted completely flat. Maybe thats just on German iPhones but I noticed that “artificial edge” on 3 iPhones today. Could be that Apple decided to do it this way to help find the correct orientation while fiddling around with the telephone in the car or other situations where this “tactile” Feature helps.

iPhone


Kindle – Grown Up Gameboy (GUP)

November 24, 2009

GrownUpGameboy

😉


Acer Aspire R3600 Review?

April 28, 2009

This would be a really neat Device and its already in Stocks here in Germany, shipping for 299 EUR.

I’m wondering why

1.) There are no really good reviews out there (Nor infos on the manufacturers site)

2.) They didn’t mount a slim Optical Drive

3.) Atom n330would have been a better alternative to the mounted 230

Acer says they will be selling an alternative with a bigger (250 GB) hardDrive and more Memory for 330 EUR. Lets’ hope they Change to the n330, add the slim Drive and i’ll get one immediately.


simple scriptaculous Autocomplete with DWR & select – Boxes

February 9, 2006

coming across this really nice scriptaculous autocomplete feature on

http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local

Autocomplete

i wanted a simple solution to use this Function. I’m using DWRUtil.addOptions to fill my select boxes with values. These selectBoxes already serve as proposal-Values for the correlating Input-Fields. So i had all the data needed to create a nice type-ahead system, without performance – impact, already loaded onto the page.

i’d didn’t want an Ajax – request to be sent out each time the user types in a letter. So the only thing i needed to do was to parse the data provided in the select box and give it to the Autocompleter.local. For that purpose i created a simple javascript function named “genAutocomplete” that is being called after the DWRUtil.addOptions.

// configGroupSelect: the select box filled by DWRUtil.addOptions

// configGroup the input field, filled by the autocomplete

// config_list the div-id with the suggested values

function genAutocomplete(){

var mySelect= document.getElementById(‘configGroupSelect’);

var i;

var resultArray=new Array();
for (i=0; i < mySelect.options.length; i++) {
resultArray[i] =mySelect.options[i].value;
}

new Autocompleter.Local(‘configGroup’, ‘config_list’, resultArray, {});

}

Rubén Parés-Selders


Follow

Get every new post delivered to your Inbox.