Error while running an application

Hi Jmix Team Developers.

Recently I’ve been witnessing very weird bug while running my application. The error usually says:

A bean with that name has already been defined in file SOME_FILE.java and overriding is disabled.

Sometimes after adding a new member to my Jmix Enum, they compile fine, and app runs. The problem comes when the newly added enum gets USED in the app with an exception of incompatibleClassChangeError.

Cleaning the build files with gradle had no use until I removed .jmix folder and everything ran without any problems.

I suppose this’s Jmix’s internal error, and related to the logic written inside .jmix folder.

It’s annoying to see such errors getting up when you run your app every time.

Please spare some of your time, and look at this issue.

I’m using:

  • Mac
  • Intellij Idea 2024.2
  • Jmix version 2.4.4

Best regards
Otabek

My Jmix free trial ended recently, if that helps to debug

Hi,

Check that you start the app using dedicated Run configuration that clears hot-deployed files

Screenshot 2025-06-20 at 17.26.56

Unfortunately, hard to say without the full stacktrace what went wrong.

Regards,
Gleb

We need the exact class names and or a stack trace.

We can’t do anything with this message.

Maybe the class name already exists and you want to register it as a bean etc…