• 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: Null value in column on insert when marked as mandatory in EO Model?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null value in column on insert when marked as mandatory in EO Model?


  • Subject: Re: Null value in column on insert when marked as mandatory in EO Model?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 5 Dec 2008 11:45:09 -0800


On Dec 5, 2008, at 7:22 AM, Alan Zebchuk wrote:

I seem to get the following exception in one of my applications lately:

com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression failed: <com.webobjects.jdbcadaptor.PostgresqlExpression: "INSERT INTO "......

Next exception:SQL State:23502 -- error code: 0 -- msg: ERROR: null value in column "oid_person_type" violates not-null constraint

Any ideas how this could happen? The relationship and attribute are marked as mandatory in the EO Model, so I'm not sure how this would even pass through the validation?

It might be possible that this is related to load on the application. I have 2 instance of this application, one which has a much heavier load. This error is only occurring on this instance.

Any help is greatly appreciated,

Is this supposed to be an insert operation? I have seen cases where faults getting fired while evaluating delete rules can muck with the state of an EC changing operations between delete, insert, and update. This may have been a deleted object that the relationships had been nulled on that EOF is then trying to insert at a level below the validity checks. Fun one, this.


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







_______________________________________________ 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: 
 >Null value in column on insert when marked as mandatory in EO Model? (From: Alan Zebchuk <email@hidden>)

  • Prev by Date: Re: application intercomunication, a question
  • Next by Date: Re: Criticism of Java Persistence Frameworks Blog Post
  • Previous by thread: Null value in column on insert when marked as mandatory in EO Model?
  • Next by thread: Re: Null value in column on insert when marked as mandatory in EO Model?
  • Index(es):
    • Date
    • Thread