Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20114] https module runtime JNI error

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.1.1
Fix Version/sn/a
Componentsn/a
Labelsandroid, https
ReporterThomas Colliers
AssigneeUnknown
Created2015-11-02T15:59:44.000+0000
Updated2018-02-28T19:54:48.000+0000

Description

When trying to set up certificate pinning:
{{var https = require("appcelerator.https");
var securityManager = https.createX509CertificatePinningSecurityManager([
	{
		url:"https://test.com/",
		serverCertificate:"cert.der"
	}
]);}}
I get the following runtime error on an Android 5.0.1 emulator and a One Plus on Android 5.1.1. The error makes the app crash. {noformat} [ERROR] : art: JNI ERROR (app bug): attempt to pass an instance of java.lang.Object[] as argument 1 to appcelerator.https.PinningSecurityManager appcelerator.https.HttpsModule.createX509CertificatePinningSecurityManager(java.util.HashMap[]) [INFO] : art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: bad arguments passed to appcelerator.https.PinningSecurityManager appcelerator.https.HttpsModule.createX509CertificatePinningSecurityManager(java.util.HashMap[]) (see above for details) {noformat}

Comments

  1. Hans Knöchel 2017-04-17

    Not reproducible on my end, please re-verify with latest SDK and module.

JSON Source