Grails / Java / J2EE

MavenCentral Dependencies Failing To Resolve

As of January 15, 2020 Sonatype, the hosts of the Maven Central repository will no longer be permitting insecure connections to their repository via http. More information on the why´s can be found here. So if you´re working on a Grails application that uses the mavenCentral() repo, and suddenly on

Read More
Grails / Java / J2EE

Using Servlets within Grails Applications

Hiding the nuts and bolts of what happens behind the scenes in Grails web applications is one of its strong points. 99% of the time we use controllers and actions, we access the ‘params’ parameter map to see what’s been passed to our code and respond accordingly without never needing

Read More
Grails / Java / J2EE

Grails IllegalStateException On CommandObjects

A very small but I’m sure useful snippet here for anyone banging their head against a wall trying to figure out why they cannot validate command objects. Or even why submitting a form they get this rather misleading exception message from Grails. Method on class [com.tucanoo.SomeCommandObject] was used outside of

Read More
Grails / Java / J2EE, Web Development

Grails Metaprogramming

With the extremely rapid rapid application development benefits provided by Grails,  It can be tempting to feel you have learned nearly everything you need to know by the time you’ve got your first web app up linked to a database with full CRUD facilities and error handling ready.  I’m sure

Read More