Results 1 to 3 of 3
  1. #1

    Connection Error - Android API


    When Im trying to connect to my server, Im receiving an PushConnException:

    client.openConnection(,new LSConnectionListener(this.phase));
    " Trust anchor for certification path not found."

    There is a TrustManager used by the lightstreamer connector? Where can I set my cert to be trusted?

    Thank you all!

    I've found the file HttpProvider, and I tried to add my TrustManager into the method:
    private HttpURLConnection sendPost() throws Throwable
    But it's not working.
    Last edited by marcosmiguez; January 6th, 2017 at 09:44 PM.

  2. #2
    Join Date
    Feb 2012
    Hi Marcos,

    First, please could you confirm that in the server you have configured a self-signed certificate? Otherwise you should not have any issue with https connections.

    However, if in your test or development environment you want to use a self-certificate you should override the default trust store and specify your own trust store.

    Please you could also refer to:


  3. #3
    Giuseppe, thank you!

    It worked perfecly. I was using a self-signed certificate.

    Thank you!
    Last edited by marcosmiguez; January 10th, 2017 at 01:02 AM.



Similar Threads

  1. Replies: 2
    Last Post: March 4th, 2014, 09:23 AM
  2. Android browser --> SSL and error 39
    By Mone in forum Client SDKs
    Replies: 0
    Last Post: February 21st, 2011, 04:16 PM
  3. Replies: 1
    Last Post: March 25th, 2010, 09:04 AM
  4. Connection reset error
    By gshatkin in forum Adapter SDKs
    Replies: 4
    Last Post: January 9th, 2009, 10:28 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 12:42 PM.