Script Must Not be Null or Empty

I’ve just started learning Spring / Spring Boot so I’m at that stage where I’m making all the stupid beginner mistakes. In the past I used to catalogue the problems I hit, especially when learning a new technology. A few people told me they found it really useful so I’ve decided to start again. This particular issue I ran up against didn’t take long to figure out but the message on the exception isn’t as clear as it could be so I thought it was worth documenting.

Continue reading

Fastest Updates in SQL Server

The project I’m working on at the moment requires me to achieve the fastest updates I can into a moderate sized SQL Server database table. My initial attempts were adequate for the testing I was doing on my development machine but when I came to do a more thorough test in a production like environment I found that the method I was employing wasn’t even close to fast enough. At that point I seriously considered just giving up, the difference between what I had and what I needed didn’t look like an “I’ll give it a tweak” type problem it was a vast performance gulf that had to be crossed. The solution was to better understand both my application and SQL Server and here’s what I did.Continue reading

Pinyin causing Glassfish and Jetty to Fail

For as long as I can remember I’ve been hitting a bug when I start one of my web applications under GlassFish. The error message is about an ArrayIndexOutOfBounds exception and is related to Pinyin. I’ve looked for a solution a few times but never found an answer that worked. It seems to be one of those issues that a lot of people think they have found a solution for but none of them work. As far as I could tell the problem was not fatal to the application so I gave up looking but it has always worried me a little.

Continue reading

SonarQube Logo

SonarQube on Ubuntu 14.04

SonarQube (previously just Sonar) is an open source code quality tool. In this short series of articles I’ll be installing and configuring SonarQube on Ubuntu 14.04. Installing SonarQube on Ubuntu is just part of a wider continuous integration (CI) server build that I’ve been performing. Previous articles include installing Artifactory and Java 8.Continue reading

Java 8 on Ubuntu 14.04

Getting Java 8 on Ubuntu 14.04 is a topic that is very hotly debated (1, 2, 3, etc, etc) but it looks like this important piece of software won’t officially make it into Ubuntu 14.04 in any time frame that is useful – I’m writing this May 2015, OpenJDK 8 was released March 2014 and it doesn’t look any closer to being included now than it did then.Continue reading