Forum: Ruby Problems after upgrading from 1.9.1 to 1.9.3

B26c076ba701cc678f6218d0f58cd14d?d=identicon&s=25 J. V. (jvsrvcs)
on 2013-06-03 21:42
We have a production server with a running web application and just
upgraded from 1.9.1 to 1.9.3 and nothing works.

Specifically I am getting the error below.  I inherited this project
from someone who left the company many months ago, am not familiar with
Ruby but some backwards compatibility seems to have been broken.

Any help would be appreciated.  There is no line 524 in the file
mentioned with the problem.

What in the message below will show me the line number in the file I
need to look at?

Short of rolling back to 1.9.1, what is the problem?  Was there a reason
for not sticking with backwards compatibility? (or at a minimum a
warning message that something would be removed from the next release
and code should be updated?

It looks as if someone on the Ruby development team simply went and made
a change that breaks existing code on an update.

any help to fix this would be appreciated.

---
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:49:in
`[]=': can't add a new key into hash during iteration (RuntimeError)
  from
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:49:in
`block in initialize'
  from
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:42:in
`each_key'
  from
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:42:in
`initialize'
  from
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/statement.rb:185:in
`new'
  from
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/statement.rb:185:in
`block in column_info'
  from
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/statement.rb:185:in
`collect'
  from
/home/user/rvm/rubies/ruby-1.9.3-p429/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/statement.rb:185:in
`column_info'
  from
/home/userprojects/access/amp/amp-common/trunk/mbr_prod/web_reports/cgi/RC_Helper_DB.rb:542:in
`block in Get_Full_Data_Set'
  from <internal:prelude>:10:in `synchronize'
  from
/home/userprojects/access/amp/amp-common/trunk/mbr_prod/web_reports/cgi/RC_Helper_DB.rb:514:in
`Get_Full_Data_Set'
  from
/home/userprojects/access/amp/amp-common/trunk/mbr_prod/web_reports/cgi/RC_Helper_DB.rb:622:in
`Get_Data_Set'
  from
/home/userprojects/access/amp/amp-common/trunk/mbr_prod/web_reports/cgi/RC_Helper_DB.rb:739:in
`Get_Label_Listbox'
  from
/home/userprojects/access/amp/amp-common/trunk/mbr_prod/web_reports/cgi/RC_Helper_Html.rb:629:in
`Html_Menu'
  from
/home/userprojects/access/amp/amp-common/trunk/mbr_prod/web_reports/cgi/RC_Helper_Html.rb:2227:in
`Html_Header'
  from
/home/userprojects/access/amp/amp-common/trunk/mbr_prod/web_reports/cgi/RC_Home.rb:9:in
`<main>'
[Mon Jun 03 13:28:00 2013] [error] [client 127.0.0.1] Premature end of
script headers: RC_Home.rb
60b83bb4579cd684731a1709f85ee849?d=identicon&s=25 John W Higgins (Guest)
on 2013-06-03 21:59
(Received via mailing list)
http://rubyforge.org/tracker/index.php?func=detail...

John

P.S. Google is always a good friend to call upon
B26c076ba701cc678f6218d0f58cd14d?d=identicon&s=25 J. V. (jvsrvcs)
on 2013-06-03 22:07
I did indeed try google and looked at the first 10 link; I was not able
to get any information there as to what the problem was or how to fix.

I do not understand the problem or what line of code in this larger .rb
files is failing.
Aa082c8b00a50928e5860dcd70bf2368?d=identicon&s=25 Tamara Temple (Guest)
on 2013-06-05 02:40
(Received via mailing list)
J. V. <lists@ruby-forum.com> wrote:
> I did indeed try google and looked at the first 10 link; I was not able
> to get any information there as to what the problem was or how to fix.

Just read the documentation on rvm at http://rvm.io.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.