I have an app using Backendless Cloud 3.x. It has been working fine for months but today I am getting the following exception on all my calls to my external business logic service:
“sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
Is there something wrong with Backendless Cloud? I was supposed to demo my app to a client today.
You mentioned that you’re getting the exception in “all my calls to my external business logic service”. The URL should be the one you’re trying to connect to. Could you please elaborate where exactly the error shows up and what host that code is connecting to?
So I have a service in the custom business logic I created in Java. I downloaded the javascript api that Backendless auto generates and make calls to the custom service using that. For example, I call MyCustomService.GetNumberOfUsers() in javascript. It’s supposed to return the number of users but instead I get the error:
“sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
I’m seeing the error in the Google Chrome console. So I guess the host I’m connecting to is the Backendless server?
The only thing I can think of is Google Maps. I also have an ssl certificate where the html and js code is hosted but I don’t think that should matter.
Please let me know the application ID where it happens. Also, specify how to invoke the method/service in question so we can experience the problem first hand.
The app Id is: CE6DAFE1-FEAB-9A8E-FFA9-BA98F212A300
The name of the custom service EpilepsyWService and an example method is getNumberOfUsers(). It takes 0 arguments and returns an integer. It just counts the number of users in the Users table.