Re: Debugging
Re: Debugging
- Subject: Re: Debugging
- From: Martin Samm <email@hidden>
- Date: Wed, 28 Apr 2010 08:32:16 +0100
JadClipse - cheers, will check it out.
Yep - the Fk column was indeed exposed as a class property.
Thanks all,
Martin
On 27 April 2010 23:10, Chuck Hill
<email@hidden> wrote:
On Apr 27, 2010, at 1:37 PM, Martin Samm wrote:
I'm trying to debug this exception in Eclipse:
Apr 27 21:33:13 AdTracker[57153] WARN NSLog - AdvertManagement:saveAd - exception
<er.extensions.validation.ERXValidationException object: <com.aetopia.model.AdDesign pk:"null">; propertyKey: advertID; type: NullPropertyException; additionalExceptions: ()>
<er.extensions.validation.ERXValidationException object: <com.aetopia.model.AdDesign pk:"null">; propertyKey: advertID; type: NullPropertyException; additionalExceptions: ()>
at com.webobjects.eoaccess.EOAttribute.validateValue(EOAttribute.java:2541)
at com.webobjects.eoaccess.EOEntityClassDescription.validateValueForKey(EOEntityClassDescription.java:452)
at er.extensions.eof.ERXEntityClassDescription.validateValueForKey(ERXEntityClassDescription.java:814)
at com.webobjects.eocontrol.EOCustomObject.validateValueForKey(EOCustomObject.java:1311)
at er.extensions.eof.ERXGenericRecord.validateValueForKey(ERXGenericRecord.java:1248)
...
whilst i have source for ERXEntityClassDescription so i can setup a break point there, i'd like to do so further up the stack but as yet cant find where to get source to do this.
Can anyone help?
For reference (in case anything is obvious) the exception is cause by adding an object to a relationship (addTo<RelationshipName>) and then issuing a saveChanges().
The advertID is the property (FK column) in the child which references the parent (PK).
Thanks
Martin Samm
Sounds like you have the FK marked as a class property in the model. That will cause problems. Exposing the PK won't cause problems, though is considered naughty by many.
Chuck
--
Chuck Hill Senior Consultant / VP Development
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/products/practical_webobjects
--
Martin Samm
Aetopia Ltd
+44 (0) 28 9099 8767
____________________________________________________________________________
Aetopia Ltd is a limited company registered in Belfast, Northern Ireland,
with registration number NI053321, having its principal place of business
(and postal address) at ECIT Institute, Queens Road, BELFAST BT3 9DT
and registered office at 1, Lanyon Quay, BELFAST BT1 3LG
_______________________________________________
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