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
0
votes
2 answers
Grails REST POST fails with element with alternate identifier column
This is a reduced example from a real project I am working on.
I have the following domains.
class PhoneNumber {
String cn
PhoneType phoneType
String phoneNumber
static constraints = {
}
}
class PhoneType {
String…

WizardsOfWor
- 2,974
- 29
- 23
0
votes
1 answer
how to Upgrade Grails from Grails 2.4.4 to Grails 3.3.6?
I need to upgrade my grails application from 2.4.4 to 3.3.6. is there any smart way to do it or any kind of help if you can share your experience.

shrikant joshi
- 494
- 4
- 12
0
votes
2 answers
Grails 3.3: Is only the first save() persisted?
Is only the first save() on a domain object instance persisted?
Environment: Grails 3.3.5, GORM 6.1.9 I believe, PostgreSQL 9.5, JDK 1.8.0_171, Ubuntu 16.04.
My app creates Recital (domain object) instances based on input from a number of text…

sodastream
- 129
- 10
0
votes
1 answer
grails ehcache - no configuration found
Grails 3.3.1
ehcache 3.0.0.M1
Since I am not able to create properly running caches programmatically, I try to create it via xml. But I don't know where to put the file. Every time I start the application the log output is like this:
2018-07-02…

pebbles
- 356
- 1
- 3
- 19
0
votes
1 answer
Grails Custom Validation with List of objects
I already have a custom validation for a MultipartFile.
class ImageCommand implements Validateable {
MultipartFile imageFile
static constraints = {
imageFile validator: { val, obj ->
if ( val == null ) {
return false
…

Adrian Rodriguez
- 452
- 4
- 19
0
votes
1 answer
Grails 3.3 GORM CriteriaBuilder functions on properties
I'm using Grails 3.3 and GORM CriteriaBuilder for most of my querying these days but I am stuck on how to call functions on properties - for example, calling the hour() function on a Date property. If I were using where DetachedCriteria I could…

MonetsChemist
- 165
- 10
0
votes
1 answer
Grails 3.3.5 -Dfile.encoding=UTF-8 not working?
I find grails -Dfile.encoding=UTF-8 war is not working for my project, but gradle -Dfile.encoding=UTF-8 assemble is working. Maybe grails not pass system properties to gradle ? And what should I do ?
Thanks.

Feng Yu
- 1,431
- 2
- 18
- 26
0
votes
1 answer
What is the difference between Grails 3.3.3 and 3.3.4?
According to the Grails project homepage version 3.3.4 is the latest release of Grails.
There are release notes for this release too but the refer to a GitHub milestone that contains no issues.
Does anyone know what in this latest release?

saw303
- 8,051
- 7
- 50
- 90
0
votes
1 answer
Grails 3 : ServletContext is coming null in grails service
I am unable to get servletcontext while calling 1 service method from another.
And if i move that called code to calling service class then its working fine.
CreditFilesService
CreditFilesService
LakshyaUtilsService
LakshyaUtilsService…

Kapil Arora
- 151
- 1
- 12
0
votes
0 answers
How to resolve MongoBulkWriteException while updating an existing record?
Hi while trying to save an existing record in DB i am getting MongoBulkWriteException
Bulk write operation error on server db2:27017. Write errors:
[BulkWriteError{index=0, code=16837, message='Cannot update 'version'
and 'version' at the same…

Kapil Arora
- 151
- 1
- 12
0
votes
1 answer
Register bean with Grails for MeterRegistryCustomizer
Having followed Spring Boot Metrics documentation, I was able to set metrics logging for datadog easily. The only remaining stuff is to set custom tags for my instances. With Spring Boot, you can do it by registering a new…

kuceram
- 3,795
- 9
- 34
- 54
0
votes
1 answer
Upgrade to: Grails 3.3.2, setting server URL
Hi I m upgrading existing Grails 2.4.5 to Grails 3.3.2. I followed https://docs.grails.org/3.0.x/guide/upgrading.html. Grails app runs at localhost:8080, but I want server URL as http://localhost:8080/projectName. I tried adding the following to…

user8125765
- 209
- 1
- 2
- 16
0
votes
1 answer
Customize Grails stats
When grails stats is executed it gives statistics of sources as per grails default convention. How can I customize stats to add some of my custom classes under src directory.

Moon
- 2,837
- 1
- 20
- 34
0
votes
0 answers
Restrict access to data to grails
There is a large table with data.
On the site, each user is given access only to a certain set of data from the table (a selection is made according to certain criteria).
But in the URL line, he can change the number to get access to any data from…

cat1244
- 69
- 7
0
votes
0 answers
cannot find webflow plugin?
I created a sample grails 3 app and added webflow plugin into build.gradle as follows
compile "org.grails.plugins:webflow:2.1.0"
here is the link to the plugin
https://grails.org/plugin/webflow?skipRedirect=true
When i run compile i get the…

kofhearts
- 3,607
- 8
- 46
- 79