Skip to Content
0
Former Member
Feb 02, 2014 at 11:10 AM

Issue in SUP integration with iOS, getting Error -*** -[__NSCFCalendar components:fromDate:]: date cannot be nil I mean really, what do you think that operation is supposed to mean with a nil date? An exception has been avoided for now.

45 Views

Hi All,

We are developing a iOS application and connect to SAP backend SUP 2.2. We are getting the below error

014-02-02 16:15:04.796 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.796 xxxxxxxxxxxxxxx[57470:70b] onApplicationSettingsChanged: names = [URLPrefix - ]

2014-02-02 16:15:04.796 xxxxxxxxxxxxxxx57470:70b] ================================================

2014-02-02 16:15:04.806 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.807 xxxxxxxxxxxxxxx57470:70b] onApplicationSettingsChanged: names = [Default - 0]

2014-02-02 16:15:04.807 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.819 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.819 xxxxxxxxxxxxxxx[57470:70b] onApplicationSettingsChanged: names = [ServerName - x.x.x.x]

2014-02-02 16:15:04.820 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.828 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.829 xxxxxxxxxxxxxxx[57470:70b] onApplicationSettingsChanged: names = [ServerPort - 5001]

2014-02-02 16:15:04.829 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.834 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.834 xxxxxxxxxxxxxxx57470:70b] onApplicationSettingsChanged: names = [Username - username]

2014-02-02 16:15:04.835 xxxxxxxxxxxxxxx57470:70b] ================================================

2014-02-02 16:15:04.839 xxxxxxxxxxxxxxx57470:70b] ================================================

2014-02-02 16:15:04.840 xxxxxxxxxxxxxxx57470:70b] onApplicationSettingsChanged: names = [ActivationCode - 123]

2014-02-02 16:15:04.840 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.846 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.847 xxxxxxxxxxxxxxx[57470:70b] onApplicationSettingsChanged: names = [FarmID - 0]

2014-02-02 16:15:04.847 xxxxxxxxxxxxxxx[57470:70b] ================================================

2014-02-02 16:15:04.848 xxxxxxxxxxxxxxx[57470:70b] onRegistrationStatusChanged: status = 202, code = 0, message = (null)

2014-02-02 16:15:04.848 xxxxxxxxxxxxxxx57470:70b] =================================================

2014-02-02 16:15:04.870 xxxxxxxxxxxxxxx[57470:70b] =================================================

2014-02-02 16:15:04.871 xxxxxxxxxxxxxxx57470:70b] onConnectionStatusChanged: status = 102, code = 0, message = (null)

2014-02-02 16:15:04.871 xxxxxxxxxxxxxxx[57470:70b] =================================================

2014-02-02 16:15:04.880 xxxxxxxxxxxxxxx57470:4427] =================================================

2014-02-02 16:15:04.880 xxxxxxxxxxxxxxx[57470:4427] onConnectionStatusChanged: status = 105, code = 0, message =

2014-02-02 16:15:04.880 xxxxxxxxxxxxxxx[57470:4427] =================================================

2014-02-02 16:15:04.884 xxxxxxxxxxxxxxx[57470:4903] *** -[__NSCFCalendar components:fromDate:]: date cannot be nil

I mean really, what do you think that operation is supposed to mean with a nil date?

An exception has been avoided for now.

A few of these errors are going to be reported with this complaint, then further violations will simply silently do whatever random thing results from the nil.

Here is the backtrace where this occurred this time (some frames may be missing due to compiler optimizations):

(

0 CoreFoundation 0x026cf475 -[__NSCFCalendar components:fromDate:] + 101

1 CoreFoundation 0x0276b96c -[_NSCopyOnWriteCalendarWrapper components:fromDate:] + 92

2 xxxxxxxxxxxxxxx 0x0018653e _Z15GetTimeZoneInfoP10PIONEER_TZ + 574

3 xxxxxxxxxxxxxxx 0x00131f90 _Z18EGetPioneerTZIndexb + 32

4 xxxxxxxxxxxxxxx 0x0016539f _ZN10ECDateTime14BiasCalculatorERKS_R10ECTimeSpaniPb + 167

5 xxxxxxxxxxxxxxx 0x00165c4e _ZN10ECDateTime10EGetGMTimeERKS_i + 178

6 xxxxxxxxxxxxxxx 0x001a764a _ZL16GetCurrentGMTimev + 58

7 xxxxxxxxxxxxxxx 0x001a76c6 _ZN2mo23CmocaProcessClientQueue20WaitForQueuedRequestERlRNS_9CmoStringES3_S1_S3_l + 114

8 xxxxxxxxxxxxxxx 0x001a7d19 _ZN2mo23CmocaProcessClientQueue18ProcessTillStoppedEv + 245

9 xxxxxxxxxxxxxxx 0x0019c8f4 _ZN2mo17CmocaProcessQueue7ProcessEv + 200

10 xxxxxxxxxxxxxxx 0x0019b59b _ZN2mo17CmocaProcessQueue10MOCAThreadEPv + 57

11 libsystem_pthread.dylib 0x033de5fb _pthread_body + 144

12 libsystem_pthread.dylib 0x033de485 _pthread_struct_init + 0

13 libsystem_pthread.dylib 0x033e3cf2 thread_start + 34

)

2014-02-02 16:15:04.910 xxxxxxxxxxxxxxx[57470:70b] conenction failure

2014-02-02 16:15:05.616 xxxxxxxxxxxxxxx[57470:4803] ================================================

2014-02-02 16:15:05.617 xxxxxxxxxxxxxxx[57470:4803] onApplicationSettingsChanged: names = [URLPrefix - /tm/?cid=%cid%]

2014-02-02 16:15:05.617 xxxxxxxxxxxxxxx[57470:4803] ================================================

2014-02-02 16:15:05.975 xxxxxxxxxxxxxxx57470:4803] ================================================

2014-02-02 16:15:05.976 xxxxxxxxxxxxxxx[57470:4803] onApplicationSettingsChanged: names = [Default - ]

2014-02-02 16:15:05.976 xxxxxxxxxxxxxxx57470:4803] ================================================

2014-02-02 16:15:05.980 xxxxxxxxxxxxxxx[57470:4803] ================================================

2014-02-02 16:15:05.980 xxxxxxxxxxxxxxx[57470:4803] onApplicationSettingsChanged: names = [Default - ]

2014-02-02 16:15:05.981 xxxxxxxxxxxxxxx[57470:4803] ================================================

2014-02-02 16:15:05.982 xxxxxxxxxxxxxxx[57470:4803] =================================================

2014-02-02 16:15:05.983 xxxxxxxxxxxxxxx[57470:4803] onConnectionStatusChanged: status = 105, code = 580, message = Error: 580 Detail: Invalid or Expired User Name and/or Authentication Code or wrong App ID Native Error: -9 Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1754.

2014-02-02 16:15:05.983 xxxxxxxxxxxxxxx[57470:4803] =================================================

Once the NScalender error occurred , the connection parameters are getting changed and its take some empty or wrong value and trying ot coonect with server and error code as 580.

With Regards!

Ram

Message was edited by: Jason Lax Shortened title to make thread usable.