Skip to Content
author's profile photo Former Member
Former Member

SUP 2.1.3 Sync Error: SUPPersistenceException: SUPPersistenceException from synchronize: -- SUPSynchronizeException: The application connection doesn't match with the application id

Hi all,

I am developing a native iOS application using SUP 2.1.3. I got an error:

SUPPersistenceException: SUPPersistenceException from synchronize: -- SUPSynchronizeException: The application connection doesn't match with the application id

And also on the server side this error is occured:

2012-07-31 08:58:05.407 ERROR Mobilink Thread-156 [com.sybase.ml.sup.Logger] [-10052]The authenticate_parameters script returned 3004


I didnt get this error before but added a few fields to RFC and regenerated code. Then added them to my project and I got this error.

In apps viewDidLoad method:

o any additional setup after loading the view from its nib.

        SUPApplication *app = [SUPApplication getInstance];        [app setApplicationIdentifier:@"MobileProject"];        SUPConnectionProperties *connectionProperties = [app connectionProperties];        [connectionProperties setServerName:@"sapsybase"];        [connectionProperties setPortNumber:5001];        SUPLoginCredentials *loginCredantials = [SUPLoginCredentials getInstance];        [loginCredantials setUsername:@"supuname"];        [loginCredantials setPassword:@"suppassword"];        [connectionProperties setLoginCredentials:loginCredantials];        [app setApplicationCallback:callbackHandler];        [MobileProjectMobileProjectDB setApplication:app];        @try {            [app registerApplication:30];        }        @catch (NSException *exception) {            NSLog(@"%@",exception);        }        @finally {        }        ///        [MobileProjectMobileProjectDB openConnection];        if (![MobileProjectMobileProjectDB databaseExists]) {            [MobileProjectMobileProjectDB createDatabase];        }else{            [MobileProjectMobileProjectDB deleteDatabase];            [MobileProjectMobileProjectDB createDatabase];        }

And in method which fired by button:

    SUPConnectionProfile *cp = [MobileProjectMobileProjectDB getSynchronizationProfile];    [cp setUser:@"supuname"];    [cp setPassword:@"suppassword"];    [cp setServerName:@"sapsybase"];    [cp setPortNumber:2480];    [MobileProjectMobileProjectDB registerCallbackHandler:callbackHandler];    MboileProjectMPMBOSynchronizationParameters *syncParams = [MobileProjectMPMBO getSynchronizationParameters];    [syncParams setIp_fp:@"3000019006"];    [syncParams setIp_sp:@"1q2w3e"];    [syncParams setIp_spUserDefined:YES];    [syncParams setIp_fpDefined:YES];    @try {        MobileProjectKeyGenerator *gene = [MobileProjectKeyGenerator getInstance];        [gene save];        [syncParams save];        [MobileProjectMobileProjectDB synchronize];       }    @catch (NSException *exception) {        NSLog(@"%@",exception);    }
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2012 at 11:39 AM

    This is the solution:

    Create a new project in XCode. Implement SUP code, run your iOS project. It will work. Then try your old iOS project. It will work too. That's ridicilous but it works. It happened twice.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 31, 2012 at 09:34 AM

    Sounds like the application ID got messed up. Make sure your application is using the SAME application ID when connecting to SUP as you defined it inside SCC when setting up the Application template. The app ID is used to associate an incoming client connection with the application template. So if you got a missmatch in the app ID SUP can not associate your app with the app template and has no clue, what to do with your connection.

    In that respect, you need to understand that with SUP 2.1.3 the synchronized SUP clients are using messaging for registration and replication for data transport (replication). So your app has one app ID that you may need to use inside SUP (SCC) for the registration and replication configuration.

    Check out the infocenter docs on Application ID.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2014 at 11:21 AM

    Hi ,

    I am using unwired server to connect my native iOS application sap. i got the connection successful but at the time of synchronisation I am getting following error.

    [ERROR] [SubscribeController.m:72] SUPPersistenceException: Sync failed: -1305 (MOBILINK_COMMUNICATIONS_ERROR) %1:63 %2: %3:2;Parameter 1:63;Parameter 2:;Parameter 3:2

    Can any one please help me on this , I am new in SUP development and trying to resolve the error since long time.

    Thank you in advance.

    Sandip.

    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.