Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1240

URL listener starts with ugly (but unimportant) KeyStore exception

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 3.1.0
    • 2.8.0
    • Java-Android
    • Security Level: Public
    • None
    • JAK 61
    • 3

    Description

      [Only on Android] when we start the p2p url listener with tls seeing the below exception.
      But Url listener starts fine and able to access the listener

       
      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.engineGetCertificateChain(AndroidKeyStoreSpi.java:118)
              at java.security.KeyStore.getCertificateChain(KeyStore.java:1087)
              at com.couchbase.lite.internal.KeyStoreManager.getCertificates(KeyStoreManager.java:258)
              at com.couchbase.lite.internal.KeyStoreManagerDelegate.getCertificateChain(KeyStoreManagerDelegate.java:161)
              at com.couchbase.lite.TLSIdentity.getIdentity(TLSIdentity.java:59)
              at com.couchbase.lite.TLSIdentity.getAnonymousIdentity(TLSIdentity.java:168)
              at com.couchbase.lite.URLEndpointListener.startLocked(URLEndpointListener.java:195)
              at com.couchbase.lite.URLEndpointListener.start(URLEndpointListener.java:140)
              at com.couchbase.mobiletestkit.javacommon.RequestHandler.PeerToPeerRequestHandler.serverStart(PeerToPeerRequestHandler.java:294)
              at java.lang.reflect.Method.invoke(Native Method)
              at com.couchbase.mobiletestkit.javacommon.RequestHandlerDispatcher.handle(RequestHandlerDispatcher.java:133)
              at com.couchbase.mobiletestkit.javalistener.Server.handle(Server.java:128)
              at org.nanohttpd.protocols.http.HTTPSession.execute(HTTPSession.java:418)
              at org.nanohttpd.protocols.http.ClientHandler.run(ClientHandler.java:75)
              at java.lang.Thread.run(Thread.java:764)
      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.engineGetCertificateChain(AndroidKeyStoreSpi.java:118)
              at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:484)
              at java.security.KeyStore.getEntry(KeyStore.java:1560)
              at com.couchbase.lite.internal.KeyStoreManager.getPrivateKey(KeyStoreManager.java:235)
              at com.couchbase.lite.internal.KeyStoreManagerDelegate.getKey(KeyStoreManagerDelegate.java:153)
              at com.couchbase.lite.TLSIdentity.getIdentity(TLSIdentity.java:65)
              at com.couchbase.lite.TLSIdentity.getAnonymousIdentity(TLSIdentity.java:168)
              at com.couchbase.lite.URLEndpointListener.startLocked(URLEndpointListener.java:195)
              at com.couchbase.lite.URLEndpointListener.start(URLEndpointListener.java:140)
              at com.couchbase.mobiletestkit.javacommon.RequestHandler.PeerToPeerRequestHandler.serverStart(PeerToPeerRequestHandler.java:294)
              at java.lang.reflect.Method.invoke(Native Method)
              at com.couchbase.mobiletestkit.javacommon.RequestHandlerDispatcher.handle(RequestHandlerDispatcher.java:133)
              at com.couchbase.mobiletestkit.javalistener.Server.handle(Server.java:128)
              at org.nanohttpd.protocols.http.HTTPSession.execute(HTTPSession.java:418)
              at org.nanohttpd.protocols.http.ClientHandler.run(ClientHandler.java:75)
              at java.lang.Thread.run(Thread.java:764)
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thuan Thuan Nguyen
              manasa.ghanta Manasa Ghanta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty