Questions tagged [grails-3.3]

Use this tag for version 3.3 only, use grails tag for general question about grails Web application framework

109 questions
4
votes
0 answers

How to make Custom Constraints work in Grails 3.3.10?

We are migrating from Grails 2.5.4 to Grails 3.3.10. Among the many road blocks, one is our Registered Custom Constaints no longer work. Upon some research, we found that there is a new way in Grails 3.3.10 to declare as well as register these…
4
votes
0 answers

grails 3.3 gorm where query with projection count() different than list().size()

According to the Gorm 6 documentation section 7.4 the Where Query returns a DetachedCriteria, which provides a method count() that is supposed to return the number of records returned by the query. In fact, as far as I can tell, if dc is an…
3
votes
1 answer

Grails 3.3.1 and passing system properties to test-app

I am bumping into an issue in my integration test. My code uses a system property (System.getProperty(...) ) and I am not being able to set the system property when running the integration test. Any idea on how to define system properties that are…
fassisrosa
  • 31
  • 2
3
votes
1 answer

IllegalStateException Running Grails Services Unit Tests

I have a simple grails service: @Transactional class SearchService { def doSomething() { 10 } } with a simple unit test: class SearchServiceSpec extends Specification implements ServiceUnitTest{ def setup() { …
Emmanuel John
  • 2,296
  • 1
  • 23
  • 30
3
votes
1 answer

Grails 3.3.0 on Tomcat 7.0.57

We are trying to use response.outputStream in Grails 3.3.0 under Tomcat 7.0.57. However, when any bytes are written to the stream, we get this error: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is…
Sean LeBlanc
  • 185
  • 2
  • 12
3
votes
1 answer

Upgrade from grails 3.2 to grails 3.3, GrailsDomainClass Api Deprecated

I have made the following replacements to upgrade my applications and plugins to grails 3.3. (the variable name change is due to improve clarity of the replacements.) Grails 3.2: Class clazz = grailsDomainClass.clazz ... def grailsDomainClass =…
2
votes
0 answers

grails 3.3.10 not timing out after setting server.connection-timeout

We are trying to diagnose a timeout issue, by trying to set the server.connection-timeout in application.yml To explore solutions, we first try to cause a connection timeout. The idea is to set the timeout to 10s and cause a timeout in a GSP…
Luis Muñiz
  • 4,649
  • 1
  • 27
  • 43
2
votes
2 answers

Public groovy method must be public, says the compiler

What is the cause of this error, and how do I fix it? At first glance, it seems like a defect in the groovy compiler. :compileIntegrationTestGroovystartup failed: C:\src\my-project\src\integration-test\groovy\my\project\MyServiceISpec.groovy: 31:…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
2
votes
1 answer

Grails Upgrade to 3.3.x : Cannot access persistentEntity.relationshipMap and persistentEntity.hasOneMap with grails 3.3.5

As per the upgrade docs of grails 3.3.x (http://docs.grails.org/3.3.x/guide/upgrading.html) GrailsDomainClass is deprecated with class PersistentEntity.java. Now, I was trying to upgrade my grails application which was on 3.2.11 to 3.3.5 Here I…
2
votes
1 answer

Grails 3 enumType for Set of enums

How to define a mapping for Set with enumType:'identity' ? In Grails 3.3 enumType become mandatory for Enums with id (for 3.2 it works without any additional definitions). With Enum fields everything works well, but I don't know, how to write a…
demon101
  • 544
  • 1
  • 11
  • 39
2
votes
3 answers

Error on run-app with grails 3.3.4

I am trying to upgrade my application from grails 3.2.11 to 3.3.4 On doing grails run-app, I am getting below errros: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate…
Charu Jain
  • 852
  • 1
  • 7
  • 18
2
votes
1 answer

Why on Grails 3.3.3 a redirect action pass also HTML form parameters?

I have a simple Grails web application with a couple of controllers. All works fine with grails 3.2.6, but after upgrading to Grails 3.3.3 I notice a strange behavior on HTML form post action. For example, for a domain object called Subscriber,…
Sarbyn
  • 340
  • 1
  • 13
2
votes
1 answer

Inject mock with doWithSpring

In Grails 3.2.x and earlier I could do something like this in a spock unit test: def myServiceMock = Mock(MyService) { someMethod() >> 42 } Closure doWithSpring() {{ -> myService(InstanceFactoryBean, myServiceMock, MyService) }} def "some…
brianjohnsen
  • 145
  • 8
2
votes
2 answers

Bootstrap error in grails 3.3.2

Previously i was using Bootstrap with Grails 2.5.1 and it was working fine , now I'm using it with Grails 3.3.2 i'm getting the below error in Chrome inspect while accessing the index.gsp: Uncaught Error: Bootstrap's JavaScript requires jQuery the…
Sherif
  • 93
  • 9
2
votes
2 answers

Unable to customize the schema for a domain class in Grail & Groovy

We created two different domain objects in Grails and tried accessing from two different schema. Method 1: For example: Student.groovy class Students { String id String name String address Static mapping = { schema:…
1
2 3 4 5 6 7 8