Quantcast

Following error occured when running my project for Ajax select!!

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Following error occured when running my project for Ajax select!!

saravanataee

2012-07-05 18:05:06,799 [main] ERROR context.GrailsContextLoader  - Error executing bootstraps: No such property: flush for class: BootStrap
Possible solutions: class
groovy.lang.MissingPropertyException: No such property: flush for class: BootStrap
Possible solutions: class
at BootStrap$_closure1.doCall(BootStrap.groovy:7)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:251)
at grails.util.Environment.executeForEnvironment(Environment.java:244)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:220)
at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
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:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Application context shutting down...
Application context shutdown.

This is my bootstrap.groovy:
import com.dynamic.*;


class BootStrap {

    def init = { servletContext -> 
def mexico = new Country(name:"Mexico").save(flush.true)
def statesTamilnadu = new Country(name:"State Tamilnadu").save(flush.true)

new State(
             name:"tamilnadu",
Country: India).save(flush:true)

new State(
             name:"Kerala",
Country: India).save(flush:true)
new State(
             name:"Andrapradesh",
Country: India).save(flush:true)
new State(
             name:"Torento",
Country: Canada).save(flush:true)


    }
    def destroy = {
    }
}

What might be a cause!!

--
Cheers,

Saravana


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Following error occured when running my project for Ajax select!!

bond_
Check your lines:

def mexico = new Country(name:"Mexico").save(flush.true)
def statesTamilnadu = new Country(name:"State Tamilnadu").save(flush.true)

Do you find something weird in the above lines when compared to:
new State(name:"tamilnadu",Country: India).save(flush:true)

On Thu, Jul 5, 2012 at 6:11 PM, Saravanan S <[hidden email]> wrote:

2012-07-05 18:05:06,799 [main] ERROR context.GrailsContextLoader  - Error executing bootstraps: No such property: flush for class: BootStrap
Possible solutions: class
groovy.lang.MissingPropertyException: No such property: flush for class: BootStrap
Possible solutions: class
at BootStrap$_closure1.doCall(BootStrap.groovy:7)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:251)
at grails.util.Environment.executeForEnvironment(Environment.java:244)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:220)
at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
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:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Application context shutting down...
Application context shutdown.

This is my bootstrap.groovy:
import com.dynamic.*;


class BootStrap {

    def init = { servletContext -> 
def mexico = new Country(name:"Mexico").save(flush.true)
def statesTamilnadu = new Country(name:"State Tamilnadu").save(flush.true)

new State(
             name:"tamilnadu",
Country: India).save(flush:true)

new State(
             name:"Kerala",
Country: India).save(flush:true)
new State(
             name:"Andrapradesh",
Country: India).save(flush:true)
new State(
             name:"Torento",
Country: Canada).save(flush:true)


    }
    def destroy = {
    }
}

What might be a cause!!

--
Cheers,

Saravana





--
Thanks and regards,
Ravi Teja

Lok
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Following error occured when running my project for Ajax select!!

Lok
In reply to this post by saravanataee
Should be flush:true

Lok

def mexico = new Country(name:"Mexico").save(flush.true)
def statesTamilnadu = new Country(name:"State Tamilnadu").save(flush.true)

On Thu, Jul 5, 2012 at 6:13 PM, saravanataee [via Grails] <[hidden email]> wrote:

2012-07-05 18:05:06,799 [main] ERROR context.GrailsContextLoader  - Error executing bootstraps: No such property: flush for class: BootStrap
Possible solutions: class
groovy.lang.MissingPropertyException: No such property: flush for class: BootStrap
Possible solutions: class
at BootStrap$_closure1.doCall(BootStrap.groovy:7)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:251)
at grails.util.Environment.executeForEnvironment(Environment.java:244)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:220)
at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
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:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Application context shutting down...
Application context shutdown.

This is my bootstrap.groovy:
import com.dynamic.*;


class BootStrap {

    def init = { servletContext -> 
def mexico = new Country(name:"Mexico").save(flush.true)
def statesTamilnadu = new Country(name:"State Tamilnadu").save(flush.true)

new State(
             name:"tamilnadu",
Country: India).save(flush:true)

new State(
             name:"Kerala",
Country: India).save(flush:true)
new State(
             name:"Andrapradesh",
Country: India).save(flush:true)
new State(
             name:"Torento",
Country: Canada).save(flush:true)


    }
    def destroy = {
    }
}

What might be a cause!!

--
Cheers,

Saravana





If you reply to this email, your message will be added to the discussion below:
http://grails.1312388.n4.nabble.com/Following-error-occured-when-running-my-project-for-Ajax-select-tp4631122.html
To unsubscribe from Grails, click here.
NAML

Cheers, Lok
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Following error occured when running my project for Ajax select!!

bond_
Dude that question was for the initiator 

On Thu, Jul 5, 2012 at 6:46 PM, Lok@sigma <[hidden email]> wrote:
Should be flush:true

Lok

def mexico = new Country(name:"Mexico").save(flush.true)
def statesTamilnadu = new Country(name:"State Tamilnadu").save(flush.true)

On Thu, Jul 5, 2012 at 6:13 PM, saravanataee [via Grails] <[hidden email]> wrote:

2012-07-05 18:05:06,799 [main] ERROR context.GrailsContextLoader  - Error executing bootstraps: No such property: flush for class: BootStrap
Possible solutions: class
groovy.lang.MissingPropertyException: No such property: flush for class: BootStrap
Possible solutions: class
at BootStrap$_closure1.doCall(BootStrap.groovy:7)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:251)
at grails.util.Environment.executeForEnvironment(Environment.java:244)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:220)
at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
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:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Application context shutting down...
Application context shutdown.

This is my bootstrap.groovy:
import com.dynamic.*;


class BootStrap {

    def init = { servletContext -> 
def mexico = new Country(name:"Mexico").save(flush.true)
def statesTamilnadu = new Country(name:"State Tamilnadu").save(flush.true)

new State(
             name:"tamilnadu",
Country: India).save(flush:true)

new State(
             name:"Kerala",
Country: India).save(flush:true)
new State(
             name:"Andrapradesh",
Country: India).save(flush:true)
new State(
             name:"Torento",
Country: Canada).save(flush:true)


    }
    def destroy = {
    }
}

What might be a cause!!

--
Cheers,

Saravana





If you reply to this email, your message will be added to the discussion below:
http://grails.1312388.n4.nabble.com/Following-error-occured-when-running-my-project-for-Ajax-select-tp4631122.html
To unsubscribe from Grails, click here.
NAML

Cheers, Lok


View this message in context: Re: Following error occured when running my project for Ajax select!!
Sent from the Grails - user mailing list archive at Nabble.com.



--
Thanks and regards,
Ravi Teja

Loading...