Getting NPE with gradle grails-run-app command on grails 2.0.0

Following is my build file

buildscript {

repositories {

mavenCentral()

maven { url ‘http://repo.grails.org/grails/core’ }

mavenLocal()

}

dependencies {

classpath(

‘org.grails:grails-gradle-plugin:1.1.1-SNAPSHOT’,

‘org.grails:grails-bootstrap:2.0.0’

)

} }

grailsVersion = ‘2.0.0’ apply plugin: ‘java’ apply plugin: ‘maven’ apply plugin: ‘grails’ apply plugin: ‘war’

group = ‘com.deem.travel.gravel’ version = ‘1.0-SNAPSHOT’ sourceCompatibility = 1.6 targetCompatibility = 1.6

configurations {

all*.exclude group:‘xml-apis’, module:‘xml-apis’ }

repositories {

mavenCentral()

maven { url ‘http://repo.grails.org/grails/core’ }

maven { url ‘http://repo.mygazoo.com/nexus/content/groups/public’ }

maven { url ‘http://repo.mygazoo.com/nexus/content/repositories/releases’ }

maven { url ‘http://repo.mygazoo.com/nexus/content/repositories/snapshots’ } }

dependencies {

compile(

“org.grails:grails-crud:$grailsVersion”,

“org.grails:grails-plugin-datasource:$grailsVersion”,

“org.grails:grails-plugin-tomcat:$grailsVersion”,

“org.grails:grails-test:$grailsVersion”

) }

task wrapper(type: Wrapper) {

gradleVersion = ‘1.0-milestone-7’

jarFile=‘wrapper/wrapper.jar’ }

Gradle grails-war works fine but when I try to run with gradle command “gradle grails-run-app” I get the below mention error. Grails run-app command without gradle works for me.

Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:grails-run-app’.

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48) Caused by: java.lang.NullPointerException: Cannot invoke method createInline() on null object

at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)

at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)

at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)

at gant.Gant.withBuildListeners(Gant.groovy:427)

at gant.Gant.this$2$withBuildListeners(Gant.groovy)

at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)

at gant.Gant.dispatch(Gant.groovy:415)

at gant.Gant.this$2$dispatch(Gant.groovy)

at gant.Gant.invokeMethod(Gant.groovy)

at gant.Gant.executeTargets(Gant.groovy:591)

at gant.Gant.executeTargets(Gant.groovy:590)

… 64 more Caused by: java.lang.NullPointerException: Cannot invoke method createInline() on null object

at _GrailsRun.runInline(_GrailsRun.groovy:119)

at _GrailsRun.this$4$runInline(_GrailsRun.groovy)

at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)

at _GrailsRun$_run_closure1.doCall(_GrailsRun.groovy:66)

at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)

at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)

at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)

at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)

at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)

at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)

at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)

at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)

at RunApp$_run_closure1.doCall(RunApp.groovy:33)

Help is appreciated.

anyone has idea why I am getting this error ?

Caused by: java.lang.NullPointerException: Cannot invoke method createInline() on null object

at _GrailsRun.runInline(_GrailsRun.groovy:119)

What does that line look like? That is, what is the name of the variable that ‘createInline()’ is being called on?

This line is not coming from my code. I do not have any controller or services. Just the plain simple grails app with index and few js/ css code.