Change Password Dialog cannot be opened without username

Jmix version: 1.1.2
Jmix Studio plugin version: 1.1.4-213
IntelliJ IDEA 2021.3 CE - Build #IC-213.5744.223, built on November 27, 2021
Operating System: macOS 12.0.1 (21A559)
File System: Case-Sensitive Journaled HFS+ (APFS)
Datebase: PostgreSQL 13

Hi Everyone

#1. After my CUBA-to-Jmix migration I deleted my ext-change-password-dialog.xml screen and controller (originally generated from a legacy screen in CUBA Studio) and generated a new Jmix ext-change-password-dialog.xml screen and controller in Jmix Studio (below). The result is basically identical to the CUBA version.

But now I cannot open the dialog and receive the following exception…

java.lang.IllegalArgumentException: Dialog cannot be opened without username
at io.jmix.core.common.util.Preconditions.checkNotNullArgument(
at io.jmix.securityui.screen.changepassword.ChangePasswordDialog.onAfterShow(
at io.jmix.core.common.event.EventHub.publish(
at io.jmix.ui.screen.Screen.fireEvent(


 <?xml version="1.0" encoding="UTF-8" standalone="no"?>

<window xmlns=""
        <label value="msg://" ext:index="0"/>



import io.jmix.ui.screen.UiController;
import io.jmix.ui.screen.UiDescriptor;
import io.jmix.securityui.screen.changepassword.ChangePasswordDialog;

public class ExtChangePasswordDialog extends ChangePasswordDialog {

CALLING CODE (take from my CUBA code)

private void showChangePasswordDialog() {


This was not a problem in CUBA. What option(s) do I need to pass to screenBuilders for this? Other solution?

#2. Please also note… I added my own label to the dialog to display the required password format and when I moved it above the textFields in Studio, Studio automatically added the following line:


I assume, that this should be replaced by a Jmix reference. Any suggestions about this? Ignore it for now? Remove it?

Best regards

Sorry, I completely forgot to mention that the dialog is actually displayed after the error dialog is displayed. And after I enter the new password I receive the following error:

IllegalArgumentException: Null userName

#1. The dialog’s controller has with... setters:


#2. Created issue: Thanks for reporting it!

You can replace it with xmlns:ext="" (however it doesn’t affect the runtime).

Hi Konstantin

Thank you for the information and especially for pointing out my bad habit of not checking the options after the “build” method. I haven’t looked there once in the past 6 months; it wasn’t necessary.

I didn’t see this option listed with the others in the code completion (1st image below) and didn’t find it in the documentation and immediately thought that something was missing somewhere else. Therefore, I didn’t think to check after “build” (2nd image below).

My mistake; sorry for wasting your time!

Thanks for the other hint and the issue.

Best regards

Screenshot 2021-12-30 at 22.58.25 Uhr

Screenshot 2021-12-30 at 22.46.27 Uhr