What's new
Apple iPad Forum 🍎

Welcome to the Apple iPad Forum, your one stop source for all things iPad. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

iPad application development error

techster

iPF Noob
Joined
Apr 29, 2011
Messages
3
Reaction score
0
Hi

I am stuck while developing an application for iPad.

Can anyone help??

Following is the console output:

Code:
2011-05-09 18:31:55.078 ReportViewer[3636:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSMutableArray insertObject:atIndex:]: attempt to insert nil object at 0'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x015f3be9 __exceptionPreprocess + 185
	1   libobjc.A.dylib                     0x017485c2 objc_exception_throw + 47
	2   CoreFoundation                      0x015ed7f1 -[__NSArrayM insertObject:atIndex:] + 225
	3   CoreFoundation                      0x015e8c44 -[__NSArrayM addObject:] + 68
	4   CoreData                            0x00d99f2e +[NSManagedObjectModel mergedModelFromBundles:] + 350
	5   ReportViewer                        0x00007963 -[ReportStorage managedObjectModel] + 115
	6   ReportViewer                        0x00007acd -[ReportStorage persistentStoreCoordinator] + 307
	7   ReportViewer                        0x00007851 -[ReportStorage managedObjectContext] + 85
	8   ReportViewer                        0x00003511 -[ReportStorage init] + 85
	9   ReportViewer                        0x00002d98 -[ReportDataManager init] + 137
	10  ReportViewer                        0x00002c0c +[ReportDataManager sharedManager] + 88
	11  ReportViewer                        0x00009c80 -[FlipViewController viewDidLoad] + 327
	12  UIKit                               0x003b265e -[UIViewController view] + 179
	13  ReportViewer                        0x0001ba6b -[StartFakeViewController dbMoveComplete] + 518
	14  Foundation                          0x000839a6 __NSThreadPerformPerform + 251
	15  CoreFoundation                      0x015d501f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
	16  CoreFoundation                      0x0153328b __CFRunLoopDoSources0 + 571
	17  CoreFoundation                      0x01532786 __CFRunLoopRun + 470
	18  CoreFoundation                      0x01532240 CFRunLoopRunSpecific + 208
	19  CoreFoundation                      0x01532161 CFRunLoopRunInMode + 97
	20  GraphicsServices                    0x01e95268 GSEventRunModal + 217
	21  GraphicsServices                    0x01e9532d GSEventRun + 115
	22  UIKit                               0x0031342e UIApplicationMain + 1160
	23  ReportViewer                        0x00001c90 main + 102
	24  ReportViewer                        0x00001c21 start + 53
)
terminate called after throwing an instance of 'NSException'
 

Tim SPRACKLEN

iPF Noob
Joined
Jan 3, 2011
Messages
15,234
Reaction score
123
Location
Scotland
I moved this to the Development section, as I thought it might receive better attention there. I hope that was OK.

Tim
iPad Forum moderator
 

Christopher10

iPF Noob
Joined
Feb 28, 2011
Messages
10
Reaction score
0
You have not inserted any value At 0 index, That's why this error occur. Insert some value at 0 Index and run your app.I think it will be helpful to you.
 
OP
T

techster

iPF Noob
Joined
Apr 29, 2011
Messages
3
Reaction score
0
@Tim: Thanks buddy. My bad for posting in the wrong forum.

@Christopher: I redid the sqlite table and again tested the file but this time it created a different error. I am not very comfortable with sqlite and datamodels. However, I figured out that it is the connectivity issue now.

It is through fetch error. I believe there is some error with xcdatamodel file. If you suggest, i can PM the sqlite db and the file in concern. May be we can get forward with it?

TIA
 

Most reactions

Latest posts

Top