@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