Q:

Command terminated with an exception

Everytime I try to create a Grails project, I get the following error. I can create a project from terminal but not from IDE. I'm using GGTS and I'm new to Grails.

Command terminated with an exception: java.lang.Exception (see
  details for partial output) Command: GrailsCommand(P/BookSolution>
  compile --non-interactive --refresh-dependencies)
  ---- System.out ---- Loading Grails 2.3.8 . |Environment set to development .......... |Compiling 78 source files .Error  |
  Compilation error: startup failed:
  C:\grails\BookSolution\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy:
  -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class
  'grails.plugin.databasemigration.DbdocController'.  @ line -1, column
  -1. C:\grails\BookSolution\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy:
  -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class
  'grails.plugin.databasemigration.DbdocController'.  @ line -1, column
  -1. 2 errors Error | org.codehaus.groovy.grails.cli.ScriptExitException Error |   at
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  Error |   at
  sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  Error |   at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  Error |   at
  java.lang.reflect.Constructor.newInstance(Constructor.java:408)   ...
  68 more
  ------System.err:-----------

A:

It looks like you are using Java 8.  Grails 2.3.8 does not support Java 8.  If you want to use Java 8 you need to upgrade to the Grails 2.4.  As of right now the latest in that release chain is 2.4.2.

