Re: EOClassDescription not found
Re: EOClassDescription not found
- Subject: Re: EOClassDescription not found
- From: Chuck Hill <email@hidden>
- Date: Tue, 16 Dec 2003 10:58:34 -0800
- Organization: Global Village Consulting, Inc.
Try logging out the names of the loaded models:
NSLog.out.appendln("Loaded models: " +
EOModelGroup.defaultGroup().modelNames());
Do you see the model that contains Customers listed there?
Also, if Customers is in a package, is this correctly indicated in the
EOModel (check case, spelling etc.).
Chuck
David Griffith wrote:
Nope, this is a basic app, done in exactly the same way as I always did
before, but now it gives this error.
Anyone any other ideas?
Regards,
Dave.
Hi,
Error: java.lang.IllegalStateException: Unabled to find an
EOClassDescription for objects of class Customers
Reason: Unabled to find an EOClassDescription for objects of class
Customers
check if you have static parts that use EOF. If so remove the code and
replace it for example with lazy initialization. Things like
public myclass extends whatever {
public static EOEditingContext ec = new EOEditingContext();
...
}
is not recommended: it forces EOF to initialize maybe even before all
bundles are loaded and this may produce errors which are very hard to
find. Also please check is you are using jikes and if so please use
version 1.15, afaik all others make problems, too.
cheers David
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.