Use this tag for version 3.0.10 only, use grails tag for general question about grails Web application framework
Questions tagged [grails-3.0.10]
12 questions
6
votes
1 answer
Grails 3.0.x Interceptor matchAll().excludes for multiple controllers
Following Grails 3.0.11 Interceptors document, I code my own Interceptors as below:
class AuthInterceptor {
int order = HIGHEST_PRECEDENCE;
AuthInterceptor() {
println("AuthInterceptor.AuthInterceptor(): Enter..............");
…

wureka
- 731
- 1
- 11
- 26
4
votes
2 answers
How to change Grails 3 SDK path in IntelliJ project once created?
I would like to change my project from Grails from 3.0.9 to 3.0.10 since latter contains Promise API.
How to do that in IntelliJ?

Dims
- 47,675
- 117
- 331
- 600
1
vote
1 answer
how to test grails 3 controller with services that have another services inject into them?
In unit test cases of controllers i'm only able to inject the services that are used in the corresponding controller.But if say one service in controller injects another service then my test cases gets failed i.e. can not invoke service…

YoYo Honey Singh
- 464
- 1
- 4
- 21
1
vote
1 answer
Grails 3 in Tomcat 6
I am trying to deploy my grails app version 3 on a Tomcat 6 container and I am facing the following error when tomcat is trying to deploy the app:
Jan 05, 2016 5:24:44 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO:…

Erikson Murrugarra
- 1,379
- 3
- 13
- 22
1
vote
1 answer
Variables available in grails templates
I am trying to edit grails scaffolding template to create individual fields in create.gsp and edit.gsp
If I add following in create.gsp
<%
def d = new grails.core.GrailsDomainClass (collegeapplication.Student.class)
…

Sap
- 5,197
- 8
- 59
- 101
1
vote
1 answer
IllegalArgumentException when mocking a grails service that extends a generic base class
Unit test:
class OtherServiceSpec extends Specification {
def fooCacheService = Mock(FooCacheService)
...
}
Service:
class FooCacheService extends CacheService {
...
}
Generic base class:
class CacheService {
…

Kevan Ahlquist
- 5,375
- 1
- 17
- 25
0
votes
2 answers
StringIndexOutOfBoundsException on get function in GORM
I'm getting StringIndexOutOfBoundsException when i try to retrieve domain class object using get function in GORM.
DOMAIN CLASS
class Connect {
int id
long profileid
String username
char type
char superSub
String time
…

YoYo Honey Singh
- 464
- 1
- 4
- 21
0
votes
1 answer
Spring Cloud Angel.SR4 And Grails 3.0.9 Don't Work
Maybe you could help me with this problem:
I am creating a Grails project version 3.0.10, and want this project to work as a Eureka Client. I am using Spring Boot 1.3.1.RELEASE and I am trying to use Spring Cloud Angel.SR4 Version.
I have a Java…

Erikson Murrugarra
- 1,379
- 3
- 13
- 22
0
votes
1 answer
Grails 3.0.10 redirect not use context path, but using directory name
I'm converting an app from grails 2.5.2 to 3.0.10. In many controllers and oher places I do
redirect(url: "/my/url", permanent: true)
I have set the context path in application.groovy:
server.'context-path' = '/myapp'
When the redirect is called,…

simplybeautifulcode
- 341
- 2
- 6
0
votes
1 answer
How do I detect a Composite Primary Key in Grails 3.0?
I am currently migrating a Grails 2.4 project to Grails 3.0.10 or 3.1.0.M3.
In Grails 2.4, the following method is a workaround that allows me to detect whether a Domain Class features a composite primary key:
void…

Matt JB
- 1
- 2
0
votes
1 answer
Grails Interceptor model is null in unit test
I have an interceptor that sets a property on the model object. In a unit test the model is null.
Interceptor
import groovy.transform.CompileStatic
import groovy.util.logging.Commons
@CompileStatic
@Commons
class FooInterceptor {
…

Kevan Ahlquist
- 5,375
- 1
- 17
- 25
-1
votes
1 answer
how to mock util classes in grails service unit testing
class PropertyDetailsServiceSpec extends Specification {
void "test one"(){
when:
Map pdData = service.buildViewData()
then:
pdData != null
}
}
class PropertyDetailsService{
buildViewData(){
UtilClass obj=new UtilClass();
…

YoYo Honey Singh
- 464
- 1
- 4
- 21