• 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
ec.SaveChanges and relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ec.SaveChanges and relationship


  • Subject: ec.SaveChanges and relationship
  • From: Raymond NANEON <email@hidden>
  • Date: Tue, 18 Jun 2013 07:44:05 +0000 (GMT)

Hi List,

I have a big problem to save my data. When I set the relastionship entity1.setEntity2Relationship(entity2), I get a java NullPointerException at the method who set the relation :

addObjectToBothSidesOfRelationshipWithKey(entity2, _Enity1.ENTITY2_KEY); <-----

When I try another way entity1.setEntity2(enity2) I get the same java NullPointerException when I want to save entity1.

juin 18 09:34:38 PreProjets[8484] ERROR er.extensions.appserver.ERXApplication  -
NullPointerException
  at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
     ... skipped 1 stack elements
  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:378)
  at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
  at er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)
  at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
     ... skipped 2 stack elements
  at com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
     ... skipped 4 stack elements
  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:1176)
  at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)

Thanks for your help.
Envoyé depuis iCloud
 _______________________________________________
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: ec.SaveChanges and relationship
      • From: Musall Maik <email@hidden>
  • Prev by Date: Re: Webobjects-dev Digest, Vol 10, Issue 389
  • Next by Date: Re: ssl from iOS error? OT?
  • Previous by thread: Rép : ec.saveChanges and update error : updateValuesInRowDescribedByQualifier [RESOLVED]
  • Next by thread: Re: ec.SaveChanges and relationship
  • Index(es):
    • Date
    • Thread