467 questions
0
votes
0
answers
24
views
Grails 2.5.6 - "Method on class was used outside of a Grails application" error
I’m using Grails 2.5.6 and I created a simple Person domain and a PersonController.
When I try to call POST /person/add, I get the following error:
Method on class [com.demo.Person] was used outside ...
0
votes
1
answer
83
views
Grails Version Update from 4.0.2 to 6.2.3: Getting unable to find valid certification path to requested target
I have a Grails project running on 4.0.2 and Java 11. I generated the war file and deployed on tomcat to run in scheduled manner.
Now I'm upgrading the project to 6.2.3 and Java 17.
Steps I performed ...
3
votes
0
answers
71
views
Grails 3.017 not showing the fields of the domain class fields in localhost 8080
I am new to Grails . I am using Grails 3.0.17 in my project .
I have created a dummy project named A
I have created a dummy class B in my domain as below:-
class B {
String name
static ...
0
votes
1
answer
89
views
Why is Grails (6.0.0) trying to cast a String URL parameter to a domain object? (It seems related to a partial match of the domain name.)
I have a controller method that takes a String argument called "search":
def test(String search) {
log.info("search: ${search}")
render("testing ${search}")
}
...
0
votes
1
answer
50
views
Grails sortableColumn is refreshing page instead of container
I have a grails application that was upgraded to 5.3.2 and it was using util:remoteSortableColumn for the sorts on the table. Only replacement I found was g:sortableColumn, so I've been trying to ...
4
votes
1
answer
85
views
Grails 4.1.1 Data Service cannot be injected into Command Object: NoSuchBeanDefinitionException
I Have a simple design of Controller/Command/Data Service:
@Secured("ROLE_BACKEND")
class CommunityController {
static namespace = "api"
static allowedMethods = [index: &...
0
votes
1
answer
71
views
Can't catch exception between services in Grails
I'm trying to catch an exception between two services but the catch code is unreachable. Does any one knows why?
Controller:
def controllerMethod() {
try {
service1.execute()
} catch(...
0
votes
1
answer
39
views
Grails 2.5 static files with selected content-type
I would like to add static file /.well-known/apple-app-site-association to the project. But I also need to set a response header connected to this file with Content-Type: application/pkcs7-mime. What ...
0
votes
1
answer
671
views
Grails 2.4.5: How do you create a Grails REST controller not linked to any domain and an action that returns an object that is not a domain class?
I am working on transforming a Grails 2.4.5 application from a website to a web service by transforming most of the service classes to REST Services that will serve a UI.
I encountered an issue when ...
1
vote
1
answer
127
views
Grails view hangs when calling a controller action
I have a view that has a link using the g:link GSP tag with action that runs and updates on a significant number of rows, so it takes some time. In the meantime, the browser is in limbo and times out ...
0
votes
0
answers
47
views
Grails 4-IntelliJ IDEA version 19 increased compilation time
We are using IntelliJ IDEA version 19 towards development of a web application in Grails 4 framework. The issue we are facing is, while undertaking code changes in controller, services and domain the ...
0
votes
0
answers
898
views
General error during semantic analysis: Unsupported class file major version 60
I am trying to execute grails help or grails create-controller Book in grails project using command prompt.
Error shown in cmd:
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\grails ...
1
vote
1
answer
136
views
How to override grails implicit log variable
I am having a grails application where I get a log variable in controller and service folders implicitly. However, I have my own logger that I want to use across the application. How can I override ...
0
votes
1
answer
236
views
Grails 4, Ubuntu 20, Embedded Tomcat - No Multipart files in request
I have been attempting to solve an issue with a prod environment deployment of a grails 4 application for about a week now. When I run my application locally, via run-app or java -jar warfile.war, I ...
0
votes
1
answer
61
views
Grails - how to create a second domain controller that is public
I'm still pretty new to the grails framework and working on legacy application based on grails 2.
I have a domain controller allowing authenticated users to do all basic CRUD actions (create, read, ...