• 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: Getting Problem while working with Flatten relation ship (between Two entities, present in different EOModels)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Problem while working with Flatten relation ship (between Two entities, present in different EOModels)


  • Subject: Re: Getting Problem while working with Flatten relation ship (between Two entities, present in different EOModels)
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 06 Sep 2013 18:06:22 +0000
  • Thread-topic: Getting Problem while working with Flatten relation ship (between Two entities, present in different EOModels)

On 13-09-04 11:01 PM, "Butchi Reddy Velagala" wrote:

Hi,

We are getting NullPointerException while setting the values to the flattened relationship.

Actually, we have created flattened relationship between two entities, which are present in two different EOModels . (different DBs also)

I am pretty sure that you can't flatten in this situation.

Chuck




Following is the StackTrace ::

<er.ajax.AjaxRequestHandler>: Exception occurred while handling request:
java.lang.NullPointerException
 <WorkerThread11> java.lang.NullPointerException
    at com.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845)
    at com.webobjects.eoaccess.EODatabaseContext.databaseOperationForIntermediateRowFromSourceObject(EODatabaseContext.java:4863)
    at com.webobjects.eoaccess.EODatabaseContext.recordInsertForIntermediateRowFromSourceObject(EODatabaseContext.java:4888)
    at com.webobjects.eoaccess.EODatabaseContext.relayAttributesInRelationshipSourceObjectDestinationObject(EODatabaseContext.java:4913)
    at com.webobjects.eoaccess.EODatabaseContext.relayAttributesInRelationshipSourceObjectDestinationObjects(EODatabaseContext.java:4966)
    at com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingContext(EODatabaseContext.java:6036)
    at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)
    at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
    at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981)
    at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903)
    at Test.testMethod(Test.java:89)


* same code is working, if both entities are in same EOModel.

Please let me know if there is any other configurations/changes.



-- 
Chuck Hill             
Executive Managing Partner, VP Development and Technical Services

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! 

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
 _______________________________________________
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

References: 
 >Getting Problem while working with Flatten relation ship (between Two entities, present in different EOModels) (From: Butchi Reddy Velagala <email@hidden>)

  • Prev by Date: Re: Anyone using Kepler?
  • Next by Date: Re: Anyone using Kepler?
  • Previous by thread: Getting Problem while working with Flatten relation ship (between Two entities, present in different EOModels)
  • Next by thread: Wonder EOF extended prototypes - HELP!
  • Index(es):
    • Date
    • Thread