Category: Java
-
JPA / Hibernate and things I’ve learnt about the OrderColumn annotation
I’ve just spent the last two or three hours wondering why REST requests to my application have all been failing. The application in question is SpringBoot based (version 2.3.3, but I doubt that matters much) and is pretty simple with just a few domain objects. The error has been reporting itself as a “500 Internal…
-
Running a SpringBoot Application as a Windows Service
The best way (that I’ve found) to run a SpringBoot application as a Windows service is to use the WinSW wrapper which lets you run any executable as a service. It really is falling off a log simple to set up you just need to download the wrapper, rename the executable and create a short…
-
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…
-
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…
-
NetBeans and Tomcat – Transport Error 202
I generally develop any Java applications I’m working on in NetBeans and while I prefer to use GlassFish as a container I find myself using Tomcat quite a bit. Unfortunately the debugging connection between NetBeans and Tomcat can sometimes be less than perfect.
-
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…
-
Jenkins SonarQube Analysis SVN Blame Command
I’ve been setting up a Jenkins CI server for the last few days and I’m getting to the last few steps where I work out all the wrinkles and make everything play nicely together. The issue I’m fighting with at the moment I’m going to call SonarQube analysis SVN blame failure for the want of a…
-
SonarQube with Jenkins Configuration
Configuring SonarQube with Jenkins while running Maven builds sounds like it should be a breeze but, I at least, found myself scratching my head wondering how to make it work. I’d got SonarQube installed and running and I had Artifactory installed and ready to go. Jenkins was running builds fine but getting SonarQube with Jenkins working…
-
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.
-
Migrating from Nexus to Artifactory
I thought migrating from Nexus to Artifactory would be a seriously painful process but it actually turned out to be quite simple. My biggest concern was maintaining my release history as it would be impractical to try and move hundreds artefacts by hand. The article below describes the process I used.
-
Artifactory on Ubuntu 14.04
As part of a new continuous integration (CI) server build I need to install a Maven repository manager or software repository. After much debate I’ve decided to go with Artifactory on Ubuntu but the choice was not easy.
-
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…