IllegalArgumentException: There is no facet for XML tag dynamicAttributes

Jmix version: 1.2.1
Jmix Studio plugin version: 1.2.0-213
IntelliJ IDEA 2021.3.2 CE - Build #IC-213.6777.52, built on January 28, 2022
Runtime version: 11.0.13+7-b1751.25 x86_64
Operating System: macOS 12.2.1 (21D62)
File System: Case-Sensitive Journaled HFS+ (APFS)
Datebase: PostgreSQL 13

Hello Everyone

For your information, if I comment out the following line in build.gradle as follows:

// implementation "io.jmix.cuba:jmix-cuba-starter"

I immediately receive the following exception when trying to access my MainScreen for the first time…

2022-03-14 18:06:22.540 ERROR 55199 — [nio-8080-exec-1] io.jmix.ui.AppUI : Unable to init ui

java.lang.IllegalArgumentException: There is no facet for XML tag dynamicAttributes
at io.jmix.ui.xml.FacetLoader.load(FacetLoader.java:55) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.xml.layout.loader.WindowLoader.loadFacets(WindowLoader.java:202) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.xml.layout.loader.WindowLoader.loadComponent(WindowLoader.java:90) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.sys.ScreensImpl.loadWindowFromXml(ScreensImpl.java:319) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.sys.ScreensImpl.createScreen(ScreensImpl.java:204) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.sys.ScreensImpl.create(ScreensImpl.java:145) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.Screens.create(Screens.java:68) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.App.createTopLevelWindow(App.java:265) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.JmixApp.initializeUi(JmixApp.java:93) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.JmixApp.loginOnStart(JmixApp.java:43) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.AppUI.setupUI(AppUI.java:385) ~[jmix-ui-1.2.0.jar:na]
at io.jmix.ui.AppUI.init(AppUI.java:271) ~[jmix-ui-1.2.0.jar:na]
at com.vaadin.ui.UI.doInit(UI.java:771) ~[vaadin-server-8.14.1-1-jmix.jar:8.14.1-1-jmix]
at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:209) ~[vaadin-server-8.14.1-1-jmix.jar:8.14.1-1-jmix]
at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:67) ~[vaadin-server-8.14.1-1-jmix.jar:8.14.1-1-jmix]

My main-screen.xml begins with…

<window xmlns="http://jmix.io/schema/ui/window" xmlns:dynattr="http://jmix.io/schema/dynattr/ui"
        caption="msg://application.caption">
    <layout>

and ends with…

</layout>
<facets>
    <dynattr:dynamicAttributes/>
</facets>
</window>

Is there anything that I can possibly do to temporarily resolve this problem without reinstatng the jmix-cuba-starter or editing my main-screen.xml?

Thanks in advance for your feedback.

Best regards
Chris

Hello Everyone

I solved this by installing the “Dynamic Attributes” add-on from the Marketplace. I was not aware of this before and missed it in the documentation. Sorry.

Best regards
Chris