grails Questions

3

Solved

Hello I am using Grails 2.1 and I have a little problem I can't find a good solution to. I am querying the database for some objects and it returns and sort it as expected with one exception, the n...
Classicism asked 13/11, 2012 at 15:13

7

Solved

I have obtained the latest Grails 2.0 milestone, and I am seeing a deprecation warning for the ConfigurationHolder class: org.codehaus.groovy.grails.commons.ConfigurationHolder The deprecation m...
Cosmorama asked 20/8, 2011 at 17:55

3

I'm running Grails 2.5.0 on IntelliJ Idea Ultimate Edition 2020.2.2 . It compiles and builds the code just fine but it keeps throwing a "java.lang.OutOfMemoryError: GC overhead limit exceeded&...
Texas asked 21/9, 2020 at 16:36

5

Solved

I have a strange situation which appears to indicate a GORM cacheing problem //begin with all book.status's as UNREAD Book.list().each { book.status = Status.READ ; book.save() } println (Book.fi...
Duckling asked 9/6, 2011 at 6:40

3

Solved

I am working with Grails 2.1.1 and would like to add a handful of customized URLs that map to Controller Actions. I can do that, but the original mapping still works. For example, I created a m...
Handmaiden asked 27/9, 2012 at 2:14

6

From the Grails belongsTo documentation, what is the use of class Book { static belongsTo = Author } What is the impact of cascading operations on Book, when CRUD operations performed on Auth...
Bystander asked 6/2, 2014 at 3:7

4

Solved

From a given String: String someIp = // some String How can I check, if someIp is a valid Ip format?
Yonina asked 9/8, 2013 at 23:41

9

Solved

I am trying to crop/resize user profile image using jquery plugin namely crop.js which sends user image as base64 via ajax to my controller as $.ajax({ type: "post", dataType: "json", url: "${...
Fortdefrance asked 1/6, 2014 at 12:25

3

Solved

I am working with legacy database and have a many-to-many association with a join-table that I have resolved to a large extent as the mappings are working fine. But there is an additional column an...
Blondy asked 7/11, 2012 at 1:24

5

Solved

I'm trying to create a Union between two tables, using HQL (Hibernate Query Language). This SQL script works fine on my SQL server: SELECT COUNT(DISTINCT linkedin_id) as test, school_name FROM (SE...
Malachy asked 24/8, 2011 at 21:21

11

Solved

I want to log in the console or in a file, all the queries that Grails does, to check performance. I had configured this without success. Any idea would help.
Hough asked 2/4, 2010 at 18:51

3

Hi i have this following Domain in Grails class Customer { static mapping = { table 'customer' // version is set to false, because this isn't available by default for legacy databases version...
Sartre asked 16/12, 2010 at 5:31

3

Solved

I'm convinced that I'm just having a bad day and missing something obvious. I'm trying to create a new Grails project in IntelliJ IDEA 9.0 and I am unable to associate it with an SDK. I've tried cr...
Coenosarc asked 16/12, 2009 at 15:3

2

Solved

I am currently upgrading from Grails 3.3.10 to Grails 4.0.0. When attempting to run my project I get the following error: Execution failed for task ':bootRun'. 15:31:02.101 [ERROR] [org.gradle.i...
Sperrylite asked 19/8, 2019 at 19:55

5

Solved

When I run dbm-generate-changelog exception is thrown. I would like to debug this script but I can't figure how to do it. I tried to put breakpoint to the script file _DatabaseMigrationCommon.groov...
Amontillado asked 24/11, 2013 at 21:7

3

Solved

I realize this is more of a hibernate question than Grails. In a load balanced (2 nodes) environment I see that the ids of my objects are jumping around quite a bit. Even without restarting the app...
Pricket asked 30/11, 2011 at 22:37

3

I have a domain as follow: class Author { String id static hasMany = [accounts: Account] static belongsTo = Account static mapping = { accounts joinTable: [name: "SOMETABLE", key: 'SOMEFIELD'...
Transubstantiation asked 4/10, 2013 at 17:42

3

Solved

How can you unit test a class that has a superclass in Spock that invokes method calls form its superclass? Or how do you mock a superclass in Spock? Ex: class Bar { def method1(parm1){ //Me...
Pibgorn asked 30/6, 2014 at 1:45

13

Solved

I'm using grails 2.0.4. And I want to use port:8090 instead of 8080 for localhost. So need help to change the port to 8090 permanently.
Heartbeat asked 8/6, 2012 at 20:51

2

Solved

I'm making a web application with Grails. I've got a list with data that must be included on JavaScript to perform some dynamic load on <select> drop-list. Basically, I'm getting a two level ...
Arbuckle asked 14/1, 2010 at 9:33

5

Solved

I am using IntelliJ IDEA 15.0.2 as an IDE. I have created a Grails 3.0 application and changed it a bit to configure PostgreSQL. Here is my dataSource: dataSource: pooled: true jmxExport: true dr...
Theatheaceous asked 15/1, 2016 at 18:55

13

Solved

I downloaded this Java JDK and installed it. But when I go to the command prompt to check the version, it says it's not recognized. Is anyone else experiencing this issue with the latest Java? I...
Greyback asked 4/3, 2010 at 15:45

2

I have a big project written in Grails 2.3.8. Sometimes when I deploy it using my CI I got this message: Unable to complete the scan for annotations for web application [/ProjectName##1152] due to...
Chili asked 29/5, 2014 at 7:16

5

Solved

I need to get all the information about a particular Grails domain class, i.e. the persistent properties and the constraints related to them in a single collection. How do I do that?
Biotype asked 25/3, 2017 at 7:6

4

Solved

I'm creating a grails service that will interact with a 3rd party REST API via a Java library. The Java library requires credentials for the REST API by means of a url, username and password. I'd ...
Hypertonic asked 11/2, 2011 at 20:51

© 2022 - 2024 — McMap. All rights reserved.