Reputation: 121
I'm not very familiar with js technologies and I'm working on a Typescript project (with ionic cordova) for android. I've retrieved this project from a colleague. The project works on its environment.
My configuration:
I ran the following commands in Visual Studio Code
The second triggers the following exception:
Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
...
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
Moreover, when I start "ionic serve", a localhost page is opened on my browser. First the webapp is displayed one second, and then an error page is displayed:
"Uncaught (in promise): cordova_not_available"
With the following stack:
c@http://localhost:8100/build/polyfills.js:3:19752
c@http://localhost:8100/build/polyfills.js:3:19461
f/<@http://localhost:8100/build/polyfills.js:3:20233 F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15649 onInvokeTask@http://localhost:8100/build/vendor.js:5436:24
F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15562
F</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10815
o@http://localhost:8100/build/polyfills.js:3:7887
And the following informations:
I don't know what is wrong, particularly when the project works on the pc of my colleague. So I assume I don't have anything to do in the project configuration files.
Now it's working on "ionic cordova build browser" but not "ionic cordova build android" (android is defined as a platform in package.json).
I don't have any idea of what to do. Have you any idea ? Thanks !
Upvotes: 0
Views: 1033
Reputation: 121
Finally, after some days I've found the problem was the installed JRE. I uninstalled my current JRE 8 and installed another version and it's work fine.
However, I don't understand why but it's ok now.
Upvotes: 0