Questions tagged [grails-4]

Grails is a full stack framework and attempts to solve as many pieces of the web development puzzle through the core technology and its associated plugins. Use this tag to talk about issues within grails 4

Grails is a full stack framework and attempts to solve as many pieces of the web development puzzle through the core technology and its associated plugins.

120 questions
1
vote
0 answers

Parameter encoding with Micronaut HTTP client inside Grails 4

In a Grails 4.0.1 app I'm using the Micronaut HTTP client to call an external web service. Parameters are automatically url encoded into UTF-8. How can I force the encoding to be Windows-1252 instead?
Xavier Ger
  • 11
  • 3
1
vote
1 answer

grails 4 sessionRegistry empty

Upgrading to grails 4, sessionRegistry.getAllPrincipal() is always empty. The original spring bean in resources.groovy were sessionRegistry(SessionRegistryImpl) concurrentSessionFilter(ConcurrentSessionFilter){ sessionRegistry = sessionRegistry …
user2782001
  • 3,380
  • 3
  • 22
  • 41
1
vote
1 answer

How to get deserialized JTS Geometry field in Grails 4?

I'm building a small Geo server using PostgreSQL + PostGIS + Grails 4 + Geoserver + React + JTS. The domain class has a com.vividsolutions.jts.geom.Point field that is maped to a sqlType: 'geometry(Point,4326)'. When I search any findBy...(...)…
Juan Salvador
  • 407
  • 9
  • 15
1
vote
1 answer

Grails 4: Micronaut fails with NoClassDefFoundError: javax/annotation/PreDestroy

I migrated a Grails 3.3.10 application to Grails 4.0.0, moving from Java 8 to OpenJDK 11. After some work to make the tests and application run on my development environment ( a windows 10 machine ), I packaged my executable war in a docker…
Heschoon
  • 2,915
  • 9
  • 26
  • 55
0
votes
2 answers

How to avoid optimistic locking failure exception during ajax periodic calls in grails?

I have a simple function in MessageController that is called by the mail compose page every 1 second using ajax call. It is a simple function to periodically save the message draft so that the message written by the user is not lost if something…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
0 answers

Grails returns: Caused by: java.lang.StackOverflowError: null?

I have been trying to figure out the cause of this stack overflow error but haven't succeeded. Today the log was filled with this error. I only have pasted part of the trace but it repeats over and over again. The stack trace doesn't point to…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

How to catch MaxUploadSizeExceededException while upload file in Grails 4?

I have this configuration set so it correctly allows file size upload till 5mb. grails: controllers: upload: maxFileSize: 5000000 maxRequestSize: 5000000 But when I upload file size of greater than 5 mb then it…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

Error when running dbm-gorm-diff with Grails 4.0.10 and MySQL 8

When running dbm-gorm-diff I am getting the following error: C:\Users\User\.jdks\corretto-1.8.0_332\bin\java.exe -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:CICompilerCount=3 -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=UTF-8…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

How to get Grails app to run successfully on port 443

I have a Grails 4.0.10 app that I am trying to run on port 443 because when using other port than 443 the port number is displayed in the url bar like this. https://2.113.139.14:8443/ I can make it run on any other port like 8443 or 8445. I just…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

SQL Sequence mapping - SqlServer2012SpatialDialect, Grails 4, Hibernate 5 compatibility

So far in the configuration file (application.yml) hibernate-dialect has been set as follows: dataSource: pooled: true jmxExport: true driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver dialect:…
lujjas
  • 68
  • 9
0
votes
1 answer

How to use performance properties of MySQL when using HikariCP in Grails 4?

On the HikariCP page on the page on MySQL performance tips. https://github.com/brettwooldridge/HikariCP/wiki/MySQL-Configuration It suggests using 4 properties namely prepStmtCacheSize prepStmtCacheSqlLimit cachePrepStmts useServerPrepStmts I am…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

Property of class cannot be null error when making curl POST request to REST api in Grails 4

I created a new Grails 4.0.10 app using rest application profile. I would like to check how the Resource annotation works. According to the docs, if I annotate Resource on domain then I don't need to write a controller. The domain I have is: package…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

how to automatically run grails app after system reboot?

I am running a grails 4.0.10 app using the following command. nohup java -Dgrails.env=prod -Duser.timezone=US/Mountain -jar RCRoadRaceWeb4-0.1.jar & The app connects to mysql 8 server. When i reboot the system using the command sudo reboot after…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

Unable to create requested service org.hibernate.cache.spi.RegionFactory error in grails 4.0.10?

I am having problem making hibernate second level cache to work. I am using grails 4.0.10. The error i am getting is Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDatastore': Bean…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
0 answers

Increasing pool size in Grails taking no effect

I am load testing a Grails 4.0.10 app using JMeter. The app is connected to a MySQL 8 database. The JDK I am using is JDK 8. I am testing registration feature simulating 2000 users trying to register at once. Registration process consist of these…
kofhearts
  • 3,607
  • 8
  • 46
  • 79