Skip to Content
avatar image
Former Member

SUP registration error code

SUPApplication *app=[SUPApplication getInstance];

        [app setApplicationIdentifier:@"SUP110"];

        [app setApplicationCallback:self.callbackHandler];

        [SUP110SUP110DB registerCallbackHandler:self.callbackHandler];

      

        [MBOLogger setLogLevel:LOG_INFO];

      

        //SYBASE CONTROL CENTER SETTINGS

        SUPConnectionProperties *property=[app connectionProperties];

        [property setServerName:@"xxxxxxx"];

        [property setPortNumber:2480];

        [property setNetworkProtocol:@"http,https"];

        [property setSecurityConfiguration:@"trusted_certificates=;url_suffix="];

      

      

      

        SUPLoginCredentials *login=[[SUPLoginCredentials alloc]initWithUsername:@"supAdmin" andPassword:@"xxxxx"];

        [property setLoginCredentials:login];

  

      

        if(![SUP110SUP110DB databaseExists]){

          

            [SUP110SUP110DB createDatabase];

            NSLog(@"DB CREATION");

          

        }

        else{

            NSLog(@"DB ALREADY EXISTS");

        }

      

      

      

        //SYBASE UNWIRED SERVER CONNECTION SETTINGS

        SUPConnectionProfile *connProfile=[SUP110SUP110DB getSynchronizationProfile];

        [connProfile setNetworkProtocol:@"http,https"];

        [connProfile setPortNumber:2480];

        [connProfile setServerName:@"192.168.10.63"];

        [connProfile.syncProfile setDomainName:@"default"];

        [connProfile setUser:@"supAdmin"];

        [connProfile setPassword:@"tech1234"];

        [connProfile.syncProfile enableTrace:YES];

        [connProfile setAsyncReplay:NO];

      

        [SUP110SUP110DB setApplication:app];

      

      

        NSLog(@"++++++%d",[SUPApplication registrationStatus]);

      

        @try{

            if([SUPApplication registrationStatus]==SUPRegistrationStatus_REGISTERED)

            {

              

                [app startConnection:120];

                NSLog(@"Start app Connection");

            }

            else

            {

              

                [app registerApplication:120];

                NSLog(@"Register app Connection");

            }

        }

        @catch(SUPApplicationTimeoutException *pe){

            NSLog(@"1::::%@ : 2::::%@ 3:::::%@",[pe name],[pe message],[pe description]);

          

        }

      

      

When run the following code in device im getting  following error

2014-02-15 15:22:01.681 SUPSample[2574:a0b] ++++++205

2014-02-15 15:22:06.002 SUPSample[2574:a0b] [ERROR] [SUPApplication.m:959] error @ registerApplication MessagingClientException {

    ErrorCode = 514;

    ErrorMessage = "";

}


can anyone help me how to solve the problem?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 15, 2014 at 10:09 AM

    Use the port 5001 for registration of the application and 2480 for synchronization. Now I can see you are using only one port for both.

    Add comment
    10|10000 characters needed characters exceeded