Skip to Content
0
Former Member
Sep 04, 2013 at 09:58 AM

Missing required connection profile property

50 Views

Good day!

When migrating from SUP 2.1.2 to 2.2, we get an error.


2013-09-04 11:57:49.562 REQPAY[11068:c07] [ERROR] [SUPApplication.m:1130] Missing required connection profile property:

2013-09-04 12:47:52.134 Subsystem=Error Application ID=Reqpay_V1, Application Connection ID=SIMULATOR-__Reqpay_V1, User=V.A.SOGLAEV@SAPEIS, Correlation ID=, Transaction ID=, Root Context ID=, Package=reqpay_v1:2.0, MBO=, Operation=, Thread ID=229, Node ID=U-MOBIL2, Error=[-10052] The authenticate_parameters script returned 3004

2013-09-04 12:47:52.134 Subsystem=Error Application ID=Reqpay_V1, Application Connection ID=SIMULATOR-__Reqpay_V1, User=V.A.SOGLAEV@SAPEIS, Correlation ID=, Transaction ID=, Root Context ID=, Package=reqpay_v1:2.0, MBO=, Operation=, Thread ID=229, Node ID=U-MOBIL2, Error=Application connection <moca://SIMULATOR-__Reqpay_V1> is not for appId <Reqpay_V1>

- (void)setupApplicationConnection{

defaults = [NSUserDefaults standardUserDefaults];

SUPApplication *app = [SUPApplication getInstance];

[app setApplicationIdentifier:@"Reqpay_V1"];

[app setApplicationCallback:self.callbackHandler];

SUPConnectionProperties *properties = app.connectionProperties;

[properties setServerName:@"u-mobil2.utg.loc"];

[properties setPortNumber:5001];

[properties setFarmId:0];

[properties setSecurityConfiguration:@"SAPEIS"];

[properties setNetworkProtocol:@"http"];

[properties setUrlSuffix:@""];

SUPLoginCredentials *loginCred = [SUPLoginCredentials getInstance];

[loginCred setUsername:[defaults stringForKey:@"supusername"]];

[loginCred setPassword:[defaults stringForKey:@"suppassword"]];

[properties setLoginCredentials:loginCred];

[properties setActivationCode:@"REQPAY"];

if (![Reqpay_V1Reqpay_V1DB databaseExists]) {

[Reqpay_V1Reqpay_V1DB createDatabase];

}

SUPConnectionProfile *connProfile = [Reqpay_V1Reqpay_V1DB getSynchronizationProfile];

[connProfile setPortNumber:2480];

[connProfile setServerName:@"U-MOBIL2"];

[connProfile setDomainName:@"default"];

[connProfile setUser:[defaults stringForKey:@"supusername"]];

[connProfile setPassword:[defaults stringForKey:@"suppassword"]];

[connProfile setAsyncReplay:YES];

[connProfile setClientId:@"0"];

[connProfile setNetworkProtocol:@"http"];

[Reqpay_V1Reqpay_V1DB registerCallbackHandler:self.callbackHandler];

[Reqpay_V1Reqpay_V1DB setApplication:app];

if ([SUPApplication registrationStatus] == SUPRegistrationStatus_REGISTERED) {

[app startConnection:0];

}else{

[app registerApplication:0];

}

}