Questions tagged [grails-3.1]

Version 3.1 of the grails Open Source web application framework that uses the Spring, Hibernate, Groovy programming language, which is in turn based on the Java virtual machine (JVM) and Java. Use it in addition to the grails and grails-3 tags in specific question to grails 3.1.

From the Grails documentation:

What's new in Grails 3.1?

Grails 3.1 is at the milestone stage, but already includes the following new features.

Spring Boot 1.3 and Spring 4.2

Grails 3.1 has been upgraded to Spring Boot 1.3 and Spring 4.2.

Improvements to Grails 3 Profiles

Profile Publishing and Repositories

The following improvements are available in Grails profiles:

  • Profiles are now published as regular JAR files to any Maven compatible repository (Artifactory, Nexus etc.).
  • Additional profiles can be created easiy with the new create-profile command.
  • Profiles can now contribute to the generation of the build
  • Profiles can now have one or many features

For more information see the new section on Profiles in the user guide.

175 questions
0
votes
1 answer

grails 3 run-app fails due to file permissions set by perforce VCS

TLDR: I have a Grails 3 project. The run-app command was working fine. Then I checked it into Perforce. Now run-app fails. DETAILS: Grails Version: 3.1.1 Groovy Version: 2.4.5 JVM Version: 1.8.0_91 Gradle 2.13 % grails clean BUILD SUCCESSFUL %…
Scott Ingram
  • 85
  • 1
  • 11
0
votes
3 answers

Grails 3 "show" view with Fields plugin 2.1.0-SNAPSHOT

Stuck at a trivial problem in Grails 3.1.5: Show the fields of a domain object, excluding one of them, including a transient property. Yes, this is my first Grails 3 project after many years with previous versions. The generated show.gsp…
sodastream
  • 129
  • 10
0
votes
1 answer

combine @TestFor and @Integration Annotation grails 3

I migrate a large Grails 1.3.7 project to 3.1.6. Tests for Controllers are integration tests. This works fine because the tests inherit from ControllerSpec. Now i´m should be able to do something like…
user6260372
0
votes
0 answers

java.lang.AbstractMethodError: DomainClass.propertyMissing(Ljava/lang/String;)Ljava/lang/Object;

I am Migrating from grails 3.0.9 to grails 3.1.5 Application uses multiple datasources. When I am trying to save the record it gives throws following error. com.mypackage.Link.propertyMissing(Ljava/lang/String;)Ljava/lang/Object;. Stacktrace…
Satish
  • 61
  • 4
0
votes
1 answer

Grails 3 scaffold rendering dropdown list for domains with foreigh keys

If I have the following domain using Grails 3 class Books { String Title String Description Author author } The generated scaffold create a dropdown list for author, which is good however, the values on the list contains; webapp.author :…
bill_dom
  • 71
  • 5
0
votes
1 answer

Cannot connect mysql to Grails 3 application

I am using grails version 3.1.4 and I am trying to connect my application to mysql database. I had followed the link at How to connect Grails 3.0 to my local Mysql database to connect mysql database to my Grails 3 application but I am getting the…
Nikhil Sharma
  • 2,221
  • 6
  • 25
  • 31
0
votes
1 answer

Grails 3 REST-API Anonymous Access Denied By ExceptionTranslationFilter

I try to set up anonymous access to my API (Grails profile "rest-api", Spring Security REST for Grails), but the ExceptionTranslationFilter seems to invalidate the AnonymousAuthenticationFilter. Any configuration missing? $ grails -version | Grails…
0
votes
1 answer

grails 3.1 Exception - org.grails.datastore.mapping.core.ConnectionNotFoundException

Working with grails 3.1version, Getting this exception more often,mostly in production. org.grails.datastore.mapping.core.ConnectionNotFoundException: No datastore session found. Call Datastore.connect(..) before calling…
Amarnath R
  • 973
  • 3
  • 14
  • 33
0
votes
1 answer

Grails 3 - Marshaller with XML

I have grails 3.1 application. Below is the code for customizing the elements, which uses JSON marshaller, which works perfectly. JSON.createNamedConfig("memeListView", { JSON.registerObjectMarshaller(Meme) { Meme memeIns -> …
Amarnath R
  • 973
  • 3
  • 14
  • 33
0
votes
1 answer

How to avoid 'Cannot read write-only property' using bindable constraint on transient

I'm having trouble to bind values using a transient property using grails 3.1.4. Taking this domain as an example: class Domain { Boolean b1 Boolean b2 Boolean b3 void setPropertyList(propertyList) { …
aiolos
  • 4,637
  • 1
  • 23
  • 28
0
votes
3 answers

"Another unnamed CacheManager already exists in the same VM"-error when deploying Grails 3.1.4 app to Elastic Beanstalk

Ever since about a week ago after doing a prod dbm-update I started getting this error when deploying the WAR-file to EB (run-app works fine both in dev and prod setting): Caused by: org.hibernate.cache.CacheException: net.sf.ehcache.CacheException:…
0
votes
1 answer

Include grails tag in assets image

I am trying to include grails render tag inside assets image title, but getting an error like
BIdesi
  • 341
  • 2
  • 12
0
votes
2 answers

Grails 3.1.4 cannot run-app

I have just moved to the new Grails 3.1, and my first app in Grails worked fine. But when I created a another new Grails 3.1 app I ran into a new problem; the problem occurs when try to run using run-app interactively in the new application root: |…
Ezbob
  • 329
  • 1
  • 9
0
votes
1 answer

refactory might be done unproperly

I am a beginner trying to learn Grails 3.1. Regarding to the default, I add the following scratch on the index page:
Tung
  • 1,579
  • 4
  • 15
  • 32
1 2 3
11
12