Hi Frederick,
still i am getting same problem. actually it happens, draw an image to pdf
file.
Action Controller: Exception caughtRuntimeError in PurchasesController#show
JPEG marker not found!
RAILS_ROOT: C:/Documents and Settings/Madusudana Rao/Desktop/latest_r3
Application Trace <#> | Framework Trace <#> | Full Trace <#>
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:176:in
`measure_JPEG''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:174:in
`loop''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:174:in
`measure_JPEG''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:85:in
`__send__''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:85:in
`initialize''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics.rb:574:in
`new''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics.rb:574:in
`add_image''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:50:in
`draw_background_image''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:38:in `draw''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:17:in `draw''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:16:in `each''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:16:in `draw''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:13:in `draw''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:8:in `render''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/app/controllers/purchases_controller.rb:31:in
`show''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/app/controllers/purchases_controller.rb:28:in
`show''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:176:in
`measure_JPEG''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:174:in
`loop''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:174:in
`measure_JPEG''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:85:in
`__send__''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:85:in
`initialize''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics.rb:574:in
`new''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics.rb:574:in
`add_image''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_collection.rb:364:in
`method_missing_without_paginate''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_proxy.rb:219:in
`method_missing''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/array/grouping.rb:34:in
`in_groups_of''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/array/grouping.rb:34:in
`each_slice''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/array/grouping.rb:34:in
`in_groups_of''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_proxy.rb:219:in
`send''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_proxy.rb:219:in
`method_missing''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_collection.rb:364:in
`method_missing_without_paginate''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:82:in
`method_missing''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:135:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:135:in
`custom''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:179:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:179:in
`respond''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:173:in
`each''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:173:in
`respond''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:107:in
`respond_to''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
`send''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
`perform_action_without_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
`call_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
`ms''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in
`realtime''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
`ms''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
`perform_action''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
`send''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
`process_without_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
`process''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in
`process''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
`dispatch''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
`_call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
`initialize''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in
`cache''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/reloader.rb:9:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in
`synchronize''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:31:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
`each''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/log_tailer.rb:17:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:in
`service''
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:13:in
`run''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require''
script/server:3
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:176:in
`measure_JPEG''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:174:in
`loop''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:174:in
`measure_JPEG''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:85:in
`__send__''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics/imageinfo.rb:85:in
`initialize''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics.rb:574:in
`new''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.0/lib/pdf/writer/graphics.rb:574:in
`add_image''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:50:in
`draw_background_image''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:38:in `draw''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:17:in `draw''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:16:in `each''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:16:in `draw''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_collection.rb:364:in
`method_missing_without_paginate''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_proxy.rb:219:in
`method_missing''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/array/grouping.rb:34:in
`in_groups_of''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/array/grouping.rb:34:in
`each_slice''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/array/grouping.rb:34:in
`in_groups_of''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_proxy.rb:219:in
`send''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_proxy.rb:219:in
`method_missing''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/associations/association_collection.rb:364:in
`method_missing_without_paginate''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:82:in
`method_missing''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:13:in `draw''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/lib/purchase_pdf.rb:8:in `render''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/app/controllers/purchases_controller.rb:31:in
`show''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:135:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:135:in
`custom''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:179:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:179:in
`respond''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:173:in
`each''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:173:in
`respond''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/mime_responds.rb:107:in
`respond_to''
C:/Documents and Settings/Madusudana
Rao/Desktop/latest_r3/app/controllers/purchases_controller.rb:28:in
`show''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
`send''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
`perform_action_without_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
`call_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
`ms''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in
`realtime''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in
`ms''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
`perform_action''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
`send''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
`process_without_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
`process''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in
`process''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
`dispatch''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
`_call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
`initialize''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in
`cache''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/reloader.rb:9:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in
`synchronize''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:31:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
`each''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/log_tailer.rb:17:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in
`call''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:in
`service''
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start''
C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start''
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:13:in
`run''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require''
script/server:3
Request
*Parameters*:
{"format"=>"pdf",
"id"=>"4"}
Show session dump <#>
---
Response
*Headers*:
{"Content-Type"=>"application/pdf",
"Cache-Control"=>"no-cache"}
Regards,
Kanikanti
Mobile: 571-296-7842
On Thu, Jul 9, 2009 at 6:40 AM, Frederick Cheung
<frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>
>
> On Jul 9, 1:43 am, Madhu kanikanti
<kalyan.kanika...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Hi,
> > while generating the PDF file , i am getting following error..
> > please help for me.
> >
>
> That sounds like the jpeg file you gave the library didn''t look
like a
> jpeg file.
>
> Fred
>
> > RuntimeError (JPEG marker not found!):
> > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
> > graphics/imageinfo.rb:176:in `
> > measure_JPEG''
> > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
> > graphics/imageinfo.rb:174:in `
> > loop''
> > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
> > graphics/imageinfo.rb:174:in `
> > measure_JPEG''
> > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
> > graphics/imageinfo.rb:85:in `_
> > _send__''
> > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
> > graphics/imageinfo.rb:85:in `i
> > nitialize''
> > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
> > graphics.rb:574:in `new''
> > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
> > graphics.rb:574:in `add_image''
> >
> > lib/purchase_pdf.rb:52:in `draw_background_image''
> > lib/purchase_pdf.rb:40:in `draw''
> > lib/purchase_pdf.rb:17:in `draw''
> > lib/purchase_pdf.rb:16:in `each''
> > lib/purchase_pdf.rb:16:in `draw''
> > lib/purchase_pdf.rb:13:in `draw''
> > lib/purchase_pdf.rb:8:in `render''
> > app/controllers/purchases_controller.rb:32:in `show''
> > app/controllers/purchases_controller.rb:28:in `show''
> > C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''
> > C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start''
> > C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start''
> >
> > Rendered rescues/_trace (218.0ms)
> > Rendered rescues/_request_and_response (16.0ms)
> > Rendering rescues/layout (internal_server_error)
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---