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 8537067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:48:35+00:00 2026-06-11T10:48:35+00:00

I have a rather mundane Oracle table with seven rows. Each row has different

  • 0

I have a rather mundane Oracle table with seven rows. Each row has different values, there is a unique key that keeps most of the columns from having similar data.

In a Grails controller I am running the following code:

else if (request.method == "GET" && params.term) {
  def a = WaiverExemption.findAll("from WaiverExemption as e where e.exemptionTermCode.id = ?", [parseLong(params.term)]) as JSON
  a.render(response)
  return false
}

The browser is making the correct request to this. It passes in a valid term, and in the IntelliJ debugger I can see that the term is correct. Until sometime last week, this particular snippet of code was working correctly… my troubles were related to getting Backbone and jQuery to make use of the json data returned.

Now, instead of returning the 7 rows of data that I expect, it returns the same row 7 times. This row happens to be the first row returned in the Oracle client (though since I wasn’t using any order by, technically speaking, it’s not the first row at all… no guarantee of order and all that).

So far I’ve done multiple “grails clean” on it. I have of course stopped and restarted the application multiple times, and I’ve tried this both in debug and regular execution.

The only change to this code was the addition of another column in the domain class. But the timing doesn’t correspond well to when this started screwing up. The new column was actually Oracle’s ROWID, which I didn’t expect to work but did make another problem easier to solve. Removing that doesn’t revert this to working, however.

Can anyone explain this behavior?

[edit] Debug results after fixing the config.groovy as requested:

2012-09-17 10:26:02,675 [http-bio-8080-exec-7] DEBUG hibernate.SQL  - select waiverexem0_.EXEMPTION_TERM_CODE as EXEMPTION1_26_, waiverexem0_.exemption_activity_date as exemption2_26_, waiverexem0_.exemption_classification as exemption3_26_, waiverexem0_.exemption_code as exemption4_26_, waiverexem0_.exemption_pay_type as exemption5_26_, waiverexem0_.exemption_priority as exemption6_26_, waiverexem0_.ROWID as ROWID7_26_, waiverexem0_.exemption_term_code as exemption1_26_, waiverexem0_.exemption_user_id as exemption8_26_ from TT_ST_GRADUATE_EXEMPTION waiverexem0_ where waiverexem0_.exemption_term_code=?
  • 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-06-11T10:48:37+00:00Added an answer on June 11, 2026 at 10:48 am

    I haven’t seen this specific problem before, but were I to encounter it I would debug it like so:

    • Turn on Hibernate SQL debugging so I can see the SQL that Grails is throwing at Oracle. In the Config.groovy log4j configuration, add ‘org.hibernate.SQL’ to the debug section. Then copy-paste this SQL from the IntelliJ console into a Oracle connected SQL client and see what results it returns.
    • Before running the query in the controller do a println params.term
    • println the results of findAll before rendering the response.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rather large table with 150,000 + records. It has a lot
I have a rather simple ListView row: <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=wrap_content
I have a rather annoying problem. I have a table view with blog entries
I have two branches off of master, each one for a different feature, and
I have a rather unique problem that I'm having trouble solving. I have a
I have a rather big number of small bitmaps (100+, size about 40x40) each
I have a rather lengthy legacy code function. Is there any way to check
I have rather large project that uses ICU regex classes. Basically it might run
Have a rather simple question. Does anyone knows if i can use jparallax both
I have some rather odd behavior in my D program that I've narrowed down

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.