Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6975771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:24:41+00:00 2026-05-27T17:24:41+00:00

A simple Grails 1.3.7 applications with SQL server 2000. connection OK. create new table

  • 0

A simple Grails 1.3.7 applications with SQL server 2000. connection OK. create new table OK. however, when trying to access existing tables, see error below. Constraints: cannot change the existing data. Questions: what file is this error line [35] in? Is there any way to allow null object (e.g. NOT to get property ‘id’ when the object is null)?

Error 500:
Servlet: default
URI: /root0001/person/list
Exception Message: Cannot get property 'id' on null object
Caused by: Error evaluating expression [personInstance.id] on line [35]: Cannot get property 'id' on null object
Class: /person/list
At Line: [35]
Code Snippet:
Stack Trace

org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error evaluating expression [personInstance.id] on line [35]: Cannot get property 'id' on null object

    at person_list$_run_closure2_closure27.doCall(person_list:67)

    at person_list$_run_closure2.doCall(person_list:60)

    at person_list$_run_closure2.doCall(person_list)

    at person_list.run(person_list:76)

    at java.lang.Thread.run(Thread.java:722)

Caused by: java.lang.NullPointerException: Cannot get property 'id' on null object

    at person_list$_run_closure2_closure27_closure34.doCall(person_list:67)

    ... 5 more
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:24:42+00:00Added an answer on May 27, 2026 at 5:24 pm

    This is likely happening in your list.gsp, in the section that tries to render the personInstance Id. You can use the Groovy safe dereference operator to hack past this, but you may want to investigate why your database is returning a null object for
    the list view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m new to Grails and I’m trying to build a simple help desk application.
Simple question, how do you list the primary key of a table with T-SQL?
I'm new to Grails (but not to Groovy or web development). I'm trying to
How can I create a simple testing/experimenting file in grails? I tried creating a
I'm a beginner in Grails development. I want to make a new simple MySQL
Besides the sample applications featured in the books Beginning Groovy and Grails and The
I am very new to grails.I am doing one sample project for image uploading
I want to build very simple help desk application in purpose of learning grails.
The IntelliJ Groovy/Grails support in IntelliJ IDEA 8.1 is great. However, I've recently upgraded
I'm trying to run a very simple integration test and keep getting this error:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.