How to make Lighting Materials Transparent

when I remove this line
mat.setBoolean("UseMaterialColors", true);
it does not throw that exception anymore .