My Oracle Support Banner

Synchronization using SSL Fails between Android Device and Mobile Server 11GR1 (Doc ID 1473044.1)

Last updated on JULY 25, 2023

Applies to:

Oracle Database Mobile Server - Version 11.1.0.0.0 and later
Information in this document applies to any platform.Symptoms

 When running Simple Sync Application on Google Android, it fails with the following error:

Mon Jun 11 15:10:48 GMT+00:00 2012
Exception:
javax.net.ssl.SSLException: Not trusted server certificate
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:371)
    at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168)
    at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:399)
    at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:1253)
    at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:263)
    at oracle.opensync.util.android.AndroidHttpConnection.openOutputStream(Unknown Source)
    at oracle.opensync.ose.HttpTransport.openOutputStream(Unknown Source)
    at oracle.opensync.util.FileTransport.writeFileImp(Unknown Source)
    at oracle.opensync.util.FileTransport.writeFile(Unknown Source)
    at oracle.opensync.util.FileTransport.openInputStream(Unknown Source)
    at oracle.opensync.ose.Engine.head(Unknown Source)
    at oracle.opensync.ose.Engine.sync(Unknown Source)
    at oracle.opensync.ose.OSESession.sync(Unknown Source)
    at tests.sync.MainAct$3$2.run(MainAct.java:124)
    at java.lang.Thread.run(Thread.java:1096)
Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found.
    at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:168)
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:366)
    ... 14 more
Caused by: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found.
    at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:149)
    at java.security.cert.CertPathValidator.validate(CertPathValidator.java:202)
    at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:164)
    ... 15 more

Changes

 Mobile Server was configured in SSL

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.