The m2e connectors mess
I am using Spring Source Toolsuite as my favorite Eclipse distribution for about two years now and I am very happy with it. It contains most of the plugins I use prepacked and it easy to install the rest via the provided extension list: grails, groovy, m2e, egit, subversive, mylyn …
With versions 2.8.0 STS …
JDBC connection to SQL Server 2008 hangs because of JDK 1.6 u29
Normally I use MySQL on Mac OS X for developing our timr tracking application timr.com, but some enterprise customers are using it with SQL Server so I have to test it on that database to.
Last week I took it for another spin and found that I was not able to connect to the SQL …
Microsoft Exchange Server messes up multipart alternative messages
For our product timr we are currently implementing new HTML email templates for sending registration mails and other information. The application is based using the Spring Framework and we use Velocity templates for creating the emails.
I put a lot of time into making sure that the emails are displayed correct in as many email …
Tomcat classloader
I am using Tomcat for deploying my Java Web and Web Service applications for over 10 years now (yes, since the early 3.x versions). In the early days mostly for Struts applications and today for applications based on the Spring Framework (Spring MVC, Spring WebServices, Grails, …). In many of the projects I am …
Hibernate schema update does not create database indices
In one of my Grails consulting projects we tried to define database indices via the static mapping element in the domain classes. A team member tried it an told me that this does not work so I digged a bit deeper to find out what the problem was.
I created a simple test project, configured …
Java .properties files and native2ascii
In one of our project we lately had some issues with our resource bundle .properties files because not every developer in the team was aware about the specifications of .properties files – http://en.wikipedia.org/wiki/.properties provides quite a good overview.
The most important thing to keep in mind is:
The encoding of a .properties file is ISO-8859-1, also …
Using Spring Batch in Grails applications
In one of my grails projects we are using Spring Batch for processing huge amounts of data. We are processing 100000 database entries in one run. When using HibernatePagingItemReader or HibernateCursorItemReader we ran into OutOfMemory errors.
Using the Eclipse Memory Analyzer I quickly found the reason for this behavior. When starting the Spring Batch …
MySQL Row size too large
Lately a customer I am helping to build a Grails application had an issue with creating tables in MySQL. They got the following error message when Hibernate tried to create the tables for their domain model:
Column length too big for column ‘text’ (max = 21845); use BLOB or TEXT instead
The reason was that the …
YUI File Upload
Today I implemented a file upload dialog for a Spring MVC application using Apache commons fileupload on the server side and YUI on the client side. Everything worked nice as described in the Spring reference – only the response from the server was not handled by the upload handler method defined in the callback …
Splitting Spring configuration in Grails applications
My colleague Andre wrote an interesting post about this topic already and I have to do a follow up. In one of our projects we followed the assumptions Andre made and we found out that there are some things you might be careful not to stumble over them.
First when experimenting with Spring bean configurations …


