Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to jppm start in MacOS #291

Closed
HessianZ opened this issue Feb 15, 2019 · 2 comments
Closed

Failed to jppm start in MacOS #291

HessianZ opened this issue Feb 15, 2019 · 2 comments

Comments

@HessianZ
Copy link

Hello, I am a newbie to jphp

When I run jppm start it print error message below

-> app:run
-> install
-> download package jphp-core@1.0.4 from 'http://api.develnext.org'
[ERROR] java.io.IOException: Unable to get input stream for connection https://cdn.develnext.org/bc/de/68631492-0d2b-43ac-a247-83424894afaa.gz
-> download package jphp-zend-ext@1.0.0 from 'http://api.develnext.org'
[ERROR] java.io.IOException: Unable to get input stream for connection https://cdn.develnext.org/aa/dc/66947bc0-783d-461d-80f1-ba9bcf5691c4.gz
[WARNING] -> failed to install jphp-core@*, cannot find package.
[WARNING] -> failed to install jphp-zend-ext@*, cannot find package.

Exception throw from php.runtime.ext.net.WrapNetStream

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
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)

My env info:

macOS mojave 10.14.2 (18C54)

jppm version
JPPM Information:
-> version: 0.4.1
--> jphp: 1.0.3
--> java: 1.8.0_66 (x86_64)

java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
@MWGuy
Copy link
Member

MWGuy commented Feb 15, 2019

Try to install JDK 11+ distribution

@HessianZ
Copy link
Author

Try to install JDK 11+ distribution

I replaced the MacOS builtin JDK with java 11.0.2-open from sdkman , it works now.

Thank you.

hessian:jphp/ $ java -version          
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

hessian:jphp/ $ jppm start          
-> app:run
-> install
-> get versions of package jphp-core, source: http://api.develnext.org
-> get versions of package jphp-runtime, source: http://api.develnext.org
-> get versions of package jphp-zend-ext, source: http://api.develnext.org
-> get versions of package jphp-json-ext, source: http://api.develnext.org
-> install jphp-core@1.0.4
--> install jphp-runtime@1.0.7
-> install jphp-zend-ext@1.0.0
--> install jphp-json-ext@1.0.0
Hello World

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants