We noticed that you applied following code in applyLicenseFromFile method:
if(lic.isValidLicense()){
System.out.println("License is validated");
}
But this message (License is validated) never appears in your console. Make sure you have a valid license and it is applied properly.
We also get null pointer exception when license is not properly loaded or applied.