1. Due to the recent site upgrade, the iPadForums (iPF) App will no longer work. The new iPadForums.net website has been designed from the ground up to work perfectly from any mobile, tablet, or desktop computer using the built in internet browser. Create a shortcut to iPadForums.net on your home screen by following these steps: Create an icon for iPadForums.net

iPad application development error

Discussion in 'iPad Development' started by techster, May 9, 2011.

  1. techster
    Offline

    techster iPF Noob

    Joined:
    Apr 29, 2011
    Messages:
    3
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 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'
  2. Tim SPRACKLEN
    Offline

    Tim SPRACKLEN iPad Legend

    Joined:
    Jan 3, 2011
    Messages:
    15,246
    Thanks Received:
    121
    Trophy Points:
    0
    Location:
    Scotland
    Ratings:
    +121 / 0
    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
  3. Christopher10
    Offline

    Christopher10 iPF Novice

    Joined:
    Feb 28, 2011
    Messages:
    10
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 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.
  4. techster
    Offline

    techster iPF Noob

    Joined:
    Apr 29, 2011
    Messages:
    3
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 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

Share This Page

Search tags for this page

***-[nsmutablearray insertobject:atindex:]: attempt to insert nil object at 3 mewseek

,

attempt to insert nil error mewseek

,

erminating app due to uncaught exception 'nsinvalidargumentexception', reason: object cannot be nil

,

mergedmodelfrombundles [ nsarraym insertobject:atindex:]: object cannot be nil