Re: Vexing Update Problem
Re: Vexing Update Problem
- Subject: Re: Vexing Update Problem
- From: Chuck Hill <email@hidden>
- Date: Fri, 11 May 2007 11:23:17 -0700
Are you using inheritance with entities in different tables? Having
the same PK in two different tables (e.g. from manual editing) will
confuse EOF into thinking one object is two or vice versa). I had a
similar problem recently and traced it back to a duplicated PK.
Chuck
On May 9, 2007, at 2:28 AM, Cornelius Jaeger wrote:
Hi All
i've been working on this one for almost two days now and i can't
seem to fix it.
while adding a 1..n i get an exception:
java.lang.ArrayIndexOutOfBoundsException: 128
at com.webobjects.foundation._NSCollectionEnumerator.nextElement
(_NSCollectionEnumerator.java:34)
at com.webobjects.eocontrol.EOEditingContext.validateTable
(EOEditingContext.java:2245)
at com.webobjects.eocontrol.EOEditingContext.validateChangesForSave
(EOEditingContext.java:3042)
at com.webobjects.eocontrol.EOEditingContext._prepareForPushChanges
(EOEditingContext.java:3283)
at com.webobjects.eocontrol.EOEditingContext.saveChanges
(EOEditingContext.java:3213)
at screenfood.utility.VFScreamerEditingContext.saveChanges
(VFScreamerEditingContext.java:43)
at screenfood.utility.ParticipatingEditingContext.saveChanges
(ParticipatingEditingContext.java:151)
the array index out of bounds is the weirdest.
i'm doing a normal addObjectToBothSides, the objects are in the
editing context and not faults.
this has me completely stumped, i'm not propagating pk's, basically
being a good citizen.
here are the model extracts:
{
destination = VFAsset;
isToMany = N;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = assetID;
sourceAttribute = assetID; });
name = asset;
}
{
destination = VFDynamicContent;
isToMany = Y;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = assetID;
sourceAttribute = assetID; });
name = dynamicContents;
}
i used to manage this manually but wanted the eomodel to handle it
for me.
any ideas, or information i should disseminate please let me know
cheers
Cornelius
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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
_______________________________________________
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