Questions tagged [grails3]

Grails 3 is the next major version of the Grails framework. This tag can/should be used with all Grails 3.x version so that the users on StackOverflow don't have to filter each specific Grails version (for example, 3.1.10, 3.2.0-m2) and they can filter every question which is related to Grails 3.

289 questions
10
votes
2 answers

indirect jar conflict between spring-security-rest and guava causing NoSuchMethod error

I use grails 3.1.16 build.gradle: dependencies { compile "com.google.guava:guava:18.0" compile "org.grails.plugins:spring-security-rest:2.0.0.M2" } while running this code: private LoadingCache attempts …
Tom Boldan
  • 208
  • 1
  • 9
7
votes
1 answer

springSecurityService.principal returns Null when deployed as a WAR in tomcat 8.5

Preamble I'm designing an API gateway for a Grails microservice federation. This issue seems related to a bunch of issues already filed in this repository but nothing provides a solution. Versions and Configurations Grails: 3.2.2 Tomcat: 8.5 Plugin…
Saqib Ahmed
  • 1,056
  • 14
  • 33
6
votes
0 answers

How to set Oracle connection property "includeSynonyms=true" in Grails 3

My Grails 3.3.2 application currently connecting to an Oracle 11g database and some of the data tables are synonyms with dblink that point to the physical table in another database. When the Grails application startup, below hibnerate exception was…
Leo
  • 142
  • 1
  • 3
  • 11
6
votes
0 answers

Grails Self Referencing Criteria

In the project I´m working there is a part of the database that is like the following diagram The domain classes have a definition similar to the following: class File{ String name } class Document{ File file } class LogEntry{ …
Omar Yafer
  • 823
  • 6
  • 17
5
votes
1 answer

Grails 3 + IntelliJ: Running integration tests yields "No GORM implementations configured. Ensure GORM has been initialized correctly"

I have a plain Grails 3.3.2 app. I can run tests just fine with gradle test integrationTest. But when I try to right click and run a test class or a single tests or the entire test suite in IntelliJ, I get: No GORM implementations configured.…
August Lilleaas
  • 54,010
  • 13
  • 102
  • 111
5
votes
1 answer

Grails 3 logging in src folder not injecting log object

In the src folder of the grails 3 app: I have a lot of log.xyz and they are is throwing the following exception: Caused by: groovy.lang.MissingPropertyException: No such property: log for class: com.myApp.runner.RunnerThreadPoolExecutor Which…
JoeyHolloway
  • 458
  • 7
  • 19
5
votes
0 answers

Grails 3.2.4 grails-spring-websocket 2.3 Error

=== UPDATE === (see original post below) Though the bug fix initiated by zyro brought some improvements, there error is still not disappeared completely. It still looks like this: 31-Jan-2018 19:30:53.529 INFO [MessageBroker-3]…
Kloker
  • 499
  • 4
  • 14
5
votes
1 answer

Overriding method provided by trait in grails unit test

I have a controller with actions using the isLoggedIn() function provided by the Grails Spring Security Core plugin. I want to be able to unit test these actions, and I therefore need a way to mock the isLoggedIn() function so that it always returns…
Lagostra
  • 63
  • 1
  • 5
5
votes
0 answers

Deploying Grails 3 App throws FlashScope Exception

When deploying a new version of a Grails 3.1.1 application war into a running Tomcat, I am presented with an exception when accessing it after deployment. Oct 13, 2016 11:39:58 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE:…
Cyntech
  • 5,362
  • 6
  • 33
  • 47
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
4
votes
1 answer

Getting error, Spring BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator'

I have updated my project from grails2.5.6 to grails3.3.9 and successfully completed unit testing. While running the integration test I am getting the following Exception. 2019-03-07 18:26:12.169 WARN --- [ main]…
Pradeep Maurya
  • 384
  • 2
  • 8
4
votes
1 answer

Grails - do not open hibernate session for certain request path

We'd like to implement API rate limiting for Grails 3 application. We use interceptor and redis for this purpose. There is however a problem of opening hibernate session (which opens database connection) for each request coming to Grails. This is a…
kuceram
  • 3,795
  • 9
  • 34
  • 54
4
votes
0 answers

Grails 3.x- GORM - inList fails on members start with underscore (_)

I have this class class ScanRequest4Command implements Validateable { String _ScanType static constraints = { pScanType inList:["a", "b"] } } this code worked fine in grails 2.4.4 lately, we started upgrading to grails…
No Idea For Name
  • 11,411
  • 10
  • 42
  • 70
4
votes
4 answers

Grails 3 JSON render can not render List?

I have problem when rendering List result, is grails can not render list? here my code def findSome(){ String query = params?.some List someList = Some.createCriteria().list(max : 5) { if(query != null && query != ""){ …
dadang1234
  • 65
  • 1
  • 10
4
votes
3 answers

grails 3.3.0: org.h2.jdbc.JdbcSQLException: Table "XYZ" not found in unit tests

Summary I'm trying to create a new grails 3.3.0 application, with some simple domain classes. I'm also using the new HibernateSpec (coming with GORM 6.1.x) to create an in-memory H2 database for my unit test. I used this technique with previous…
Luis Muñiz
  • 4,649
  • 1
  • 27
  • 43
1
2 3
19 20