Seems that len, wid, hei all point to null. You haven't created your scanners. And than you try to perform mathematical operations on that scanners or print them out, which is incorrect... You have...