-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
Grails 3.0.1 CLI won't start #608
Comments
Is anyone else able to reproduce this? |
update I get similar bytecode when I try to manually install grails from the git repo. (afaik this is not due to gvm)
|
What JDK are you using and does the problem still happen if you use -noverify? Thanks for the feedback. |
I am using JVM Version: 1.7.0_67 manually downloaded and installed, after removing openjdk
As currently working: |
Does the problem go away if you use 1.7.0_45? |
Use of -noverify
|
SOLVED This problem goes away when I use jdk1.7.0_45 instead of jdk1.7.0_67 Thanks for the feedback |
I think the problem has nothing with JDK to do. |
Problem also occurs sometimes on OSX 10.11.x using Java 8.0_65. So maybe reopen the issue? |
Set a env variable called GRAILS_OPTS with the value "-XX:-UseSplitVerifier -Xverify:none" |
On OS X 10.11 (15A284) export GRAILS_OPTS="-XX:-UseSplitVerifier -Xverify:none" |
I have setup grails 3.2.1. on windows JAVA_HOME and GRAILS_HOME is also set. verified by running grails -version and worked as expected. But when issue command to create app, it always throw following error "Error occurred running Grails CLI: unable to find valid certification path to requested target (Use --stacktrace to see the full trace)". I tried it by disconnecting the internet and come to know its trying to connect to https://repo.grails.org It seems that some certificates must be in JAVA_HOME/jre/lib/security/cacerts. with this thought I downloaded the SSL certificates from https://repo.grails.org by accessing the URL in browser. same certificates imported in the JAVA_HOME/jre/lib/security/cacerts but still no change. I could not find even a single related post over the internet. when creating Grails app in Netbeans 8, I get the same error. I don't know if I need any other valid certificate or there is any other problem. Many thanks in advance for any help on this. |
I get the same error with Grails 3.2.4 on MacOS and Java 8 (update 20)
However, it works fine with Java 7 (update 40) and Java 8 (update 121) java version "1.7.0_40" java version "1.8.0_121" |
I am a new one in Grails and Groovy.
so I try to create app in the cmd, it tells me the same error, java version "1.8.0_131" |
grails 3.0.1
create-app
andgradle run
succeedgrails -version
| Grails Version: 3.0.1
| Groovy Version: 2.4.3
| JVM Version: 1.7.0_67
... but the grails cli won't start:
$grails
BUILD SUCCESSFUL
Total time: 3.226 secs
| Error Error occurred running Grails CLI: Bad <init> method call from inside of a branch
Exception Details:
Location:
org/grails/cli/interactive/completers/RegexCompletor.<init>(Ljava/lang/String;)V @73: invokespecial
Reason:
Error exists in the bytecode
Bytecode:
0000000: b800 184d 04bd 0004 5903 2c12 1932 121b
0000010: 2bb9 0021 0300 5359 10ff 1202 b800 272a
0000020: 5fab 0000 0000 0043 0000 0002 aad3 b1ff
0000030: 0000 001b 59b3 a684 0000 002e 5f5a 5903
0000040: 32b8 002d c000 2f5f 57b7 0031 a700 225f
0000050: 5a59 0332 121b b800 35c0 001b 5f57 b700
0000060: 38a7 000d bb00 3a59 123c b700 3dbf 57b1
0000070:
Stackmap Table:
full_frame(@60,{UninitializedThis,Object[#47],Object[#66]},{Object[#68],UninitializedThis})
full_frame(@79,{UninitializedThis,Object[#47],Object[#66]},{Object[#68],UninitializedThis})
full_frame(@100,{UninitializedThis,Object[#47],Object[#66]},{Object[#68],UninitializedThis})
full_frame(@110,{Object[#2],Object[#47],Object[#66]},{Object[#68]})
(Use --stacktrace to see the full trace)
I installed grails 3.0.1 with gvm in the usual way and am using Linux mint.
Completely stumped by this and
--stacktrace
doesn't yield any more info.The text was updated successfully, but these errors were encountered: