Upgrade fails on inserting lookup with java.lang.ArrayIndexOutOfBoundsException