logoutButton print white label error

Hey there,

I am facing a problem where i click log out button in the MainScreen, White Label Error will display with unexpected error (type=Internal Server Error, status=500). i had tried using App.getInstance().logout() and AppUI.getCurrent().getApp().logout() but same error occurs. Any ideas/work a round can share with me casue i am running out of ideas to solve this.

this error occur before i upgrading to jmix 1.5.1.

image

Hello Amir!

Could you check logs in the console? I think there should be a stacktrace with an exception. If so, could you share the stacktrace?

I’ve tried to reproduce the problem in new project with 1.5.0 and 1.5.1 but without success.

Hello Roman,

Thanks for the reply, unfortunately, i could not reproduce any Stacktrace as it doesn’t print any error/logs in my console, but I manage to work around to solve this but not pretty sure it is a good practise or not.

here are the example/workaround i share with you
image

Could you please reproduce the problem in a small demo project and share it? The clear Jmix project does not show this exception.

To correctly perform logging out, you should use the following code:

protected void logout() {
    AppUI ui = ((AppUI) component.getUI());
    ui.getApp().logout();
}

AppUI#logout() tries to close all screens, clear settings cache, etc.

hello
I have a problem to solve, how can I solve it I’m trying to work with mysql, please someone help me?

/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home/bin/java liquibase.integration.commandline.Main --driver com.mysql.cj.jdbc.Driver --changeLogFile com/company/appbackend/liquibase/changelog.xml --url jdbc:mysql://localhost:3306/fzsbackend?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false --username root --password 12345678 --logLevel INFO update
[2023-07-01 12:55:41] INFO [liquibase.integration] No Liquibase Pro license key supplied. Please set liquibaseProLicenseKey on command line or in liquibase.properties to use Liquibase Pro features.
Liquibase Community 4.11.0 by Liquibase
####################################################

_ _ _ _

| | () () |

| | _ __ _ _ _ | |_ __ _ ___ ___

| | | |/ _ | | | | | '_ \ / _ / __|/ _ \

| || | (| | || | | |) | (| _ \ __/

_/|_, |_,||./ _,|/__|

| |

|_|

Get documentation at docs.liquibase.com

Get certified courses at learn.liquibase.com

Free schema change activity reports at

https://hub.liquibase.com

####################################################
Starting Liquibase at 12:55:41 (version 4.11.0 #2708 built at 2022-05-23 15:17+0000)
Unexpected error running Liquibase: java.lang.RuntimeException: Cannot find database driver: com.mysql.cj.jdbc.Driver
For more information, please use the --logLevel flag
[2023-07-01 12:55:41] SEVERE [liquibase.integration] Unexpected error running Liquibase: java.lang.RuntimeException: Cannot find database driver: com.mysql.cj.jdbc.Driver
liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: com.mysql.cj.jdbc.Driver
at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:138)
at liquibase.integration.commandline.Main.doMigration(Main.java:1516)
at liquibase.integration.commandline.Main$1.lambda$run$0(Main.java:398)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.integration.commandline.Main$1.run(Main.java:397)
at liquibase.integration.commandline.Main$1.run(Main.java:221)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:165)
at liquibase.integration.commandline.Main.run(Main.java:221)
at liquibase.integration.commandline.Main.main(Main.java:164)
Caused by: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: com.mysql.cj.jdbc.Driver
at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:217)
at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:176)
at liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:141)
at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:92)
… 12 more
Caused by: java.lang.RuntimeException: Cannot find database driver: com.mysql.cj.jdbc.Driver
at liquibase.database.DatabaseFactory.loadDriver(DatabaseFactory.java:272)
at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:201)
… 15 more
Ekran Resmi 2023-07-01 13.45.26