Grails 3.1.4 Unable to do HelloWorld eg

381 views
Skip to first unread message

Grails_user_999

unread,
Apr 11, 2016, 3:21:56 PM4/11/16
to Grails Dev Discuss
Hello,

Windows OS
Grails Version: 3.1.4
Groovy Version: ;2.4.6
JVM Version: 1.7.0_60

Used to use old grails all the time, tried new one and I am unable to get anywhere. Looks like it is complaining about java sun cert something while just trying to enter grails command line.

Tried many times, same reuslts. 

Any ideas? anyone ever seen this behavior?

grails create-app helloworld
cd helloworld
grails> create-controller hello
| Error Error initializing classpath: unable to find valid certification path to
 requested target (Use --stacktrace to see the full trace)
verbose to grails
| Error Error initializing classpath: unable to find valid certification path to
 requested target
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
 certification path to requested target
        at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCert
PathBuilder.java:196)
        at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
        at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)
        at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.jav
a:292)
        at sun.security.validator.Validator.validate(Validator.java:260)
        at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.j
ava:326)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerIm
pl.java:231)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustMan
agerImpl.java:126)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.
java:1323)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.jav
a:153)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
        at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.
java:1312)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339
)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323
)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
563)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:185)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1300)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Http
sURLConnectionImpl.java:254)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
        at org.gradle.wrapper.Download.download(Download.java:44)
        at org.gradle.tooling.internal.consumer.DistributionFactory$ProgressRepo
rtingDownload.download(DistributionFactory.java:177)
        at org.gradle.wrapper.Install$1.call(Install.java:62)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:65)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistri
bution$1.call(DistributionFactory.java:122)
        at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistri
bution$1.call(DistributionFactory.java:116)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:745)
| Error Error initializing classpath: unable to find valid certification path to
 requested target

Sasha S

unread,
May 15, 2016, 10:41:26 AM5/15/16
to Grails Dev Discuss
I have encouraged the same issue.
Unfortunately, I don't know how to fix it, but I think that the reason is mistrusted SSL certificate in your Java keystore.

To verify what exactly certificate is missed or not trusted, run the command in SSL debug mode:
set GRAILS_OPTS="-Djavax.net.debug=SSL"
grails create-app helloword
create-controller hello

 May be this will be useful for you.




понедельник, 11 апреля 2016 г., 22:21:56 UTC+3 пользователь Grails_user_999 написал:

joechan...@gmail.com

unread,
May 15, 2016, 3:08:38 PM5/15/16
to Grails Dev Discuss
You can try the latest 3.1.6, some said it was an error of 3.1.4
Reply all
Reply to author
Forward
0 new messages