Mon 26 Jan 2009 09:10:07 PM UTC, original submission:
Gorm files containing GDL2 entities that are linked to the user interface fail at load time in applications. I receive the following errors:
Got nil when trying to unarchive class
Exception occured while loading model: decoded nil class
Failed to load Gorm
Could not load Gorm file: <filepath>
Cannot load the main model file '<relativepath>'
This occurs using a clean build of r27435 on Ubuntu 8.10/x86_64.
Steps to replicate:
1. Demonstrate that Gorm and test app work
1a. Open DBModeler, and create an entity. Create a key and a class variable and set the adaptor. Save the eomodel to disk.
1b. Open Gorm, and create a simple interface with a button to load the entity from a database. Save the gorm nib to disk in the same directory as the eomodel.
1c. Create a simple gui app. Compile and run in place. All should work as expected.
2. Gorm loses unlinked GDL2 objects when re-opening gorm nib later
2a. Drag the entity from the DBModeler into the object window of Gorm. Save the gorm nib.
2b. Clean, compile and run in place. The app should work as expected.
2c. Quit Gorm. Restart and open the gorm nib. The EOEditingContext and entity object are missing from the object window.
3. Application fails to load the gorm file when the entity is linked to an object in the user interface.
3a. In Gorm, link a button in the user interface to the entity's fetch target. Save the gorm nib.
3b. Clean, compile and run in place. The nib is not loaded for the application's interface.
3c. Quit Gorm. Restart and open the gorm nib. The EOEditingContext and entity object are visible in the object window.
I've attached the three different scenarios, and perhaps the second and third gorm nib files will give some clue about what's going on.
|