• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using composition instead of inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using composition instead of inheritance


  • Subject: Re: Using composition instead of inheritance
  • From: Mike Schrag <email@hidden>
  • Date: Sat, 02 Jun 2012 09:41:45 -0400

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 <email@hidden> 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using composition instead of inheritance
      • From: Paul Hoadley <email@hidden>
References: 
 >Re: Using composition instead of inheritance (From: Paul Hoadley <email@hidden>)
 >Re: Using composition instead of inheritance (From: Mike Schrag <email@hidden>)
 >Re: Using composition instead of inheritance (From: Paul Hoadley <email@hidden>)
 >Re: Using composition instead of inheritance (From: Mike Schrag <email@hidden>)
 >Re: Using composition instead of inheritance (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Using composition instead of inheritance
  • Next by Date: Re: Using composition instead of inheritance
  • Previous by thread: Re: Using composition instead of inheritance
  • Next by thread: Re: Using composition instead of inheritance
  • Index(es):
    • Date
    • Thread