You'll have to dig into what that NPE is exactly. Hard to diagnose without that.
Sent from my iPhone On Jun 2, 2012, at 1:52 AM, Paul Hoadley <pa...@logicsquad.net> wrote: > Hi Mike, > > On 01/06/2012, at 10:54 PM, Mike Schrag wrote: > >> I'm a little concerned about inverse relationships to FrameworkPerson when >> you toss it .... this might require more surgery than this. > > This is what I'm doing: > > @Override > public void didFinishLaunching() { > super.didFinishLaunching(); > EOModel fmkModel = > EOModelGroup.defaultGroup().modelNamed("Auth"); > EOModel appModel = > EOModelGroup.defaultGroup().modelNamed("Survey"); > EOEntity fmkEntity = fmkModel.entityNamed("Organisation"); > fmkModel.removeEntity(fmkEntity); > EOEntity appEntity = appModel.entityNamed("SSOrganisation"); > appEntity.setName("Organisation"); > return; > } > > It looked like it might be working until I threw that into a D2W front-end > with the same models and database. Just after login, as it builds the > ERMODQueryEntitiesPage, I get this: > > NullPointerException > at > com.webobjects.eoaccess.EODatabase.addModelIfCompatible(EODatabase.java:575) > ... skipped 15 stack elements > at > com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488) > at > com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069) > at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1215) > at > com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4444) > at > net.logicsquad.webobjects.auth.model.auth._Person.fetchPersons(_Person.java:442) > at > net.logicsquad.webobjects.auth.model.auth._Person.fetchAllPersons(_Person.java:436) > at > net.logicsquad.webobjects.auth.model.auth._Person.fetchAllPersons(_Person.java:432) > at > net.logicsquad.survstar.DirectAction.canUseBootstrapCredentials(DirectAction.java:108) > at net.logicsquad.survstar.DirectAction.loginAction(DirectAction.java:143) > ... skipped 4 stack elements > at > com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144) > at > er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401) > at > er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:463) > ... skipped 9 stack elements > > Any thoughts on the appropriate additional surgery? > > > -- > Paul Hoadley > http://logicsquad.net/ > > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com