Re: NullPointerException executing EOModelGroup.defaultGroup()
Chuck Hill <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.eof |
|---|---|
| Organization | Global Village Consulting, Inc. |
| Message-ID | <[email protected]> |
Framesworks and the Application are both "bundles" in the eyes of NSBundle. So you do have loaded bundles. :-) It looks like it is trying to load an EOModel from somewhere and the model is corrupt (missing files, corrupt internally, etc.). That is the first place that I would look. Chuck Eric Bergerson wrote: > I have a piece of code that calls EOModelGroup.defaultGroup(). It works > fine on my laptop (Windows XP) but fails on my desktop (Win2K). Both are > using the same version of WO (5.1.3). > > The one that is failing has a calling stack trace of something like: > > ( -> means calls) > > defaultGroup() -> globalModelGroup -> modelGroupForLoadedBundles -> > addModelWithPath -> EOModel.<init> > > It would appear that the null pointer exception is in the EOModel.<init>. > > I don't have any loaded bundles. > > The code, which is working on the laptop, gets the defaultGroup(), so that I > can than add the models directly into the group. > > I must have set something up differently on the two machines, but I can't > figure out what it is. I have checked all the environment variables and > they all seem to be equivelent. Is there something I am missing? A default > possibly? > > Thanks. > > Sincerely, > > Eric Bergerson > Objective Technologies, Inc. > Email: [email protected] > Phone: 718 805 6574 > > _______________________________________________ > EOF mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/eof > -- Chuck Hill [email protected] Global Village Consulting Inc. http://www.global-village.net