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
13
votes
1 answer

grails 4 groovy's date enhancement methods missing

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.util.Date. Somehow the groovy additions aren't…
user2782001
  • 3,380
  • 3
  • 22
  • 41
9
votes
2 answers

Grails 4 upgrade - Error message unable to find a single main class

I am currently upgrading from Grails 3.3.10 to Grails 4.0.0. When attempting to run my project I get the following error: Execution failed for task ':bootRun'. 15:31:02.101 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Unable…
8
votes
2 answers

Quartz not working in Grails4, Issue in dependency not able to compile

Getting error in Scheduler Dependency i'm using grails4 : Anyone let me know correct dependency for scheduler dependencies { compile "org.grails.plugins:quartz:2.0.1" } and also tried this: dependencies { compile…
Komal Prasad
  • 115
  • 1
  • 7
6
votes
3 answers

How to set the log level in Grails 4

In my Grails 4 app, log.info("log message") doesn't show log, but log.error("log message") does. How do I change the log level from error to info in Grails 4?
SGT Grumpy Pants
  • 4,118
  • 4
  • 42
  • 64
5
votes
3 answers

Micronaut ReadTimeoutException

I have a Grails 4 application providing a REST API. One of the endpoints sometimes fail with the following exception: io.micronaut.http.client.exceptions.ReadTimeoutException: Read Timeout at…
Heschoon
  • 2,915
  • 9
  • 26
  • 55
5
votes
1 answer

How to view h2 database in a default grails 4 application

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://localhost:8080/dbconsole. I have looked at the…
Drummerman921
  • 311
  • 3
  • 16
4
votes
2 answers

Grails 3 vs 4 performance, starting time and memory

The documentation of Grails 4 mentions an improvement in performance and starting time due to the micronaut parent context ( here ). Did anyone measure the improvement from Grails 3 to Grails 4? How does Grails 4 compare to Grails 3 in boot time,…
Heschoon
  • 2,915
  • 9
  • 26
  • 55
3
votes
1 answer

Grails 4 - Gradle 'assemble' task not generating .war.original archive

I just upgraded my Grails web-app from version 3.2 to 4.0. I have a provided dependency in build.gradle (fairly common configuration): dependencies { ... compile "org.springframework.boot:spring-boot-starter-logging" compile…
ilPittiz
  • 734
  • 1
  • 10
  • 23
2
votes
1 answer

How to do OpenID Connect in Grails 5

I finally bow to the Internet forces and am switching my public-facing Grails application from email based registration/verification to OpenID Connect (Github/Google/Microsoft). The app is running for eight years and was recently upgraded to Grails…
Jan
  • 808
  • 8
  • 19
2
votes
2 answers

No signature of method: java.util.Date.minus() is applicable for argument types: (Integer)?

I am in the process of upgrading grails 2.2 to grails 4.0.10. In grails 2.2 which used java 7 this used to work def eanalytics = EventAnalytics.createCriteria().get(){ eq('event', raceGroup) lt('dateCreated', timeService.now()) …
kofhearts
  • 3,607
  • 8
  • 46
  • 79
2
votes
1 answer

gsp encoding no longer working in grails 4.0.11?

Since upgrading an existing application from grails 4.0.3 to 4.0.11 (did not perform interim upgrades, so issue may be somewhere in there) my gsp's that contain raw HTML are now over-encoded (meaning they are showing text like

Hello

). Is…
Daniel
  • 3,312
  • 1
  • 14
  • 31
2
votes
0 answers

Grails 4 Async with Database Operations

My Grails 4.0.10 app needs to call an external service. The call may take up to 3 minutes, so it has to be async'ed. After reading the doco I wrote a non-blocking service method to perform the call using a Promise without too much trouble. The…
sodastream
  • 129
  • 10
2
votes
1 answer

grails 4.x: Creating a WAR with a custom env always runs under development

I can't get my custom environment to run under Tomcat. It always loads the development profile. I create a WAR with the following under Grails 4.0.5: grails -Dgrails.env=qa war The resulting grails.build.info looks…
Mike Sickler
  • 33,662
  • 21
  • 64
  • 90
2
votes
1 answer

Unable to start Grails 4 application as could not find or load main class

I have recently upgraded my grails project to the latest version but facing the below error while start up: |Running application... Error: Could not find or load main class noverify FAILURE: Build failed with an exception. * What went…
Hasan K
  • 610
  • 8
  • 20
2
votes
0 answers

How to call call request.JSON multiple times in Grails unit tests?

I am upgrading my application from Grails 2.5.6 to Grails 4.0.3. Now I have lots of unit tests failed because I am calling controller methods with request.JSON multiple times in a single test. Those unit tests worked fine in old Grails 2.5.6. To…
James Zeng
  • 53
  • 7
1
2 3 4 5 6 7 8