Use this tag for version 3.3 only, use grails tag for general question about grails Web application framework
Questions tagged [grails-3.3]
109 questions
1
vote
1 answer
Querying backwards association with JPA QL in a grails 3 Data Service, MissingMethodException executeQuery on Object?
In a database, that gathers authors and their books, we add the books by an Author as Book instances.
However, an Author may have books that have not yet been added to the database. This is why we have an outside sanity counter, telling us how many…

Luis Muñiz
- 4,649
- 1
- 27
- 43
1
vote
0 answers
grails gorm critieria builder count returns incorrect value?
According to the latest GORM documentation, the count() method of CriteriaBuilder should return "The result count".
I find this not to be true when a projection is used in the CriteriaBuilder; then count() seems to return the total number of…

MonetsChemist
- 165
- 10
1
vote
1 answer
mapWith with hasMany giving error on run-app with Grails v3.3.5 working fine with Grails v3.2.11
I have a domain class DomainA --
class DomainA {
String someString
static mapWith = "none"
}
I don't want to persist this domain so I am using mapWith property. And have its relation in DomainB in hasMany --
class DomainB {
String…

MKB
- 7,587
- 9
- 45
- 71
1
vote
2 answers
Grails 3 upload file limit size
What i am doing and what happened?
I am trying to upload files in grails and dowloand them. After make it, I am still facing a problem, when the file size is large. Here is the exception:
Caused by:…

IgniteCoders
- 4,834
- 3
- 44
- 62
1
vote
1 answer
"CLIENT-CERT" based X509 certificate authentication in Grails 3.3
I have been trying to mirror an implementation I had in Grails 2 for some time now as I try and upgrade to Grails 3.
I need to support X509 certificate based authentication using the "client-cert" auth method, that is, I only want to be prompted…

dre
- 1,027
- 1
- 11
- 31
1
vote
1 answer
How would I overwrite a method in a taglib bean?
I am trying to migrate the grails-timezone-detection grails plugin to Grails 3.
In the original code there is the following method:
private def getDefaultFormTagLib() {
return…

Pieter Malan
- 63
- 7
1
vote
0 answers
Grails 3 curl POST empty content - Processing of multipart/form-data request failed. Unexpected EOF read on the socket
Hi,
I have Grails 3 application to with file upload option. When I post the curl with empty content it throwing the Exception, What is the best way to handle this condition?
Curl Posting
curl -v -k -L -X POST -F "filename=@"…

sfgroups
- 18,151
- 28
- 132
- 204
1
vote
1 answer
Use database property from external property file in grails 3
I want to use external property file for database configuration in production environment. i have tried some of solution from blogs and stack overflow but its work only for development environment.
grailsVersion=3.3.2

Kapil Thakkar
- 840
- 10
- 17
1
vote
0 answers
Grails 3.3.1 and reloading beans with properties defined in resources.groovy
I have a class in src/main/groovy (ApiService.groovy). I am defining this as a spring bean in resources.groovy as I have multiple implementations.
There is a single property for this bean:
apiService(ApiService) {
server =…

Alan Hill
- 11
- 2
1
vote
3 answers
How to mock service in groovy/src class under test with Grails 3.3.x
I've recently upgraded to grails 3.3.1 and realised that grails.test.mixin.Mock has been pulled to separate project which has been build just for backward compatibility according to my understanding org.grails:grails-test-mixins:3.3.0.
I've been…

kuceram
- 3,795
- 9
- 34
- 54
1
vote
2 answers
Grails with Postgresql : can't create table in appropriate schema
I want to use Grails 3.3.0 with a Postgresql database and also with three schema : openlearning, data and contrib.
In domain classes, I specified the schema I want (see below).
My issue is that tables are created only in public schema and not in the…

drieu
- 187
- 13
1
vote
2 answers
Grails Spring Security Core 3.2.0.M1 - secure annotations not working
I have upgraded Grails and Spring Security to latest (3.3.0.RC1 and 3.2.0.M1 respectively) by following all of the migration paths but now my annotations no longer work. Control follows through to my not authorised callback…

dre
- 1,027
- 1
- 11
- 31
1
vote
2 answers
Determine Springs bean instantiation order in Grails 3.3 with GORM 6.1.x
I am using a Grails 3.3 application that uses GORM 6.1.6.RELEASE, Spring-Boot 1.5.4.RELEASE and Spring Core 4.3.9.RELEASE behind the scene. I am trying to declare a Spring bean that get initialized just before Hibernate starts to validate the…

saw303
- 8,051
- 7
- 50
- 90
1
vote
1 answer
Grails 3 Entity not saved when properties set in EntityClass
I occure a problem which I do not understand. Following code does not work:
AccountingEntity accountingEntity = AccountingEntity.get(params.id);
accountingEntity.setLifecycleStatusToArchived();
accountingEntity.save(flush:true);
Where the method…

Kloker
- 499
- 4
- 14
0
votes
1 answer
Grails 3.3.10: running integration tests Error creating bean with name 'com.cabolabs.security.UserController'
I'm trying to create an integration test for a service and keep receiving a controller, that is totally disconnected from the service test, can't be created. Spending a day or so on everything that might cause the issue, and failing miserably,…

Pablo Pazos
- 3,080
- 29
- 42