Quantcast

Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

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

Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

proggrammer
I am new to grail and followinf the book Getting Started with Grails Second Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48, just before bootstraping Data
Initially I was not getting the runner drop down on registration add data page of RegstrationController, but some changes I have done and giving me error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and controller, as I have not touched any other than files under these folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error processing GroovyPageView: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
        ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
        ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver  - Exception occurred when processing request: [GET] /RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
        ... 1 more
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
        ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
        ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error processing GroovyPageView: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
        ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
        ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver  - Exception occurred when processing request: [GET] /RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:form>: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid at /home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
        ... 1 more
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error evaluating expression [registrationInstance?.name] on line [36]: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
        ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for class: racetrack.Registration
Possible solutions: race, paid
        at home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
        ... 6 more
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

bond_
Please be more specific to the problem so that someone can assist you.

Like:
  1. What is version of grails used?
  2. Which plugins did u install?
  3. What commands have you used to generate code?
  4. What extra changes have to made to the code other than what's generated?

By answering the above questions, possibly someone can go ahead and answer.


On Wed, Jun 27, 2012 at 12:19 PM, proggrammer <[hidden email]> wrote:
I am new to grail and followinf the book Getting Started with Grails Second
Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48,
just before bootstraping Data
Initially I was not getting the runner drop down on registration add data
page of RegstrationController, but some changes I have done and giving me
error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and
controller, as I have not touched any other than files under these
folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Error-500-following-the-book-Getting-Started-with-Grails-Second-Edition-by-Davis-and-Rudolf-tp4630688.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Thanks and regards,
Ravi Teja

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

Re: Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

longwa
Assuming the code you are running is here:


The Registration object doesn't have a "name" property:

class Registration {   
  static constraints = { 
    race() 
    runner() 
    paid() 
    dateCreated() 
  } 
   
  static belongsTo = [race:Race, runner:Runner] 
 
  Boolean paid 
  Date dateCreated 

Perhaps you meant to say "registrationInstance?.race?.name" instead?

On Wed, Jun 27, 2012 at 4:48 AM, Raviteja Lokineni <[hidden email]> wrote:
Please be more specific to the problem so that someone can assist you.

Like:
  1. What is version of grails used?
  2. Which plugins did u install?
  3. What commands have you used to generate code?
  4. What extra changes have to made to the code other than what's generated?

By answering the above questions, possibly someone can go ahead and answer.


On Wed, Jun 27, 2012 at 12:19 PM, proggrammer <[hidden email]> wrote:
I am new to grail and followinf the book Getting Started with Grails Second
Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48,
just before bootstraping Data
Initially I was not getting the runner drop down on registration add data
page of RegstrationController, but some changes I have done and giving me
error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and
controller, as I have not touched any other than files under these
folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Error-500-following-the-book-Getting-Started-with-Grails-Second-Edition-by-Davis-and-Rudolf-tp4630688.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Thanks and regards,
Ravi Teja


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

Re: Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

bond_
@[hidden email]

I updated the example to the latest Grails release. This should get you going past the compilation errors.


On Thu, Jun 28, 2012 at 9:00 AM, Aaron Long <[hidden email]> wrote:
Assuming the code you are running is here:


The Registration object doesn't have a "name" property:

class Registration {   
  static constraints = { 
    race() 
    runner() 
    paid() 
    dateCreated() 
  } 
   
  static belongsTo = [race:Race, runner:Runner] 
 
  Boolean paid 
  Date dateCreated 

Perhaps you meant to say "registrationInstance?.race?.name" instead?

On Wed, Jun 27, 2012 at 4:48 AM, Raviteja Lokineni <[hidden email]> wrote:
Please be more specific to the problem so that someone can assist you.

Like:
  1. What is version of grails used?
  2. Which plugins did u install?
  3. What commands have you used to generate code?
  4. What extra changes have to made to the code other than what's generated?

By answering the above questions, possibly someone can go ahead and answer.


On Wed, Jun 27, 2012 at 12:19 PM, proggrammer <[hidden email]> wrote:
I am new to grail and followinf the book Getting Started with Grails Second
Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48,
just before bootstraping Data
Initially I was not getting the runner drop down on registration add data
page of RegstrationController, but some changes I have done and giving me
error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and
controller, as I have not touched any other than files under these
folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Error-500-following-the-book-Getting-Started-with-Grails-Second-Edition-by-Davis-and-Rudolf-tp4630688.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Thanks and regards,
Ravi Teja





--
Thanks and regards,
Ravi Teja

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

Re: Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

bond_
Looping him in too. Sorry about the double post.

I updated the example to the latest Grails release. This should get you going past the compilation errors.

My fork: https://github.com/bond-/gswg-v2
Pull request: https://github.com/scottdavis99/gswg-v2/pull/6

On Thu, Jun 28, 2012 at 6:19 PM, Raviteja Lokineni <[hidden email]> wrote:
@[hidden email]

I updated the example to the latest Grails release. This should get you going past the compilation errors.


On Thu, Jun 28, 2012 at 9:00 AM, Aaron Long <[hidden email]> wrote:
Assuming the code you are running is here:


The Registration object doesn't have a "name" property:

class Registration {   
  static constraints = { 
    race() 
    runner() 
    paid() 
    dateCreated() 
  } 
   
  static belongsTo = [race:Race, runner:Runner] 
 
  Boolean paid 
  Date dateCreated 

Perhaps you meant to say "registrationInstance?.race?.name" instead?

On Wed, Jun 27, 2012 at 4:48 AM, Raviteja Lokineni <[hidden email]> wrote:
Please be more specific to the problem so that someone can assist you.

Like:
  1. What is version of grails used?
  2. Which plugins did u install?
  3. What commands have you used to generate code?
  4. What extra changes have to made to the code other than what's generated?

By answering the above questions, possibly someone can go ahead and answer.


On Wed, Jun 27, 2012 at 12:19 PM, proggrammer <[hidden email]> wrote:
I am new to grail and followinf the book Getting Started with Grails Second
Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48,
just before bootstraping Data
Initially I was not getting the runner drop down on registration add data
page of RegstrationController, but some changes I have done and giving me
error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and
controller, as I have not touched any other than files under these
folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Error-500-following-the-book-Getting-Started-with-Grails-Second-Edition-by-Davis-and-Rudolf-tp4630688.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Thanks and regards,
Ravi Teja





--
Thanks and regards,
Ravi Teja




--
Thanks and regards,
Ravi Teja

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

Re: Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

Scott Davis-7
Hi Ravi,

Sorry that I missed your initial post. There have been a few breaking changes to our example as Grails matures and our book remains fixed in time. It sounds like your mailing list-mates got you moving forward again.

It's funny -- I still get the occasional outraged email from readers of Practically Groovy and Mastering Grails, upset about articles written in the 2004/2005 timeframe. (I'm not suggesting that your email was outrageous or out of line in any way -- just commenting on the nature of writing about fast moving, ever-evolving technology like Groovy and Grails.)

There are lots of things that conspire against books keeping pace with the technology they describe -- lack of author time is the biggest culprit, but also publishers, editors, copywriters, book-sellers (Amazon, et al). Even the tool we used to write the book -- Microsoft Word (ugh!) -- is an impediment to rapidly incorporating changes. There are lots of hidden moving parts to publishing a book that contribute to the velocity mismatch -- even a free one, even a PDF-only one.

Some authors (and publishers) try to be vague about the version number of the technology they are writing about in an effort to extend the shelf life of the prose. As you can tell in Chapter 2, I mention explicitly that the book was written using Grails 1.2. With Grails 2.1 right around the corner, I'm pleased with how well the book still holds up, but it definitely is in need of some renovation. 

Jason and I are in the early stages of rolling out the 3rd edition of the book in a way that will allow us to be more agile as the technology inevitably changes.  Keep your eyes open for an announcement coming Real Soon Now. 

Thanks for reading the book, and I hope that you enjoy your time with Grails as much as Jason and I did when we wrote the book. 

Cheers,
s
Scott Davis
[hidden email]

ThirstyHead: training done right
http://thirstyhead.com

On Jun 28, 2012, at 6:51 AM, Raviteja Lokineni wrote:

Looping him in too. Sorry about the double post.

I updated the example to the latest Grails release. This should get you going past the compilation errors.

My fork: https://github.com/bond-/gswg-v2
Pull request: https://github.com/scottdavis99/gswg-v2/pull/6

On Thu, Jun 28, 2012 at 6:19 PM, Raviteja Lokineni <[hidden email]> wrote:
@[hidden email]

I updated the example to the latest Grails release. This should get you going past the compilation errors.


On Thu, Jun 28, 2012 at 9:00 AM, Aaron Long <[hidden email]> wrote:
Assuming the code you are running is here:


The Registration object doesn't have a "name" property:

class Registration {   
  static constraints = { 
    race() 
    runner() 
    paid() 
    dateCreated() 
  } 
   
  static belongsTo = [race:Race, runner:Runner] 
 
  Boolean paid 
  Date dateCreated 

Perhaps you meant to say "registrationInstance?.race?.name" instead?

On Wed, Jun 27, 2012 at 4:48 AM, Raviteja Lokineni <[hidden email]> wrote:
Please be more specific to the problem so that someone can assist you.

Like:
  1. What is version of grails used?
  2. Which plugins did u install?
  3. What commands have you used to generate code?
  4. What extra changes have to made to the code other than what's generated?

By answering the above questions, possibly someone can go ahead and answer.


On Wed, Jun 27, 2012 at 12:19 PM, proggrammer <[hidden email]> wrote:
I am new to grail and followinf the book Getting Started with Grails Second
Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48,
just before bootstraping Data
Initially I was not getting the runner drop down on registration add data
page of RegstrationController, but some changes I have done and giving me
error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and
controller, as I have not touched any other than files under these
folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Error-500-following-the-book-Getting-Started-with-Grails-Second-Edition-by-Davis-and-Rudolf-tp4630688.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Thanks and regards,
Ravi Teja





--
Thanks and regards,
Ravi Teja




--
Thanks and regards,
Ravi Teja


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

Re: Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

bond_

Hi Scott,

No offense with the old example, I understand. BTW I wasn't the initiator of the post :p and pull request was submitted by me.

Thanks and regards,
Ravi Teja

On Jun 28, 2012 10:32 PM, "Scott Davis" <[hidden email]> wrote:
Hi Ravi,

Sorry that I missed your initial post. There have been a few breaking changes to our example as Grails matures and our book remains fixed in time. It sounds like your mailing list-mates got you moving forward again.

It's funny -- I still get the occasional outraged email from readers of Practically Groovy and Mastering Grails, upset about articles written in the 2004/2005 timeframe. (I'm not suggesting that your email was outrageous or out of line in any way -- just commenting on the nature of writing about fast moving, ever-evolving technology like Groovy and Grails.)

There are lots of things that conspire against books keeping pace with the technology they describe -- lack of author time is the biggest culprit, but also publishers, editors, copywriters, book-sellers (Amazon, et al). Even the tool we used to write the book -- Microsoft Word (ugh!) -- is an impediment to rapidly incorporating changes. There are lots of hidden moving parts to publishing a book that contribute to the velocity mismatch -- even a free one, even a PDF-only one.

Some authors (and publishers) try to be vague about the version number of the technology they are writing about in an effort to extend the shelf life of the prose. As you can tell in Chapter 2, I mention explicitly that the book was written using Grails 1.2. With Grails 2.1 right around the corner, I'm pleased with how well the book still holds up, but it definitely is in need of some renovation. 

Jason and I are in the early stages of rolling out the 3rd edition of the book in a way that will allow us to be more agile as the technology inevitably changes.  Keep your eyes open for an announcement coming Real Soon Now. 

Thanks for reading the book, and I hope that you enjoy your time with Grails as much as Jason and I did when we wrote the book. 

Cheers,
s
Scott Davis
[hidden email]

ThirstyHead: training done right
http://thirstyhead.com

On Jun 28, 2012, at 6:51 AM, Raviteja Lokineni wrote:

Looping him in too. Sorry about the double post.

I updated the example to the latest Grails release. This should get you going past the compilation errors.

My fork: https://github.com/bond-/gswg-v2
Pull request: https://github.com/scottdavis99/gswg-v2/pull/6

On Thu, Jun 28, 2012 at 6:19 PM, Raviteja Lokineni <[hidden email]> wrote:
@[hidden email]

I updated the example to the latest Grails release. This should get you going past the compilation errors.


On Thu, Jun 28, 2012 at 9:00 AM, Aaron Long <[hidden email]> wrote:
Assuming the code you are running is here:


The Registration object doesn't have a "name" property:

class Registration {   
  static constraints = { 
    race() 
    runner() 
    paid() 
    dateCreated() 
  } 
   
  static belongsTo = [race:Race, runner:Runner] 
 
  Boolean paid 
  Date dateCreated 

Perhaps you meant to say "registrationInstance?.race?.name" instead?

On Wed, Jun 27, 2012 at 4:48 AM, Raviteja Lokineni <[hidden email]> wrote:
Please be more specific to the problem so that someone can assist you.

Like:
  1. What is version of grails used?
  2. Which plugins did u install?
  3. What commands have you used to generate code?
  4. What extra changes have to made to the code other than what's generated?

By answering the above questions, possibly someone can go ahead and answer.


On Wed, Jun 27, 2012 at 12:19 PM, proggrammer <[hidden email]> wrote:
I am new to grail and followinf the book Getting Started with Grails Second
Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48,
just before bootstraping Data
Initially I was not getting the runner drop down on registration add data
page of RegstrationController, but some changes I have done and giving me
error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and
controller, as I have not touched any other than files under these
folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Error-500-following-the-book-Getting-Started-with-Grails-Second-Edition-by-Davis-and-Rudolf-tp4630688.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Thanks and regards,
Ravi Teja





--
Thanks and regards,
Ravi Teja




--
Thanks and regards,
Ravi Teja


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

Re: Error 500: following the book Getting Started with Grails Second Edition by Davis and Rudolf

Scott Davis-7
And the mistakes just keep on coming! Someone stop me before I make Yet Another one... (wink)

Cheers,
s

On Jun 28, 2012, at 1:47 PM, Raviteja Lokineni wrote:

Hi Scott,

No offense with the old example, I understand. BTW I wasn't the initiator of the post :p and pull request was submitted by me.

Thanks and regards,
Ravi Teja

On Jun 28, 2012 10:32 PM, "Scott Davis" <[hidden email]> wrote:
Hi Ravi,

Sorry that I missed your initial post. There have been a few breaking changes to our example as Grails matures and our book remains fixed in time. It sounds like your mailing list-mates got you moving forward again.

It's funny -- I still get the occasional outraged email from readers of Practically Groovy and Mastering Grails, upset about articles written in the 2004/2005 timeframe. (I'm not suggesting that your email was outrageous or out of line in any way -- just commenting on the nature of writing about fast moving, ever-evolving technology like Groovy and Grails.)

There are lots of things that conspire against books keeping pace with the technology they describe -- lack of author time is the biggest culprit, but also publishers, editors, copywriters, book-sellers (Amazon, et al). Even the tool we used to write the book -- Microsoft Word (ugh!) -- is an impediment to rapidly incorporating changes. There are lots of hidden moving parts to publishing a book that contribute to the velocity mismatch -- even a free one, even a PDF-only one.

Some authors (and publishers) try to be vague about the version number of the technology they are writing about in an effort to extend the shelf life of the prose. As you can tell in Chapter 2, I mention explicitly that the book was written using Grails 1.2. With Grails 2.1 right around the corner, I'm pleased with how well the book still holds up, but it definitely is in need of some renovation. 

Jason and I are in the early stages of rolling out the 3rd edition of the book in a way that will allow us to be more agile as the technology inevitably changes.  Keep your eyes open for an announcement coming Real Soon Now. 

Thanks for reading the book, and I hope that you enjoy your time with Grails as much as Jason and I did when we wrote the book. 

Cheers,
s
Scott Davis
[hidden email]

ThirstyHead: training done right
http://thirstyhead.com

On Jun 28, 2012, at 6:51 AM, Raviteja Lokineni wrote:

Looping him in too. Sorry about the double post.

I updated the example to the latest Grails release. This should get you going past the compilation errors.

My fork: https://github.com/bond-/gswg-v2
Pull request: https://github.com/scottdavis99/gswg-v2/pull/6

On Thu, Jun 28, 2012 at 6:19 PM, Raviteja Lokineni <[hidden email]> wrote:
@[hidden email]

I updated the example to the latest Grails release. This should get you going past the compilation errors.


On Thu, Jun 28, 2012 at 9:00 AM, Aaron Long <[hidden email]> wrote:
Assuming the code you are running is here:


The Registration object doesn't have a "name" property:

class Registration {   
  static constraints = { 
    race() 
    runner() 
    paid() 
    dateCreated() 
  } 
   
  static belongsTo = [race:Race, runner:Runner] 
 
  Boolean paid 
  Date dateCreated 

Perhaps you meant to say "registrationInstance?.race?.name" instead?

On Wed, Jun 27, 2012 at 4:48 AM, Raviteja Lokineni <[hidden email]> wrote:
Please be more specific to the problem so that someone can assist you.

Like:
  1. What is version of grails used?
  2. Which plugins did u install?
  3. What commands have you used to generate code?
  4. What extra changes have to made to the code other than what's generated?

By answering the above questions, possibly someone can go ahead and answer.


On Wed, Jun 27, 2012 at 12:19 PM, proggrammer <[hidden email]> wrote:
I am new to grail and followinf the book Getting Started with Grails Second
Edition by Davis and Rudolf to have a hands-on experience, I am at page: 48,
just before bootstraping Data
Initially I was not getting the runner drop down on registration add data
page of RegstrationController, but some changes I have done and giving me
error.
When I click on New Registration to create data, I get the following Error:
(I dont want to touch any file other than which are in folders model and
controller, as I have not touched any other than files under these
folders-please give me some sight in the problem or problem's solution.)
2012-06-27 11:54:47,046 [http-8080-1] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/programmer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:47,189 [http-8080-1] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,150 [http-8080-2] ERROR view.GroovyPageView  - Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more
2012-06-27 11:54:54,189 [http-8080-2] ERROR errors.GrailsExceptionResolver
- Exception occurred when processing request: [GET]
/RaceTrack/registration/create
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
processing GroovyPageView: Error executing tag <g:form>: Error evaluating
expression [registrationInstance?.name] on line [36]: No such property: name
for class: racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at java.lang.Thread.run(Thread.java:619)
Caused by:
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error
executing tag <g:form>: Error evaluating expression
[registrationInstance?.name] on line [36]: No such property: name for class:
racetrack.Registration
Possible solutions: race, paid at
/home/proggrammer/Desktop/IntelliJ/Grail/RaceTrack/grails-app/views/registration/create.gsp:118
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp:118)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2.doCall(create.gsp)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp.run(create.gsp:120)
       ... 1 more
Caused by:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error
evaluating expression [registrationInstance?.name] on line [36]: No such
property: name for class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp:36)
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24.doCall(create.gsp)
       ... 4 more
Caused by: groovy.lang.MissingPropertyException: No such property: name for
class: racetrack.Registration
Possible solutions: race, paid
       at
home_proggrammer_Desktop_IntelliJ_Grail_RaceTrack_grails_app_views_registration_create_gsp$_run_closure2_closure24_closure34.doCall(create.gsp:36)
       ... 6 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Error-500-following-the-book-Getting-Started-with-Grails-Second-Edition-by-Davis-and-Rudolf-tp4630688.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Thanks and regards,
Ravi Teja





--
Thanks and regards,
Ravi Teja




--
Thanks and regards,
Ravi Teja



Loading...