NPE when generating App component descriptor


My project’s layout (simple directory, git repository, hasn’t CUBA project as root):
– Cuba project 1
– custom_modules
– -- Cuba project 2
– -- Cuba project 3
– distrib/
– -- Cuba project 4

In this example, when build.gradle of CUBA project 2 or 3 is loaded in IntelliJ via “Link project”, all is fine (clean/build/deploy/execution …) but generating App component descriptor. CUBA studio plugin search build.gradle at root, not in subdirectory.

java.lang.Throwable: CUBA Plugin not initialized! /home/kerain/src/stadiam-refacto/build.gradle file not found.
at com.intellij.openapi.diagnostic.Logger.error(


Best regards, Stef.

CUBA Platform version: 7.2.15
CUBA Studio plugin version: 15.6-211
IntelliJ version: IntelliJ IDEA 2021.2.2 (Ultimate Edition)

Is this regular behavior ?

We didn’t test such project layout.
App component descriptor is quite a simple thing, you can easily write one by hand using an example from another project.


Thank you for your response.

I have already tested manual creation of App component descriptor but the plugin doesn’t detect its presence (Install app component remains deactivated). How to install the project manually ? I doesn’t see any gradle task linked to.

Just run the following Gradle commands in the app component project root:

./gradlew --stop
./gradlew install
1 Like