bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #25415] Gorm GDL2 objects vanish or cause errors when loading nib w


From: Peter Cooper
Subject: [bug #25415] Gorm GDL2 objects vanish or cause errors when loading nib when linked to ui components
Date: Mon, 26 Jan 2009 21:10:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5

URL:
  <http://savannah.gnu.org/bugs/?25415>

                 Summary: Gorm GDL2 objects vanish or cause errors when
loading nib when linked to ui components
                 Project: GNUstep
            Submitted by: comrade
            Submitted on: Mon 26 Jan 2009 09:10:07 PM GMT
                Category: gdl2
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 26 Jan 2009 09:10:09 PM GMT  Name: nib-loading-error.tgz  Size: 3kB
  By: comrade
Test cases
<http://savannah.gnu.org/bugs/download.php?file_id=17335>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25415>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]