Fix readException for Java 1.5, the ReflectiveOperationException is since Java 1.7.