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

Grails4 getting out of memory while compiling groovy

I am getting below out of memory error in my grails4 application after adding more controllers in my workspace. FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':cira:compileGroovy'. GC overhead limit…
2
votes
1 answer

How do I disable spring security in a Grails 4 integration test?

I had a grails 3 app including spring security, which I recently upgraded to grails 4. My application.yml includes the following: environments: test: grails: plugin: springsecurity: active:…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
2
votes
1 answer

How do I stop gradle from upgrading transitive dependencies?

Why is Gradle changing my library's transitive dependency to a newer version? How do I get it to stop? Details I am working on an internal plugin library for my company that uses Spring Security. The plugin explicitly declares a dependency on the…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
2
votes
2 answers

Using Micronaut OpenAPI/Swagger generator with grails 4

We're considering using grails 4.0.0 for our project, and i see that this new version has Micronaut as new parent application context, and that many Micronaut features are handled (seen in grails doc:…
ztwal
  • 21
  • 2
2
votes
0 answers

org.grails.datastore.mapping.model.IllegalMappingException: Non-existent mapping property

2019-08-13 22:56:45.466 ERROR --- [ restartedMain] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name …
2
votes
1 answer

Grails 4: Is spring-security-ldap updated for Grails 4.0?

I am upgrading my Grails 3.3.2 application to Grails 4.0.0.RC2 and all references to org.springframework.security.ldap classes are unresolved. I'm not sure if this is a matter of waiting for a later version of the plugin or if there's something…
mcam11
  • 37
  • 3
2
votes
1 answer

Grails 4 : Database Migration plugin issue

Since upgrading to Grails 4, the migration scripts do not appear to be getting loaded from where they are configured. This results in the following error; liquibase.exception.ChangeLogParseException: java.lang.IllegalArgumentException: Script…
dre
  • 1,027
  • 1
  • 11
  • 31
1
vote
1 answer

how to cache image read from database in grails?

In our app there are two ways we serve images. The first is through asset pipeline and second is fetching from database. For the main company header logo we serve it from asset pipeline. The gsp code looks like this
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
1 answer

difference in datetime stored in mysql 5.7 and mysql 8 by grails?

I ll try to make the issue i am facing as clear as possible. i have a Registration domain with datecreated field. I have an old grails 2.2 app that uses mysql 5.7. The application is run with timezone US/Mountain. When i create a registration in…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
0 answers

switch user feature throwing 404 page not found in grails 4.0.10?

I am facing a really strange issue. The switch user feature is throwing 404 page not found error on our main application but it works in a new hello world app. First of all i am using Grails 4.0.10 and spring security compile…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
0 answers

dbm-gorm-diff throwing command not found error in grails 4?

I am using the latest database migration plugin and following the documentation https://grails.github.io/grails-database-migration/latest/index.html The grails version is 4.0.10 and the db migration version is implementation…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
1 answer

default grails 4 app has unique-names twice in application.yml

Why does a default Grails 4 application including Grails 4.0.12 have two entries in the default generated application.xml reference the unique-names attributes. We got this section near the top of the application.xml: spring: jmx: …
Joe
  • 1,219
  • 8
  • 13
1
vote
1 answer

Grails 4 service not being injected inside Grails Data Service

This is about a Grails service injected into a Data Service. The problem is that the injected service is null at runtime. Here is an example. class MessagingService { def sendEmail(String message) { ... } } interface IFlowService { …
sodastream
  • 129
  • 10
1
vote
1 answer

How to get Java exception thrown when connection closed and using Tomcat?

I'm trying to get an exception thrown when the DB connection is closed so that a POST request can immediately return if the connection is closed. Right now Tomcat just keeps it open and gathering log data for around 25 minutes. The way I'm testing…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
1
vote
1 answer

grails-plugin-publish unavailable in grails 4.0.11?

I'm attempting to upgrade a grails plugin from grails version 4.0.3 to 4.0.11 and get the following error immediately after changing the grails and GORM versions: A problem occurred evaluating root project 'my-plugin-project'. > Plugin with id…
Trebla
  • 1,164
  • 1
  • 13
  • 28