Friday Repost: Grails and Bamboo
The Friday Repost series are copies from my earlier writings. Since I don’t want to loose them, and they might prove useful to others, I’m reposting them on this blog In our development environment, we use the complete Atlassian suite. We (or actually I) choose this environment because the products integrates so well together, but also because it integrates good with other products, like SpringSource Tool Suite, or, in our case, IntelliJ IDEA. And finally, the Atlassian suite has excellent support for building Grails projects,...
read moreFriday Repost: Making Grails work behind an proxy server
The Friday Repost series are copies from my earlier writings. Since I don’t want to loose them, and they might prove useful to others, I’m reposting them on this blog. Making Grails work behind an NTLM firewall (or using Grails without Internet) Currently, I’m in the process of taking over an existing Grails project and migrating it to a different location. This location has been setup by me, so I have full control over it, except for one tiny detail: the Proxy Server. The application used to work great, and installing...
read moreFriday Repost: Preventing spam with Groovy and Grails
The Friday Repost series are copies from my earlier writings. Since I don’t want to loose them, and they might prove useful to others, I’m reposting them on this blog When I created the jworks.nl website in Grails, one of my requirements was to have a blog. Since the website is created in Grails, and the Grails application doesn’t integrate easily with a standard blogging solution like WordPress, I decided to create my own blogging solution. But, since this proved to be much more painful than initially anticipated, I...
read moreFriday Repost: Indexing documents with Tika and Grails
The Friday Repost series are copies from my earlier writings. Since I don’t want to loose them, and they might prove useful to others, I’m reposting them on this blog In one of the previous blogposts, I described a way to easily upload images by using Grails commands. This blogpost further builds on that, by providing a generic way to index uploaded documents. These documents can later be retrieved by using the search option provided by the Grails Search plugin. To index documents, we’re going to need two components: one of...
read moreGStringImpl cannot be cast to java.lang.String
Last week, we got a nasty error in our application: java.lang.ClassCastException: org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String The stacktrace was not helpful at all, and showed that the error was caused by a NullPointerException in Melody, which was a false message. After some searching around, we found the following code to be the culprit: render(view: 'index', model: ["${command.class.simpleName}": command) What happens here, is that a GString is used as a map key for rendering the model in the view....
read moreOur Grails Stats: but what are yours?
We’re currently working on a Grails project for over a year now, with, on average, around 8 people including testers. I thought it would be nice to share our project statistics, but I’m wondering how our statistics compare to yours. +----------------------+-------+-------+ | Name | Files | LOC | +----------------------+-------+-------+ | Controllers | 73 | 8394 | | Domain Classes | 122 | 4571 | | Jobs | 2 | 27 | | Services | ...
read more
Recent Comments