Blog Archives

Grails: java.lang.OutOfMemoryError: PermGen space

Use case Developing with IntelliJ and Grails sometimesĀ leads to memory problems, particularly considering the PermGen space – even with plenty of RAM. This issue occures especially after re-deploying several times while debugging. Incident This is moreĀ a flaw with Tomcat itself,

Tagged with: , , , , ,
Posted in Grails, Groovy, IntelliJ, Java, Webserver

Grails: “General error during class generation: java.lang.reflect. MalformedParameterizedTypeException”

Use case Grails: “General error during class generation: java.lang.reflect. MalformedParameterizedTypeException” Cripes.. how many hours this took me to find the issues behind this error message. So now that I figured it out I’d better share this to others for less

Tagged with: , ,
Posted in Grails, Groovy, Java, Linux

Grails SpringSecurityService: Authenticate via Code manually

Use case After struggling around for more than one hour to find out a good practise to login a user within the springSecurity-architecture manually. I found this helpfull post in the Grails user mailing list: http://grails.1312388.n4.nabble.com/Automatically-logging-a-user-in-after-ajax-registration-with-Spring-Security-td3166809.html Solution // Find bu

Tagged with: , , , , ,
Posted in Grails, Groovy, SpringSecurity

GORM: Access Properties of Child Object with createAlias()

Use case Imagine we have a GORM class called Book. This class has an associated Author. And now we want to query certain properties of the author, then we have two common possibilities to perform this query: HQL, Hibernate Query

Tagged with: , , ,
Posted in GORM, Grails, Groovy

Grails: How to access action/controller/param inside a service

Use case Even though a service should be stateless and application-/context-independent, I needed to access the current controller and action from inside a service class. Namely I have a URL-Service, which provides various kinds of dynamic URL methods. One of

Tagged with: , , , ,
Posted in Grails, Groovy, Java
Archive
Categories