-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vaadinBuildFrontend irregularly failing with ZipException: ZipFile invalid LOC header (bad signature) #15458
Comments
This error usually indicates that jar is corrupted, i.e. something went wrong when downloading the jar from the repository. |
Which jar? a vaadin jar, another dependency? a jar build for another part of the project? |
which jars are affected by the workaround "stopping the gradle daemon"? |
It is really hard to say. It can be just random. I recall that m2e plugin in Eclipse had a bug, that caused random broken jars back in time, this could be something similar. |
Looks similar to vaadin/vaadin-gradle-plugin#116 and vaadin/vaadin-gradle-plugin#81 . It could also be that the dependency is not of type zip (i've seen projects pulling .dll/.so files as dependencies, causing this issue to appear), however the irregular nature of this ticket doesn't support this. It would help if Flow would log the name of the problematic .jar file; filed #15457 Meanwhile, can you please try the workaround from vaadin/vaadin-gradle-plugin#81 and try running gradle with Also, I can see that the ticket targets Vaadin 23.x. This repository is only for tickets targeting Vaadin 14.x. Could you please open a ticket at https://github.com/vaadin/flow/issues ? |
Anyway, this ticket targets Vaadin 23.x. @TatuLund can you transfer this ticket to https://github.com/vaadin/flow/issues ? Whoa, I can do it myself 👍 :-D |
There are no native dependencies that I am aware of. TestBench/Selenium is using chromedriver but not as a build dependency, I guess. As you've said, the irregular behaviour does not support this theory. Thanks for moving to the right repo. 👍 |
If you have Maven you can run
to verify all the dependencies used in the project. Not sure if there is something similar for Gradle. It does sound like you have a bad jar file somewhere |
To contribute to the original report, I experience the same general error. The stack trace looks the same, however I get a different message from gradle:
where [classname] is a classname of a class from our own source code. Stopping the daemon helps me as well. Desktop: MacOS 13.2, arm, openjdk 19.0.2, gradle 7.6, Vaadin 23.3.4 |
Thanks for chiming in! In the meantime we've figured the following
Where does the problem originate from? The gradle-vaadin-plugin? Kotlin compiler? Gradle daemon? ...? |
Run into same problem, Java Project (no kotlin) and the problematic class was a generated one using OpenAPI Generator Plugin
OS: macOS 14.6 Workaround: kill gradle daemon |
Hello everybody I run into the same problem multiple times. The problem seems to happen when I run The affected class is one in project e.g. (My repository is under The workaround of The problem could be in OS: macOS Sonoma 14.6.1 |
Desktop (please complete the following information):
Describe the bug
Running
./gradlew vaadinBuildFrontend
sometimes fails withZipException: ZipFile invalid LOC header (bad signature)
(Stacktrace1.txt).There are days without the bug, there are others where every
vaadinBuildFrontend
causes the error.Identified preconditions: The Bug only surfaces
Workaround
Stop the daemon using
./gradlew --stop
and run the task again.To Reproduce
Reproduction is not possible... it seems to be somewhat dependent on the changes made to the sources.
Expected behavior
successful frontend build
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: