Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.