SAP Knowledge Base Article - Preview

2036705 - Android 4.3 ObjectAPI https synch fails with SynchronizeException using SMP 2.3 SP03 SDK

Symptom

  • A NullPointerException is thrown by SAP Mobile Platform 2.3 SP03 ObjectAPI libraries on Android 4.3 while trying to synchronize, connecting through Internet Information Server (IIS) Relay Server (https connection on port 443).
  • The exception was thrown when method onlineLogin() was called. Confirmed on Samsung Galaxy S4 running Android 4.3 and Samsung Galaxy S2 running Android 4.3.1
  • Exception originates from method com.sybase.sup.client.persistence.RbsDatabaseDelegate.internalSynchronize which calls javax.crypto.Cipher.doFinal method.
  • Root cause for the exception is: java.lang.NullPointerException at javax.crypto.Cipher.doFinal(Cipher.java:1111) at com.sybase.sup.client.persistence.RbsDatabaseDelegate.getIdentityExtraParameters(RbsDatabaseDelegate.java:1217) ...
  • This issue might be related to security API changes that were introduced in Android 4.1+ (no longer possible to get private key of a certificate).
  • Please find the detailed stacktrace below.

 

com.sybase.persistence.SynchronizeException: java.lang.NullPointerException at

com.sybase.sup.client.persistence.RbsDatabaseDelegate.internalSynchronize(RbsDatabaseDelegate.java:1099) at

com.sybase.sup.client.persistence.RbsDatabaseDelegate.synchronizeWithCallback(RbsDatabaseDelegate.java:554) at

com.sybase.sup.client.persistence.RbsDatabaseDelegate.synchronize(RbsDatabaseDelegate.java:167) at

com.sybase.sup.client.persistence.RbsDatabaseDelegate.onlineLogin(RbsDatabaseDelegate.java:1632) at

com.mt.ifa.domain.mbo.InFieldApplicationMBODB.onlineLogin(InFieldApplicationMBODB.java:619) at

com.mt.ifa.controller.SynchronizationController.initConnectionProfilesAndDatabaseParameters(SynchronizationController.java:1135) at

com.mt.ifa.controller.SynchronizationController.runSynchronization(SynchronizationController.java:180) at

com.mt.ifa.controller.SynchronizationController.access$0(SynchronizationController.java:129) at

com.mt.ifa.controller.SynchronizationController$1.run(SynchronizationController.java:444) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NullPointerException at javax.crypto.Cipher.doFinal(Cipher.java:1111) at

com.sybase.sup.client.persistence.RbsDatabaseDelegate.getIdentityExtraParameters(RbsDatabaseDelegate.java:1217) at

com.sybase.sup.client.persistence.RbsDatabaseDelegate.internalSynchronize(RbsDatabaseDelegate.java:919) ... 9 more Generated database class details: /** * Generated by Sybase AFX Compiler with templateJ * Compiler version - 2.3.3.13 * mbs - false */


Read more...

Environment

  • SAP Mobile Platform 2.3 SP03
  • Internet Information Server + Relay Server
  • Android SDK ObjectAPI 
  • Method used is onlineLogin()
  • Tested Samsung Galaxy S4 running Android 4.3 and Samsung Galaxy S2 running Android 4.3.1

Product

SAP Mobile Platform 2.3

Keywords

KBA , MOB-SUP-SDK , Mobile SDK , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.