• 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: You crossed editing context boundaries...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: You crossed editing context boundaries...


  • Subject: Re: You crossed editing context boundaries...
  • From: WebObjects <email@hidden>
  • Date: Tue, 14 Oct 2008 21:19:53 -0500

mmm.. weird I tried to add it one by one using the addObjectToBothSidesOfRelationshipWithKey() method
and it stills giving me the java.lang.nullpointerexception
:S:S:S:
maybe something wrong with my EOModel???

Im attaching it..

Attachment: ScheduleControl.eomodeld.zip
Description: Zip archive



apart of the consistency names and other stuff, are the relations good?

Regards

Gus



On Oct 14, 2008, at 7:43 PM, Ricardo J. Parada wrote:

How about your registerTurns() method?  Did you change it to use myEC instead of ERXEC.newEditingContext()?


On Oct 14, 2008, at 8:17 PM, WebObjects wrote:

aha... you are right, after whole day sitting here,  I didn't realize I had teh emp at login with the session().defaultEditingContext, and here at PaguinaUsuario I m using another one.

My mind its kind of distracted... 

I made the changes, and still Im getting the nullpointerexception


java.lang.NullPointerException
[2008-10-14 19:13:51 COT] <WorkerThread0> java.lang.NullPointerException
at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
at com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
at er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:348)
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
at com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4814)
at com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
at com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
at er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEntity(ERXExtensions.java:304)
at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)

and more........ much more.
On Oct 14, 2008, at 7:06 PM, Ricardo J. Parada wrote:


It looks like you got the employee object using the session's default editing context.  And you are saying that your PaginaUsuario creates its own editing context in the constructor.  So there you have it: two different editing contexts.

I would modify your setEmp() method in the PaginaUsuario that you make a copy of the emp object passed in to the editing context used in that page.  Something like this:

public void estEmp(Employee anEmp) {
emp = anEmp.localInstanceIn(myEC);
}

Then your registerTurns() method is yet creating another editing context.  Shouldn't that be also myEC??



 _______________________________________________
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: You crossed editing context boundaries...
      • From: David LeBer <email@hidden>
References: 
 >You crossed editing context boundaries... (From: WebObjects <email@hidden>)
 >Re: You crossed editing context boundaries... (From: Clark Mueller <email@hidden>)
 >Re: You crossed editing context boundaries... (From: WebObjects <email@hidden>)
 >Re: You crossed editing context boundaries... (From: Clark Mueller <email@hidden>)
 >Re: You crossed editing context boundaries... (From: WebObjects <email@hidden>)
 >Re: You crossed editing context boundaries... (From: David LeBer <email@hidden>)
 >Re: You crossed editing context boundaries... (From: WebObjects <email@hidden>)
 >Re: You crossed editing context boundaries... (From: "Ricardo J. Parada" <email@hidden>)
 >Re: You crossed editing context boundaries... (From: WebObjects <email@hidden>)
 >Re: You crossed editing context boundaries... (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: Re: You crossed editing context boundaries...
  • Next by Date: Using ERXEC with defaultEditingContext?
  • Previous by thread: Re: You crossed editing context boundaries...
  • Next by thread: Re: You crossed editing context boundaries...
  • Index(es):
    • Date
    • Thread