CoreData Updating Max pk error?
CoreData Updating Max pk error?
- Subject: CoreData Updating Max pk error?
- From: James Dominy <email@hidden>
- Date: Wed, 11 Apr 2007 12:49:52 -0500
Hi,
I've got an application that runs as a server to log info submitted
as http requests from clients and stores it in CoreData sql store. it
runs very well on my development machine running 10.4.9, but on our
production machine running MacOSX Server 10.4.9 it will occasionally
(about every 200-300 requests) fail with the following error when
trying to save
NSError "Cocoa error 134030." Domain=NSCocoaErrorDomain Code=134030
UserInfo={NSUnderlyingException = Updating max pk failed: ; }
My save code looks like this:
- (IBAction) saveAction:(id)sender
if([[self managedObjectContext] commitEditing] && [[self
managedObjectContext] hasChanges])
{
NSError *error = nil;
if(![[self managedObjectContext] save:&error])
{
NSLog(@"error: %@", error);
[[NSApplication sharedApplication] presentError:error];
return;
}
NSLog(@"saved");
}
}
whenever this error occurs, my server stops handling requests on the
network, even though the ui is still working. I've tried various ways
of dealing with the error, but whenever I try to present the error I
also get the following:
Cannot load Interface Builder file '/System/Library/Frameworks/
AppKit.framework/Resources/English.lproj/NSAlertPanel.nib'
Has anyone encountered this "Updating max pk failed" error before or
the problem loading the NSAlertPanel.nib?
If anyone has any suggestions on how to handle this error in a way
that does not interrupt the server, I would greatly appreciate it.
Brad Dominy
CIRCULAR 230 DISCLOSURE:
ANY STATEMENTS REGARDING TAX MATTERS MADE HEREIN, INCLUDING ANY ATTACHMENTS, CANNOT BE RELIED UPON BY ANY PERSON TO AVOID TAX PENALTIES AND ARE NOT INTENDED TO BE USED OR REFERRED TO IN ANY MARKETING OR PROMOTIONAL MATERIALS. TO THE EXTENT THIS COMMUNICATION CONTAINS A TAX STATEMENT OR TAX ADVICE, CHAPMAN AND CUTLER LLP DOES NOT AND WILL NOT IMPOSE ANY LIMITATION ON DISCLOSURE OF THE TAX TREATMENT OR TAX STRUCTURE OF ANY TRANSACTIONS TO WHICH SUCH TAX STATEMENT OR TAX ADVICE RELATES.
Chapman and Cutler LLP is an Illinois limited liability partnership that has elected to be governed by the Illinois Uniform Partnership Act (1997).
NOTICE OF CONFIDENTIALITY: The information contained in this email transmission is confidential information which may contain information that is legally privileged and exempt from disclosure under applicable law. The information is intended solely for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on the contents of this email transmission is strictly prohibited. If you have received this email transmission in error, please notify us immediately by telephone to arrange for the return of the original transmission to us.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden