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
1 answer
Grails 3.3.9 and Grails Spring Security Core Plugin login/auth Not Found
For a project I would like to use Grails 3.3.9 and springsecurity.
Unfortunately I get a not found after starting the application for localhost:8080/login/auth. I've used the combination Grails and spring security a dozen times and it always…

Sweeny
- 21
- 2
0
votes
1 answer
Grails 3.3.9: Forward copies params
We're migrating from Grails 2.x to 3.x. I can observe some different behaviour when using the forward function:
class FooController {
def index() {
forward controller: 'foo', action : 'bar', params: params
}
def bar() {
…

Erando
- 811
- 3
- 13
- 27
0
votes
0 answers
Grails 3.3.9 : Could not resolve view with name '', when view is in project structure
I am running Grails 3.3.9. I created a small app to measure application usage. I am able to run my project locally without any issues, however when deploying as a war file, I run into the following error on all requested actions, even though the…

Mike Croteau
- 1,062
- 2
- 16
- 43
0
votes
1 answer
Grails 3.x - Creating test data for functional tests
I have a Grails application which is access control protected by Spring Security.
I'm trying to create a test user and subsequently login using same from the login screen and then traverse my screens.
Seems like a reasonably common thing to try and…

dre
- 1,027
- 1
- 11
- 31
0
votes
1 answer
Grails 3 : GenericJDBCException: could not prepare statement
Some read queries fail one in ten times with the following message:
org.hibernate.exception.GenericJDBCException: could not prepare statement
The endpoint itself just calls Myclass.findById(myInstanceId), so it is a plugin/library/framework…

Heschoon
- 2,915
- 9
- 26
- 55
0
votes
1 answer
Can't use Grails despite correct paths
I'm trying to set up Grails at my computer at work running Windows 10 and I'm unable to do so. I've downloaded the latest version from the website (3.3.8), added a GRAILS_HOME variable to my account pointing to the unzipped Grails directory and…

Straightfw
- 2,143
- 5
- 26
- 39
0
votes
1 answer
bindData() is changing the domain id when using gorm inheritance
I have a grails domain class that extends a base class in the src folder, like so:
// src/main/groovy/demo/MyBaseClass.groovy
package demo
import grails.gorm.dirty.checking.DirtyCheck
@DirtyCheck
class MyBaseClass {
String name
}
//…

ernesto-castelan
- 56
- 6
0
votes
1 answer
Grails update embedded object but no encoding password using spring security
I'm trying to update an embedded object but when the object is updated, the password user is encoded again.
I would like to update the Card object into User class. The UserService should only update the card object but it's updating the password…

Adrian Rodriguez
- 452
- 4
- 19
0
votes
2 answers
What is the best way, to use a Grails 3 Service in the Groovy Source folder?
As in the question stated, what is the best way to use a grails service in the groovy sources? I'm working currently with this code:
private RoleService roleService;
public RoleCommand() {
this.roleService = (RoleService)…
user7715234
0
votes
1 answer
Default string size for Postgresql and Grails 3.3.8 seems to be 20 characters
My string columns are defaulting to 20 characters. All the documentation suggests the default is 255. How do I set that without changing each individual column. I am using Grails 3.3.8 and Postgresql 9.3.
class DbConnection {
String name
…

bbyrd
- 41
- 4
0
votes
2 answers
How do I access datasources in ordinary groovy classes in Grails 3?
I'm trying to run sql-code from inside an ordinary Groovy class (no service).
In Grails 2 I could access a datasource by doing this:
public GroovyClass() {
def ctx =…

ascu
- 1,029
- 1
- 19
- 33
0
votes
0 answers
How to integrate Spring AOP with Grails 3
I'm stuck trying to integrate spring aop for loggin in grails 3. I'm able to use logging inside the service class or controllers using log.info and I want to use it inside an aspect class.
This is my application.yml where I set the configuration…

Pablo Fernando
- 11
- 2
0
votes
1 answer
how to save data permanently in grails?
everytime i press debug project, the data in my database is gone. but if i only press run project its still fine. can someone tell me whats wrong in my code? no error appeared when im debugging or running the project.
package test
class Test1 {
…

Calvin Adiwinata
- 137
- 2
- 11
0
votes
0 answers
Could not resolve view with name 'alive' when deployed with Tomcat 8
When deployed to our production server(AWS Linux, Tomcat 8, Grails 3.3.3, Java 1.8) the app cannot find the view. When running locally (grails prod run-app, grails run-app, Java 1.8) there is no issue.
View(alive.gson)
import…

kuda
- 68
- 4
0
votes
1 answer
GORM Integration Tests with 3 or more DataSources
My integration test, MultipleDbsITSpec, is failing with the error, "org.hibernate.HibernateException: No Session found for current thread" when you attempt to interact with more than 2 datasources. This issue does not occur when running the…

Jason Heithoff
- 508
- 3
- 10