Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coredata sql metadata corruption



I have a coredata database with using the sql store. Somehow the metadata seems to have become corrupt and that causes this exception when I try call metadataForPersistentStoreWithURL:

#0 0x9282438d in -[NSException raise]
#1 0x9284b23f in +[NSException raise:format:]
#2 0x928d34be in -[NSObject doesNotRecognizeSelector:]
#3 0x927f734b in -[NSObject(NSForwardInvocation) forward::]
#4 0x90a5ccc1 in _objc_msgForward
#5 0x928cfd57 in _structuredErrorFunc
#6 0x91bf2fab in __xmlRaiseError
#7 0x91be7605 in xmlParseChunk
#8 0x91c830e3 in xmlUCSIsCatZs
#9 0x91be2482 in xmlTextReaderRead
#10 0x928651b0 in -[NSXMLTreeReader parse]
#11 0x9286483c in -[NSXMLDocument initWithData:options:error:]
#12 0x9294e032 in -[NSXMLDocument initWithContentsOfURL:options:error:]
#13 0x93cfec46 in +[NSXMLObjectStore metadataForPersistentStoreWithURL:error:]
#14 0x93cfa67e in +[NSPersistentStoreCoordinator metadataForPersistentStoreWithURL:error:]


At the moment I'm trying to recover the database and am wondering if people have suggestions. The SQL lite part of the database seems valid. For instance i can browse its contents with "SQLite Database Browser 1.3.app" and everything seems OK. But anytime I try to open it with coredata it throws the above exception. Is there anyway to get around this problem? Is there some way that I could reset the metadata so that I can read the file with coredata again?

Thanks for any help.

Jesse
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.