on 11-13-2012 7:28 PM
Hi,
We are developing Android native clients to a SUP 2.1 ESD 3 application.
The application was deployed into a domain with a specific security configuration and a native code was generated.
When we try to run the registerApplication method, an register error occurs:
com.sybase.mobile.ApplicationRuntimeException: Auto registration template not found
Any idea about what is missing? Suggestions to solve this problem?
The native code:
supApplication = com.sybase.mobile.Application.getInstance();
supApplication.setApplicationIdentifier(APPLICATION_NAME);
supApplication.setApplicationContext(MainActivity.this);
...
try {
if (supApplication.getRegistrationStatus() != RegistrationStatus.REGISTERED) {
ComercialMobileDB.registerCallbackHandler(new ClienteDBCallback());
ComercialMobileDB.setApplication(supApplication);
ComercialMobileDB.getSynchronizationProfile().setServerName(HOST);
ConnectionProperties connProps = supApplication.getConnectionProperties();
LoginCredentials loginCredentials = new LoginCredentials(USERNAME, PASSWORD);
connProps.setLoginCredentials(loginCredentials);
connProps.setFarmId("0");
connProps.setServerName(HOST);
connProps.setPortNumber(PORT);
supApplication.registerApplication(TIMEOUT);
} else {
supApplication.startConnection(TIMEOUT);
}
if (supApplication.getConnectionStatus() == ConnectionStatus.CONNECTED) {
ComercialMobileDB.disableChangeLog();
ComercialMobileDB.synchronize();
}
return true;
} catch (Exception e) {
Log.e("WSTest", "Error", e);
return false;
}
Problem solved with FAQ:
"
9Q: During registration, I am getting the error “Error: 14850 Message: Auto registration template not found .” What could be wrong?
A: This error is encountered when wrong security configuration is passed from the device or the application name in server and the one in the application
installed on device does not match."
http://scn.sap.com/community/mobile/blog/2012/10/29/faqs-on-sup-odp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found this link in FAQs:
http://scn.sap.com/community/mobile/blog/2012/10/29/faqs-on-sup-odp
Let's check if solves...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.