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

grails command has error #277

Closed
majidln opened this issue May 17, 2018 · 2 comments
Closed

grails command has error #277

majidln opened this issue May 17, 2018 · 2 comments

Comments

@majidln
Copy link

majidln commented May 17, 2018

when I enter grails upgrade command, below error raised:


java.lang.NullPointerException
	at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:516)
	at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:307)
	at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:270)
	at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
| Error Error occurred running Grails CLI: null

what is the problem? what is the solution?

@jmiranda
Copy link
Member

jmiranda commented May 17, 2018

From the stacktrace it appears you might be using a more recent version, like Grails 3. Can you let me know what version of Grails you're using here?

Unfortunately, we're stuck on Grails 1.3.9 for the time being. But you can use Sdkman to install and use different versions of Grails.

http:https://sdkman.io/install.html

Once you follow the installation instructions, it's as simple as:

sdk use grails 1.3.9 

Let me know if you have further questions.

@jmiranda
Copy link
Member

Closing as the previous comment answered the question. However, if someone were to stumble onto this before we finished the Grails 3 migration and wanted to run Grails 3 on our code base there's a long-lived feature branch housing all of the migration changes here.
https://github.com/openboxes/openboxes/tree/feature/upgrade-to-grails-3.3.10

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

No branches or pull requests

2 participants