I am using the following code to read a properties file:
Properties pro = new Properties();
InputStream is = Thread.currentThread().getContextClassLoader().
In my situatioan I get NullPointerException in this code
LogManager.getLogManager()
.readConfiguration(MyClass.class.getResourceAsStream("config/logging.properties"));
I changed
LogManager.getLogManager().readConfiguration(AzLotteryTerm.class.getClassLoader().getResourceAsStream("config/logging.properties"));
and now works ok!