com.vaadin.flow.server.ExecutionFailedException: PWA icons generation failed

Suddenly I have a strange behaviour

Jmix version: 2.5.0
Jmix Studio Plugin Version: 2.5.NIGHTLY1473-243
IntelliJ version: IntelliJ IDEA 2024.3.4 (Ultimate Edition)

From the IDE i can start and compile the project.

If I want to build the productive jar with

./gradlew -Pvaadin.productionMode=true bootJar

I get

> Task :vaadinBuildFrontend FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':vaadinBuildFrontend'.
> com.vaadin.flow.server.ExecutionFailedException: PWA icons generation failed

How is this possible ?

I am also getting this error in latest plugin and jmix version 2.5. Error came after installing multitab and lessage template addon.

Hi @f.zehnder

This error is very similar to the exception described in Vaadin GitHub issue.

Jmix 2.5 uses Vaadin 24.6.3 version.

As you can find in the comment it is possible execute the Gradle command with the --no-build-cache flag and it should work.

So the result command will be the following:

./gradlew -Pvaadin.productionMode=true bootJar --no-build-cache

Regards,
Maria.

Hi Maria

Thank you for this information.

I did try with
./gradlew -Pvaadin.productionMode=true bootJar --no-build-cache --info

So I saw the information

Build cache is disabled

And after the third try, it did work …

And another try did not work anymore ;/

Even I delete the .gradle and gradle directory; same result !

Will try to figure out more.

Regards

Felix

For making War

./gradlew “-Pvaadin.productionMode=true” bootWar --no-build-cache
./gradlew “-Pvaadin.productionMode=true” --no-build-cache bootWar
Both works sometime and fail with same error sometime

PS D:\jmixflow\sheelonline> ./gradlew "-Pvaadin.productionMode=true" --no-build-cache bootWar                                                                           

[Incubating] Problems report is available at: file:///D:/jmixflow/sheelonline/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.12.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 15s
8 actionable tasks: 5 executed, 3 up-to-date
PS D:\jmixflow\sheelonline> ./gradlew "-Pvaadin.productionMode=true" --no-build-cache bootWar
> Task :vaadinBuildFrontend FAILED

[Incubating] Problems report is available at: file:///D:/jmixflow/sheelonline/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':vaadinBuildFrontend'.
> com.vaadin.flow.server.ExecutionFailedException: PWA icons generation failed

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.12.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 4s
6 actionable tasks: 4 executed, 2 up-to-date

I run same command two times, onetime it is successful and other time failed.

This seems to be a real issue and not solved !

I try to find a solution, but it seems to me, you will run in trouble here …

Regards

Felix

On my machine it did run now 10 times after adding the following line to

gradle.properties

org.gradle.jvmargs=-Xmx1024M

2 Likes

Its working for me.

Thanks @f.zehnder

1 Like