Author Archives: Sti

Grails – Error creating URL for parameters – UnsupportedEncodingException

Recently (with Grails 2.4.2) an exception popped up in the logs Caused by: org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Error creating URL for parameters [{language=en, id=256, controller=gallery, action=ajaxLoadMoreDesigns}], problem encoding URL part [en]: ‘UTF-8’ .. Caused by: java.io.UnsupportedEncodingException: ‘UTF-8’ at java.net.URLEncoder.encode(URLEncoder.java:215) … 9 more for … Continue reading

Posted in Uncategorized | Leave a comment

Grails: Fix functional tests for forked execution

If you’ve also run into the issue that functional tests have a problem with forked execution, but you still want to use it for development (e.g. for reloading), you can use the environment support in BuildConfig.groovy for enabling forking for … Continue reading

Posted in Software | Leave a comment

Upgrade from Grails 2.2.2 to 2.4.1

Here’s what was necessary for me to upgrade handful of Grails projects to 2.4.1: Change the grails.version in application.properties grails clean is your friend when changing dependencies change hibernate, tomcat and resources plugin versions to latest kick out the spock … Continue reading

Posted in Software | 12 Comments

Setting up a Ubuntu VM with Vagrant and Ansible on Windows

As Ansible has no out-of-the-box support for running on Windows, there’s some tweaking to do. Please note that these instructions just run Ansible against a vagrant managed VM, no Vagrant Ansible provisioning is involved. You’ll install cygwin (+ some packages … Continue reading

Posted in Software | Leave a comment

Grails – “Error An error occurred loading the grails-app/conf/BuildConfig.groovy file: null”

If you get this error, check if there’s another (wrong) groovy version on your classpath. For me this happened in IntelliJ because I had @Grab’ed a third party library that depended on an older groovy version, and IntelliJ adds @Grab’ed … Continue reading

Posted in Software | Leave a comment