EnvTool.getJournalQueriers() is throwing exception

“final Querier journal = EnvTool.getJournalQueriers()” is throwing “java.lang.IllegalStateException: Environment is null!” excettion.

Is there any configuration changes are required to use this or any other suggestion?