grails Questions

7

Solved

I would like to do cross origin communication using Grails in server side. The only documentation that I found is this one https://grails.org/plugin/cors but this is for an old version of Grails....
Leavitt asked 11/4, 2015 at 23:18

3

Solved

I am update grails from 2.3.7 to 2.3.9 and it has error Error executing script RunApp: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling. Here is run-app --stacktrace --verbose : ...
Gregarine asked 3/6, 2014 at 4:37

3

Solved

When I try to run my grails app I got the following error: Error 2012-11-30 15:35:57,948 [localhost-startStop-1] ERROR context.ContextLoader - Context initialization failed Message: Error creating...
Fishtail asked 30/11, 2012 at 13:40

1

Solved

In a previous version of grails I was able to use the groovy enhanced version of java.util.Date found here here. After upgrading to grails 4, all those methods throw no signature of method on java...
Noll asked 18/8, 2019 at 20:52

2

Solved

I am in the process of upgrading to grails 2.1.x, and need to redo some of my old-style tests. I just added a new test to my spock Spec, and for this test I need to mock an additional Domain class...
Broadcaster asked 8/4, 2013 at 8:5

3

Solved

I have a date (as a string) being submitted. I'd like to map this to a command object. I have looked around quite a bit and found no great resource on how to do this mapping within a command object...
Totality asked 21/6, 2013 at 18:23

1

Solved

I am building a brand new application with Grails 4 and I am trying to look at my database as I make changes to the application, but I am not able to access the h2 database with the usual URL http:...
Astraphobia asked 9/8, 2019 at 20:20

4

Solved

I have updated my IntelliJ IDEA Ultimate to the 2016.2 version. I had a Grails 3 project and now when I open the IDE I get the following error when trying to run my project: Error running Grails:...
Joung asked 13/7, 2016 at 10:52

4

Solved

I've got an application that was using Grails 1.3.7 which I've just migrated to Grails 2.0. The application makes use of the automatic dateCreated and lastUpdated fields to manage the timestamps as...
Lisbethlisbon asked 29/1, 2012 at 9:52

4

I’m new to Grails, and I have a question that should be easy for most of you. I have a page displaying an object list. I want to display a message if there’s a DataIntegrityViolation when an objec...
Kittie asked 11/1, 2013 at 11:59

2

so this one's a doozy and I'd love some help. Here's the error that I am getting getS3Client(): Exception: java.lang.NoSuchMethodError: org.apache.http.impl.conn.CPool.setValidateAfterInactivity(...
Blum asked 28/8, 2018 at 20:4

4

I want to make my Grails application support only one language, that I can define somewhere, completely ignoring the client's headers or the "lang" parameter. Is there any way I can do so? Thanks. ...
Che asked 10/1, 2012 at 18:7

3

Solved

I tried to change the standard 'id' in grails: calls Book { String id String title static mapping { id generator:'assigned' } } unfortunately, I soon noticed that this breaks my bootstrap....
Deviation asked 27/10, 2011 at 17:5

5

I am trying to configure Grails in Netbeans. Grails version:3.2 Netbeans: 8.2 JDK: 1.8 OS: Windows 10 I have install and configured environment path and other stuffs. I can create and run proj...
Porism asked 6/1, 2018 at 11:46

2

Solved

I am having a problem with a transitive dependency of my grails-flyway plugin. org.grails.plugins:grails-flyway:0.2.1 declares a dependency to org.flywaydb:flyway-core:4.0.1. When I include the plu...
Heteroecious asked 11/5, 2016 at 5:3

3

do you know how to store the result from sql.eachRow() of groovy sql to a list? for example def personList = [] ? example: sql.eachRow('select lastname from users where id='active') What I...
Wolford asked 13/8, 2012 at 4:20

6

I need read configuration from a external file properties in grails 3. In grails 2.x I link the file with: grails.config.locations = ["classpath:config.properties"] In the config.groovy, but th...
Henninger asked 29/3, 2015 at 23:1

6

I am trying to update the file upload maxFileSize limit in Grails 3 and tried the configuration in src/main/resources/application.properties, application.groovy and application.yml, but it's still ...
Kidder asked 24/4, 2015 at 11:8

3

Solved

I'd like to know how to add a custom error to the hasErrors method so that the gsp picks up the error. My code thus far. def recoverySetup = new RecoverySetup(params) def onesolOrgkey = OnesolOrg...
Facia asked 30/7, 2015 at 19:28

2

Solved

I cannot render the errors from my command object. It does the job well but my .gsp view does not render the errors I raise. Here is my controller action: def handleModifyProfile2 = { CreditProv...

4

Solved

I have a quartz job in grails, that needs to be executed in every 5s, but I need this sequentially. In some situations the execution of the job exceeds this 5s, in this case I dont't want to be exe...
Araujo asked 23/6, 2011 at 12:14

4

Solved

I have an HQL statement like so: Select cast(ed.employee.employeeID as int) AS emp_id FROM Education AS ed WHERE ed.type.name IN (:typeNames) Sometimes however, typeNames is empty. This causes t...
Lynsey asked 9/12, 2011 at 19:4

4

Solved

I am trying to collect a JSON from a txt file. But my below code seems to keep giving me "nullPointerException". File f = new File(tempDir+File.separator+'jsonObject.txt') if (f){ log.error " fi...
Langobardic asked 22/10, 2013 at 16:4

7

What is the configuration setting for modifying the default homepage in a Grails application to no longer be appName/index.gsp? Of course you can set that page to be a redirect but there must be a ...
Reprise asked 26/8, 2008 at 12:10

6

Solved

I have ip addresses and a mask such as 10.1.1.1/32. I would like to check if 10.1.1.1 is inside that range. Is there a library or utility that would do this or do I need to write something myself? ...
Avigdor asked 17/11, 2010 at 22:21

© 2022 - 2024 — McMap. All rights reserved.