cancel
Showing results for 
Search instead for 
Did you mean: 

Android Native Client - Registration error

Former Member
0 Kudos

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;

}

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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...