Writing TIFFPages fails when TIFF.TAG_STRIP_OFFSETS or TIFF.TAG_STRIP_BYTE_COUNTS are read as aniyhing other than long:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at com.twelvemonkeys.contrib.tiff.TIFFUtilities$TIFFPage.write(TIFFUtilities.java:330)