4

I installed a fresh copy of GGTS on a fresh copy of windows 8 with JDK 1.7 installed.
I tried to get it to compile my existing project which was based on 2.3.6 and it failed miserably as GGTS comes with grails 2.4.2.

I know serveral people who had problems with 2.4.x so decided to stick with 2.3.

So I downloaded 2.3.11 (latest 2.3) and created a GRAILS_HOME pointing to 2.3.11 dir, and JAVA_HOME pointing to the root of the JDK.

On command line, I can now type grails - version and get back 2.3.11.

I restarted GGTS, and deleted the project and createde it again, adding 2.3.11 as a new Grails version, and set the project to use that.

It fails to compile, saying version is wrong. Fair enough. But when I try to launch the command line from GGTS using the gree circular button at the top which looks like 3 cups, it says:

Retrieving available scripts
Retrieving available scripts
An internal error occurred during: "Retrieving available scripts".
java.lang.NullPointerException

Any ideas?

John Little
  • 10,707
  • 19
  • 86
  • 158

4 Answers4

2

In my case the problem was, that I had moved grails to a different folder. I just had to change the location of grails in the settings. Hope that helps somebody.

inke
  • 21
  • 3
1

check all grails-project's 'app.grails.version' in application.properties, then open window - preferences - groovy -grails, make sure that all VERSIONs were defined ( I use sts, maybe a little difference ).

alternatively

update all application.properties set app.grails.version=2.3.11 ( the version your ggts defined )

user3666197
  • 1
  • 6
  • 50
  • 92
aRong
  • 11
  • 1
  • Thanks aRong. In the end I switched to intellij, and didnt get the problem with that. as you say - it could have been a version issue. – John Little Nov 05 '14 at 10:29
0

Check if your environment variable of GRAILS_HOME is set to the right version of Grails.

eeezyy
  • 2,109
  • 1
  • 15
  • 18
0

I ran into this same issue, and the problem was caused by the Grails installation it was trying to use. It wanted to use the default version that comes with GGTS rather than the one I installed myself.

To fix, go to Window > Preferences > Groovy > Grails, then "Edit" the Grails installation it shows. I had to switch mine from C:\ggts-bundle\grails-2.4.4\ to C:\grails-2.4.2\.

thornjad
  • 155
  • 1
  • 13