grails Questions

6

Solved

As described here @Repeat annotation is not supported right now. How can I mark spock test as repeated n times? Suppose I have spock test: def "testing somthing"() { expect: assert myService.ge...
Zigrang asked 6/6, 2012 at 7:39

2

Im trying to upload a file, and store it in a file. This is the code in the GSP: <g:form method="post" enctype="multipart/form-data" action="update"> <input type="file" name="cv" id="cv"/...
Capricorn asked 10/1, 2013 at 13:40

4

Solved

Background: we have a Grails 1.3.7 app and are using Liquibase to manage our database migrations. I am trying to add a new column to an existing table which is not empty. My changeset looks like ...
Succulent asked 18/1, 2012 at 2:12

8

Solved

I have a Spring Boot application (Grails 3.1.8), but when I run the application in IntelliJ IDEA I get the following error: Caused by: java.lang.IllegalStateException: Failed to introspect annotate...
Collettecolletti asked 21/6, 2016 at 7:39

2

I am tring to get a jar dependency from Maven via the grails 3.1.5 gradle dependency Resolution . How do I increase timeout that gradle takes to get a maven dependency. Sure I have seen that the de...
Ideal asked 11/5, 2016 at 8:6

17

Solved

I am yet to find a high-level definition of Spring beans that I can understand. I see them referenced often in Grails documentation and books, but I think that understanding what they are would be ...
Preamplifier asked 19/6, 2013 at 14:5

17

Solved

I got this error message: error: Found shared references to a collection: Person.relatedPersons When I tried to execute addToRelatedPersons(anotherPerson): person.addToRelatedPersons(anotherP...
Pouter asked 7/11, 2009 at 12:27

5

Solved

I'm trying to write an HQL query to grab a list of users that belong to a particular organisation, or any franchisee from a list of franchisees, however hibernate isn't able to parse it. I can't fi...
Petta asked 3/7, 2014 at 10:26

2

Is it possible somehow to create a trait with fields and constraints for those fields and then create domain classes that implement that trait and pick up the fields with constraints? I have code ...
Forecourt asked 30/4, 2015 at 21:49

7

Solved

I have a Grails service that sends out e-mails using a 3rd-party service by doing a HTTP call: class EmailService { def sendEmail(values) { def valueJson = values as JSON ... // does HTTP call ...
Frae asked 2/8, 2012 at 21:0

7

I am getting this error while trying to import a grails 3.3.2 project into intellij. I have searched online solutions and not found anything helpful.
Siftings asked 18/1, 2018 at 2:32

3

When the web session expires, Spring Security responds with a 403 HTTP status. Ideally, it would respond with a 401. Unauthorized and Forbidden are different. The request to a secured resource shou...
Darfur asked 2/6, 2015 at 20:40

4

Solved

I have the project as set-up below. I am trying to delete a project, and I get the following: 2010-09-29 11:45:22,902 [http-8080-1] ERROR errors.GrailsExceptionResolver - deleted object would be r...
Dirac asked 29/9, 2010 at 20:50

3

Solved

I have the following classes: class User { hasMany = [ratings: Rating] } class Item { hasMany = [ratings: Rating] } class Rating { belongsTo = [user: User, item: Item] } I want to count ...
Armillas asked 13/9, 2013 at 17:1

8

Solved

I need to update the cache control header in all AmazonS3's Cloud Files. However, I can't figure out how I do that using the jclouds API. I'm using apache jclouds plugin. And I got two related answ...
Copyright asked 18/9, 2015 at 7:50

2

Solved

I'm quite new with Grails and trying to connect my application to my local mysql database. Since I'm working with the latest version of Grails, I couldn't really find a lot of documentation to help...
Protium asked 1/8, 2015 at 18:35

3

I am trying to override dataSource.url value running grails from the command line, example grails <set property> dbm-status My first try was using -D command line parameter as grails -Dd...
Leyla asked 28/1, 2015 at 15:27

4

How can I get a map of the key/values of only the user-defined properties on one of my domain objects? Problem is if I do this myself, I get my properties plus class, metaClass, constraints, closu...
Monagan asked 14/6, 2011 at 12:11

4

Solved

What's the best/easiest way to get a list of the persistent properties associated with a given GORM domain object? I can get the list of all properties, but this list contains non-persistent fields...
Uniliteral asked 29/12, 2010 at 14:59

6

I'm trying to save quartz jobs into the database. I've set up the tables, created quartz.properties files, but when I try to run the app, this exception shows up: 2012-02-01 17:36:23,708 [main] ER...
Sustentacular asked 1/2, 2012 at 10:46

13

Solved

I get the following error when using a primitive attribute in my grails domain object: Null value was assigned to a property of primitive type setter of MyDomain.myAttribute org.hibernate.Propert...
Vatic asked 1/7, 2010 at 1:33

2

Solved

I am trying to install webflow plugin version with my grails 1.3.9 version. I have tried the following thing., Using command grails intall-plugin webflow 1.3.8 Result was : org.grails#grails-we...
Raybourne asked 25/2, 2015 at 9:50

2

Solved

From what I've read, save() informs the persistence context that an instance should be saved or updated. However, I have methods in a service that change the property of a domain instance without c...
Adi asked 28/2, 2012 at 22:0

3

Solved

According to the official documentation, and the books I have read, services are transnational be default. however, we were getting records committed, even if we immediately throw a RuntimeExceptio...
Launder asked 26/2, 2015 at 14:5

4

Solved

We are working on a new project with Grails 2.0.1 and Spring Security. The create user context fails due to springSecurityService in the User domain object being null. Strangely this occurs only ou...
Internist asked 15/3, 2012 at 5:44

© 2022 - 2024 — McMap. All rights reserved.