• 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: EOUtilities.primaryKeyForObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOUtilities.primaryKeyForObject


  • Subject: Re: EOUtilities.primaryKeyForObject
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 13 Jul 2006 06:15:10 -0400

I would check out "Subclass Missing Primary Key" on http:// en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Common_Pitfalls_and_Troubleshooting and see if this might be related.

On Jul 13, 2006, at 5:46 AM, David Griffith wrote:

Hi all,

In an application that has been working great for a long time, suddenly I am getting this error:

[2006-07-13 11:19:22 CEST] <WorkerThread1> java.lang.NullPointerException
at com.webobjects.eoaccess.EOUtilities.primaryKeyForObject (EOUtilities.java:834)
at Customer.custID(Customer.java:46)
at EditCustomer.saveChanges(EditCustomer.java:94)



This is when the Customer class is attempting to get the Primary Key for the current record.


On further investigation I have realised that the Customer object is not being saved at all, it appears as though it is unable to get a Primary Key for the record as it saves it. The EO_PK_TABLE appears fine and all other tables save with no problem.

I wonder does anyone have any idea where I should look to find the problem, I have checked everything and it all looks as it did before.

Kind regards,
David.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com


This email sent to email@hidden

_______________________________________________ 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: 
 >EOUtilities.primaryKeyForObject (From: David Griffith <email@hidden>)

  • Prev by Date: EOUtilities.primaryKeyForObject
  • Next by Date: Re: user info
  • Previous by thread: EOUtilities.primaryKeyForObject
  • Next by thread: Re: EOUtilities.primaryKeyForObject
  • Index(es):
    • Date
    • Thread