grails コマンドを起動したら以下のエラーが発生
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
| Error Problem updating profiles from origin git repository (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) org.eclipse.jgit.api.errors.TransportException: https://github.com/grails/grails-profile-repository: cannot open git-upload-pack at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.grails.cli.profile.git.GitProfileRepository.fetchAndRebaseIfExpired(GitProfileRepository.groovy:140) at org.grails.cli.profile.git.GitProfileRepository.createOrUpdateRepository(GitProfileRepository.groovy:109) at org.grails.cli.profile.git.GitProfileRepository.getProfile(GitProfileRepository.groovy:56) at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:407) at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:252) at org.grails.cli.GrailsCli.main(GrailsCli.groovy:153) Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/grails/grails-profile-repository: cannot open git-upload-pack at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:524) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1115) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) ... 6 more Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98) at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168) at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475) ... 11 more | Error Problem updating profiles from origin git repository | Error Could not checkout tag for Grails release [3.0.10]: Ref v3.0.10 can not be resolved (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) org.eclipse.jgit.api.errors.RefNotFoundException: Ref v3.0.10 can not be resolved at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:244) at org.grails.cli.profile.git.GitProfileRepository.checkoutTagForRelease(GitProfileRepository.groovy:128) at org.grails.cli.profile.git.GitProfileRepository.createOrUpdateRepository(GitProfileRepository.groovy:116) at org.grails.cli.profile.git.GitProfileRepository.getProfile(GitProfileRepository.groovy:56) at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:407) at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:252) at org.grails.cli.GrailsCli.main(GrailsCli.groovy:153) | Error Could not checkout tag for Grails release [3.0.10]: Ref v3.0.10 can not be resolved | Error Error occurred running Grails CLI: No profile found for name [web]. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.IllegalStateException: No profile found for name [web]. at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:410) at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:252) at org.grails.cli.GrailsCli.main(GrailsCli.groovy:153) | Error Error occurred running Grails CLI: No profile found for name [web]. |
まず、2点問題があって、最初に以前の開発環境をそのまま持ってきて起動したので
build 直下に以前コンパイルしたものが入っていたので、build ディレクトリごと削除。
すると、以下のエラーだけになった。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
| Error Error initializing classpath: Received fatal alert: protocol_version (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) javax.net.ssl.SSLException: Received fatal alert: protocol_version 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$ProgressReportingDownload.download(DistributionFactory.java:177) at org.gradle.wrapper.Install$1.call(Install.java:59) at org.gradle.wrapper.Install$1.call(Install.java:46) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:46) at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution$1.call(DistributionFactory.java:122) at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution$1.call(DistributionFactory.java:116) | Error Error initializing classpath: Received fatal alert: protocol_version |
こちらのエラーは、javaのバージョンが悪い。TLS1.2 を使おうとしてるのかな。
java1.7.0 を使っていた(それなりの事情があったのです。)のを、java1.8.0 にしたら解決。