Failed to build quarkus application:

1,899 views
Skip to first unread message

Selvaraj chennappan

unread,
Jun 22, 2022, 10:29:45 AM6/22/22
to Quarkus Development mailing list
using quarkus-maven-plugin:2.10.0.Final

Could you please help to stop building transformed-bytecode.jar
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.10.0.Final:build (default) on project document-management-service: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step io.quarkus.deployment.pkg.steps.JarResultBuildStep#buildRunnerJar threw an exception: java.lang.IllegalStateException: java.io.IOException: Failed to create a new filesystem for \target\quarkus-app\quarkus\transformed-bytecode.jar
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:953)
[ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR]         at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
[ERROR]         at java.base/java.lang.Thread.run(Thread.java:834)
[ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] Caused by: java.io.IOException: Failed to create a new filesystem for \target\quarkus-app\quarkus\transformed-bytecode.jar
[ERROR]         at io.quarkus.fs.util.ZipUtils.newZip(ZipUtils.java:133)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildThinJar(JarResultBuildStep.java:611)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildRunnerJar(JarResultBuildStep.java:218)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:944)
[ERROR]         ... 6 more
[ERROR] Caused by: java.nio.file.FileSystemException: \target\quarkus-app\quarkus\transformed-bytecode.jar: Operation did not complete successfully because the file contains a virus or potentially unwanted software.
[ERROR]
[ERROR]         at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
[ERROR]         at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[ERROR]         at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[ERROR]         at java.base/sun.nio.fs.WindowsFileSystemProvider.checkReadAccess(WindowsFileSystemProvider.java:343)
[ERROR]         at java.base/sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:367)
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:108)
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:106)
[ERROR]         at io.quarkus.fs.util.ZipUtils.newZip(ZipUtils.java:130)
[ERROR]         ... 13 more























Georgios Andrianakis

unread,
Jun 22, 2022, 11:44:52 AM6/22/22
to selvarajc...@gmail.com, Quarkus Development mailing list
This seems like an issue with an overzealous virus scanning software.

You can't turn off the creation of that jar when using fast-jar.

You can try however to create the legacy-jar or the uber-jar

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/b6a37ac1-7744-4483-be51-ae4820d0e81bn%40googlegroups.com.

Selvaraj chennappan

unread,
Jun 22, 2022, 12:22:38 PM6/22/22
to Georgios Andrianakis, Quarkus Development mailing list
Thanks Georgios.
want to create uber jar
Tried mvnw package -Dquarkus.package.type=uber-jar 
Failed with the same exception 
target\document-management-service-1.0.0-SNAPSHOT-runner.jar: Operation did not complete successfully because the file contains a virus or potentially unwanted software.
[ERROR] Caused by: java.nio.file.FileSystemException: target\document-management-service-1.0.0-SNAPSHOT-runner.jar: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

[ERROR]
[ERROR]         at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
[ERROR]         at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[ERROR]         at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[ERROR]         at java.base/sun.nio.fs.WindowsFileSystemProvider.checkReadAccess(WindowsFileSystemProvider.java:343)
[ERROR]         at java.base/sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:367)
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:108)
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:106)
[ERROR]         at io.quarkus.fs.util.ZipUtils.newZip(ZipUtils.java:130)
[ERROR]         ... 14 more
--





Regards,
Selvaraj C

Georgios Andrianakis

unread,
Jun 22, 2022, 12:26:51 PM6/22/22
to Selvaraj chennappan, Quarkus Development mailing list
We'll, in that case you'll have to turn off (or tune) your antivirus software 

Selvaraj chennappan

unread,
Jun 22, 2022, 12:39:47 PM6/22/22
to Georgios Andrianakis, Quarkus Development mailing list
Developers won't have permission to turn off (or tune)  antivirus software in office laptops and our security team is also not ready to disable it.

We have spring boot microservices and dont have this problem there.

Is there any way, really, we don't want to go away from quarkus ? 

otherwise will completely rework what we had developed using quarkus . 

--





Regards,
Selvaraj C

Alexey Loubyansky

unread,
Jun 22, 2022, 12:49:06 PM6/22/22
to selvarajc...@gmail.com, Georgios Andrianakis, Quarkus Development mailing list
It fails on creating a new archive. Does "mvnw clean package" make any difference?

Selvaraj chennappan

unread,
Jun 22, 2022, 12:51:55 PM6/22/22
to Alexey Loubyansky, Georgios Andrianakis, Quarkus Development mailing list
No. Same issue .

quarkus-app\quarkus\transformed-bytecode.jar
[ERROR]         at io.quarkus.fs.util.ZipUtils.newZip(ZipUtils.java:133)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildThinJar(JarResultBuildStep.java:611)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildRunnerJar(JarResultBuildStep.java:218)
--





Regards,
Selvaraj C

Alexey Loubyansky

unread,
Jun 22, 2022, 12:55:03 PM6/22/22
to Selvaraj chennappan, Georgios Andrianakis, Quarkus Development mailing list
Sorry to hear that. Would you be able to build and test a custom branch of Quarkus with a potential patch?

Selvaraj chennappan

unread,
Jun 22, 2022, 12:57:18 PM6/22/22
to Alexey Loubyansky, Georgios Andrianakis, Quarkus Development mailing list
No, sorry. 
--





Regards,
Selvaraj C

Alexey Loubyansky

unread,
Jun 22, 2022, 1:00:50 PM6/22/22
to Selvaraj chennappan, Georgios Andrianakis, Quarkus Development mailing list
Could you tell us more about your environment for the purpose of reproducing the issue? Windows version, antivirus software, other relevant info?

Alexey Loubyansky

unread,
Jun 22, 2022, 1:04:22 PM6/22/22
to Selvaraj chennappan, Georgios Andrianakis, Quarkus Development mailing list
As an alternative, would you be able to enable https://s01.oss.sonatype.org/content/repositories/snapshots as a snapshot Maven repository in your configuration and change the Quarkus BOM version to io.quarkus:quarkus-bom:999-SNAPSHOT for testing purposes?

Alexey Loubyansky

unread,
Jun 22, 2022, 1:19:46 PM6/22/22
to Selvaraj chennappan, Georgios Andrianakis, Quarkus Development mailing list
I have two suspicions.
We use some optimizations to create a new JAR FileSystem. Potentially there could be an issue there, although we haven’t heard of this issue before and we know a lot of quarkus users are using Windows.
The other one is kind of stupid - it’s the file name - transformed-bytecode.jar, which could look suspicious to a very picky antivirus.

Selvaraj chennappan

unread,
Jun 22, 2022, 1:21:21 PM6/22/22
to Alexey Loubyansky, Georgios Andrianakis, Quarkus Development mailing list
Edition : Windows 10 Enterprise
Version : 21H2
Experience : Windows Feature Experience Pack 120.2212.4180.0


Windows defender
--





Regards,
Selvaraj C

Selvaraj chennappan

unread,
Jun 22, 2022, 1:22:57 PM6/22/22
to Alexey Loubyansky, Georgios Andrianakis, Quarkus Development mailing list
tried with  https://s01.oss.sonatype.org/content/repositories/snapshots as a snapshot Maven repository 
same issue 

transformed-bytecode.jar: Operation did not complete successfully because the file contains a virus or potentially unwanted software.
[ERROR]
[ERROR]         at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
--





Regards,
Selvaraj C

Alexey Loubyansky

unread,
Jun 22, 2022, 1:26:17 PM6/22/22
to selvarajc...@gmail.com, Georgios Andrianakis, Quarkus Development mailing list
Sure, I haven’t yet changed anything in there for you to try but great that you can give it a try. I’ll try to commit something for you to try and once it’s synched (daily) I’ll let you know and you could test it. Will that work for you?

Alexey Loubyansky

unread,
Jun 22, 2022, 1:31:46 PM6/22/22
to Selvaraj chennappan, Postre mus, Georgios Andrianakis, Quarkus Development mailing list
Martin, is this something you could test too?

Selvaraj chennappan

unread,
Jun 22, 2022, 1:53:33 PM6/22/22
to Alexey Loubyansky, Georgios Andrianakis, Quarkus Development mailing list
I will try. However this won't be a strategic solution .
all the quarkus microservices are blocked due to this issue .
perhaps will enable not to use this framework for any further development  and might refactor current quarkus microservices .

--





Regards,
Selvaraj C

Alexey Loubyansky

unread,
Jun 22, 2022, 2:10:13 PM6/22/22
to Selvaraj chennappan, Georgios Andrianakis, Quarkus Development mailing list
Of course, using snapshots for production isn’t a recommendation.
Actually, I’ll create a very simple project later today for you that will be creating a new empty JAR file in a couple of different ways to see what works in your environment. That will be easier to identify the issue and apply a proper patch.

Selvaraj chennappan

unread,
Jun 22, 2022, 2:15:18 PM6/22/22
to Alexey Loubyansky, Georgios Andrianakis, Quarkus Development mailing list
Sounds good, thanks!
--





Regards,
Selvaraj C

Alexey Loubyansky

unread,
Jun 22, 2022, 3:21:52 PM6/22/22
to Selvaraj chennappan, Georgios Andrianakis, Quarkus Development mailing list
Great, let's give it a try.

git clone g...@github.com:aloubyansky/playground.git
cd playground
git checkout jar-creation-issue
mvnw clean test

It will run https://github.com/aloubyansky/playground/blob/jar-creation-issue/src/test/java/org/acme/JarCreationTest.java that will try creating a few JARs. Quarkus is using the ZipUtils API, which seems to be failing in your env for some reason. Let's try to narrow down the issue. Thanks!

Georgios Andrianakis

unread,
Jun 23, 2022, 3:44:07 AM6/23/22
to Alexey Loubyansky, Selvaraj chennappan, Quarkus Development mailing list
Also, it would be great to know if the antivirus logs indicate why the call is being blocked

Selvaraj chennappan

unread,
Jun 23, 2022, 4:04:01 AM6/23/22
to Georgios Andrianakis, Alexey Loubyansky, Quarkus Development mailing list
complete stacktrace had been provided in the first email ..
Could you please let me know what exactly you need ?
--





Regards,
Selvaraj C

Georgios Andrianakis

unread,
Jun 23, 2022, 4:05:41 AM6/23/22
to Selvaraj chennappan, Alexey Loubyansky, Quarkus Development mailing list
The stacktrace yes, you've added and it's clear the antivirus does not like what is going on.
My ask is whether you have the logs of the antivirus itself and whether they provide any hints as to why the operation was blocked

Selvaraj chennappan

unread,
Jun 23, 2022, 4:07:33 AM6/23/22
to Georgios Andrianakis, Alexey Loubyansky, Quarkus Development mailing list
Sorry, i dont have the logs of the antivirus
--





Regards,
Selvaraj C

Max Rydahl Andersen

unread,
Jun 23, 2022, 8:08:29 AM6/23/22
to Selvaraj chennappan, Georgios Andrianakis, Alexey Loubyansky, Quarkus Development mailing list
On 23 Jun 2022, at 10:07, Selvaraj chennappan wrote:

> Sorry, i dont have the logs of the antivirus

We would like to help you on this but without knowing what your company specific
antivirus configuration is setup with we are shooting in the dark here.

These are jars with java byte code in it - at any time windows defender configured
to be really picky can fail - including spring boot etc.

Thus would be great if you could work with your security organization and get
more info on what exactly gets detected.

Thank you,
/max
>>>>>>>>>>>>>>>>>>> *Failed with the same exception *
>>>>>>>>>>>>>>>>>>>>> <https://groups.google.com/d/msgid/quarkus-dev/b6a37ac1-7744-4483-be51-ae4820d0e81bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>>>>>>>>>>>> .
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>>>> Selvaraj C
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>> Selvaraj C
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>>>>>>> Google Groups "Quarkus Development mailing list" group.
>>>>>>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails
>>>>>>>>>>>>>>>>> from it, send an email to
>>>>>>>>>>>>>>>>> quarkus-dev...@googlegroups.com.
>>>>>>>>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>>>>>>>>> https://groups.google.com/d/msgid/quarkus-dev/CAOSskN7fkWBiRfKjwLd_pMUpvEsYo-gwht4fmR2BR%3DGU-hUrbQ%40mail.gmail.com
>>>>>>>>>>>>>>>>> <https://groups.google.com/d/msgid/quarkus-dev/CAOSskN7fkWBiRfKjwLd_pMUpvEsYo-gwht4fmR2BR%3DGU-hUrbQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>>>>>>>> .
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>> Selvaraj C
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>> Selvaraj C
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Selvaraj C
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>> Groups "Quarkus Development mailing list" group.
>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>>> send an email to quarkus-dev...@googlegroups.com.
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/quarkus-dev/CAOSskN7akKgginuMQQnVyUFh8RY6qc1j9GsSD1Da8dRgkgtxwQ%40mail.gmail.com
>>>>>>>>>> <https://groups.google.com/d/msgid/quarkus-dev/CAOSskN7akKgginuMQQnVyUFh8RY6qc1j9GsSD1Da8dRgkgtxwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>>> .
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Selvaraj C
>>>>>>>>
>>>>>>> --
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Selvaraj C
>>>>>>
>>>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>>
>>> Regards,
>>> Selvaraj C
>>>
>>
>
> --
>
>
>
>
>
> Regards,
> Selvaraj C
>
> --
> You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAOSskN7ARTyq8yjf8Zru077b3dZp7JHBbE%3DaFEeKdmUC1hjZ9w%40mail.gmail.com.

/max
https://xam.dk/about

Selvaraj chennappan

unread,
Jun 23, 2022, 10:22:40 AM6/23/22
to Max Rydahl Andersen, Georgios Andrianakis, Alexey Loubyansky, Quarkus Development mailing list
Unable to get the details of the antivirus configuration setup.
However , except for the quarkus mvn package/build rest all[Sprint boot,other maven projects and gradle projects] are generating jar without any issue..
--





Regards,
Selvaraj C

Alexey Loubyansky

unread,
Jun 23, 2022, 10:38:27 AM6/23/22
to Selvaraj chennappan, Max Rydahl Andersen, Georgios Andrianakis, Quarkus Development mailing list
Have you had a chance to run the jar creation tests I linked earlier? That could help figure it out too.
Reply all
Reply to author
Forward
0 new messages