BIMserver-143 fix Java type setting in a number of classes and error handling