Figured it out:

the Entity had an entry: sharedObjectFetchSpecificationNames = (FetchAll);

{
    attributes = (
        {
            columnName = "FAMILY_ID";
            externalType = NUMBER;
            name = familyID;
            valueClassName = NSNumber;
            valueType = i;
        },
        {
            allowsNull = Y;
            columnName = NAME;
            externalType = VARCHAR2;
            name = name;
            valueClassName = NSString;
            width = 100;
        }
    );
    attributesUsedForLocking = (familyID);
    className = EOGenericRecord;
    classProperties = (familyID, name);
    externalName = "DIAG_IMAGING_FAMILY";
    name = DiagImagingFamily;
    primaryKeyAttributes = (familyID);
    sharedObjectFetchSpecificationNames = (FetchAll);
}

that seems to be invalid. I created a small model with Entity Modeler and compared the entities. The one from EM didn't have "sharedObjectFetchSpecificationNames = (FetchAll);" so I removed it from the other model and the app started fine. Any one know the history of sharedObjectFetchSpecificationNames = (FetchAll)? Is it required in WO 5.3.x?

JR


On Oct 20, 2008, at 2:00 PM, JR Ruggentaler wrote:

I am trying to get my projects working with WO 3.4.3 (works with WO 3.3) but I keep getting the following exception.

Caused by: java.lang.IllegalArgumentException: Fetch specification cannot be null and cannot fetch raw rows at com .webobjects .eocontrol .EOSharedEditingContext .bindObjectsWithFetchSpecification(EOSharedEditingContext.java:390) at com .webobjects .eoaccess .EODatabaseContext ._preloadSharedObjectsWithModel(EODatabaseContext.java:1217) at com .webobjects .eoaccess .EODatabaseContext .registeredDatabaseContextForModel(EODatabaseContext.java:1012) at com .mpv .databaseconnections .MPVDatabaseConnectionManager .setupConnectionForModel(MPVDatabaseConnectionManager.java:168)
        ... 12 more

I tracked it down to a specific model that only has one fetch specification but I don't know what's wrong.

{
        FetchAll = {    
                class = EOFetchSpecification;
                entityName = DiagImagingFamily;
                fetchLimit = 0;
                prefetchingRelationshipKeyPaths = ();
                rawRowKeyPaths = ();
        };
}

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jr%40mpv.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to