Sample App KeyStore Error

7 posts / 0 new
Last post
javier.muniz
Sample App KeyStore Error

Hello,

I am attempting to build and run the sample applicaiton at https://github.com/MapQuest/mq-navigation-sdk-reference-app-android but getting the following keystore error when starting navigation:

2019-02-25 16:30:44.297 10168-10427/com.mapquest.navigation.sampleapp W/KeyStore: KeyStore exception
android.os.ServiceSpecificException: (code 7)
at android.os.Parcel.createException(Parcel.java:1956)
at android.os.Parcel.readException(Parcel.java:1910)
at android.os.Parcel.readException(Parcel.java:1860)
at android.security.IKeystoreService$Stub$Proxy.get(IKeystoreService.java:786)
at android.security.KeyStore.get(KeyStore.java:195)
at android.security.keystore.AndroidKeyStoreSpi.engineGetCertificate(AndroidKeyStoreSpi.java:144)
at android.security.keystore.AndroidKeyStoreSpi.engineGetCertificateChain(AndroidKeyStoreSpi.java:111)
at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:484)
at java.security.KeyStore.getEntry(KeyStore.java:1560)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.rsaEncrypt(KeyStoreGenerator.kt:178)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.getSecretKey(KeyStoreGenerator.kt:164)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.getKeyStore(KeyStoreGenerator.kt:43)
at com.mapquest.navigation.internal.observer.storage.keystore.PrivateKeyStore$Companion.getPrivateKeyStore(PrivateKeyStore.kt:10)
at com.mapquest.navigation.internal.observer.storage.LocalStorageEncryptor$Companion$getInstance$1.run(LocalStorageEncryptor.kt:38)
at java.lang.Thread.run(Thread.java:764)
2019-02-25 16:30:44.304 10168-10427/com.mapquest.navigation.sampleapp W/KeyStore: KeyStore exception
android.os.ServiceSpecificException: (code 7)
at android.os.Parcel.createException(Parcel.java:1956)
at android.os.Parcel.readException(Parcel.java:1910)
at android.os.Parcel.readException(Parcel.java:1860)
at android.security.IKeystoreService$Stub$Proxy.get(IKeystoreService.java:786)
at android.security.KeyStore.get(KeyStore.java:195)
at android.security.keystore.AndroidKeyStoreSpi.engineGetCertificate(AndroidKeyStoreSpi.java:149)
at android.security.keystore.AndroidKeyStoreSpi.engineGetCertificateChain(AndroidKeyStoreSpi.java:111)
at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:484)
at java.security.KeyStore.getEntry(KeyStore.java:1560)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.rsaEncrypt(KeyStoreGenerator.kt:178)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.getSecretKey(KeyStoreGenerator.kt:164)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.getKeyStore(KeyStoreGenerator.kt:43)
at com.mapquest.navigation.internal.observer.storage.keystore.PrivateKeyStore$Companion.getPrivateKeyStore(PrivateKeyStore.kt:10)
at com.mapquest.navigation.internal.observer.storage.LocalStorageEncryptor$Companion$getInstance$1.run(LocalStorageEncryptor.kt:38)
at java.lang.Thread.run(Thread.java:764)
2019-02-25 16:30:44.318 10168-10427/com.mapquest.navigation.sampleapp E/AndroidRuntime: FATAL EXCEPTION: Thread-4923
Process: com.mapquest.navigation.sampleapp, PID: 10168
java.lang.NullPointerException: invalid null input
at java.security.KeyStore$PrivateKeyEntry.(KeyStore.java:559)
at java.security.KeyStore$PrivateKeyEntry.(KeyStore.java:526)
at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:485)
at java.security.KeyStore.getEntry(KeyStore.java:1560)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.rsaEncrypt(KeyStoreGenerator.kt:178)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.getSecretKey(KeyStoreGenerator.kt:164)
at com.mapquest.navigation.internal.observer.storage.keystore.KeyStoreGeneratorKt.getKeyStore(KeyStoreGenerator.kt:43)
at com.mapquest.navigation.internal.observer.storage.keystore.PrivateKeyStore$Companion.getPrivateKeyStore(PrivateKeyStore.kt:10)
at com.mapquest.navigation.internal.observer.storage.LocalStorageEncryptor$Companion$getInstance$1.run(LocalStorageEncryptor.kt:38)
at java.lang.Thread.run(Thread.java:764)

Any help is greatly appreciated :)


MQBrianCoakley
Thanks for the heads up. I
Thanks for the heads up. I forwarded this on to the development team to investigate.

MQBrianCoakley
Is this error a warning or is
Is this error a warning or is this crashing the app?

javier.muniz
It's crashing the app.

It's crashing the app.


MQBrianCoakley
Thanks for the additional
Thanks for the additional information. This has been forwarded on to the development team to assess.

javier.muniz
I got this fixed. It was an

I got this fixed. It was an issue on my end with API versions being ignored due to dependency incompatibility.


MQBrianCoakley
Thanks for the follow up.
Thanks for the follow up. That was a head scratcher on this side.