Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.4
-
Fix Version/s: JRuby 1.2
-
Component/s: Extensions
-
Labels:None
-
Environment:HideUbuntu 8.04 -- Linux version 2.6.24-21-generic running on i386
Java; VM -- 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15; Sun Microsystems Inc.
Runtime -- Java(TM) SE Runtime Environment 1.6.0_10-rc-b28
JRuby -- JRuby version 1.1.4 installed by NetBeans 6.5 (pre-rel)ShowUbuntu 8.04 -- Linux version 2.6.24-21-generic running on i386 Java; VM -- 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15; Sun Microsystems Inc. Runtime -- Java(TM) SE Runtime Environment 1.6.0_10-rc-b28 JRuby -- JRuby version 1.1.4 installed by NetBeans 6.5 (pre-rel)
Description
When attempting to insert information into a text field within the mysql database, ActiveRecord raises an exception stating:
TypeError (wrong argument type String (expected YAML::JvYAML::Node))
When running under Ruby 1.8.6, the operation that generates this error succeeds without problem.
I have attached a program that generates this error. To generate the exception follow these instructions.
1) Unpack the project to a folder on your test machine. Edit the username/password in the database.yml file appropriately.
2) Create the development database using "rake db:create"
3) Install the database using "rake goldberg:install"
4) Launch the application using "script/server" or similar
5) Login to the application as administrator (admin/admin)
6) Use the menu in the left column to navigate to "Administration -> Setup -> Roles"
7) Select the Administrator role
8) Scroll down and hit the "Edit" link
9) Change the name to "Superuser"
10) Click on the "Edit" button.
This particular YAML issue has been resolved in recent commits.