I am having a problem with registration exceptions using the playback platform.
Suppose we have some runnable class RunnableClass that can be initialized in a global class and can be executed in the Executor service.
public class Global extends GlobalSettings {
@Override
public void beforeStart(Application app) {
Runnable runnableClass = new RunnableClass();
runnableClass.setSmth(new Smth());
ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(10);
scheduledExecutorService.scheduleAtFixedRate(runnableClass, 0, 1, TimeUnit.MINUTES);
}
}
Suppose we need to work with the Smth class in the run () method of RunnableClass.
private class RunnableClass implements Runnable {
private Smth smth;
public void setSmth(Smth smth) {
this.smth = smth;
}
@Override
public void run() {
smth.doSomething();
}
}
But for some reason we will not get a NullPointerExcception here or any other exception. Obviously, the stack trace of this exception will be logged at least for the console, but I canβt see anything in the console or in the application.log file.
My version of the game is 2.2.1, the sbt launcher version is 0.13.0, the application.conf file is the default.
:
http://www.playframework.com/documentation/2.0.x/SettingsLogger