Hi,
I have a dashboard screen which extends com.haulmont.cuba.gui.screen.Screen
that I open upon login. I do this by extending the com.haulmont.cuba.web.app.main.MainScreen
in the following way:
@UiController("main")
@UiDescriptor("ext-top-main-screen.xml")
public class ExtTopMainScreen extends MainScreen {
@Subscribe
public void onAfterShow(AfterShowEvent event) {
Screen dashboardScreen = screens.create(DashboardScreen.class);
screens.show(dashboardScreen);
}
The problem is that any exceptions thrown in either my extended MainScreen’s onAfterShow
, or within the Dashboard initialization is not shown. This is quite a big deal since the dashboard initialization is not trivial and can very much involve bugs, making it impossible to debug in production, since no error or stacktrace is ever logged. Any ideas as to why this is the case? The error is being caught somehow, because the error window is shown to the user in the event of an exception when logging in, but again, nothing is being logged.