Skip to content
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

Method too large: io/quarkus/rest/runtime/__QuarkusInit.init #45718

Open
Conosci opened this issue Jan 20, 2025 · 2 comments
Open

Method too large: io/quarkus/rest/runtime/__QuarkusInit.init #45718

Conosci opened this issue Jan 20, 2025 · 2 comments
Labels
area/rest env/windows Impacts Windows machines kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.

Comments

@Conosci
Copy link

Conosci commented Jan 20, 2025

Describe the bug

Quarkus application implementing many Rest services with many query params fails to start with the following error:

Caused by: org.objectweb.asm.MethodTooLargeException: Method too large: io/quarkus/rest/runtime/__QuarkusInit.init (Lorg/jboss/resteasy/reactive/server/core/Deployment;)V
	at org.objectweb.asm.MethodWriter.computeMethodInfoSize(MethodWriter.java:2088)
	at org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:512)
	at io.quarkus.gizmo.ClassCreator.writeTo(ClassCreator.java:246)
	at io.quarkus.gizmo.ClassCreator.close(ClassCreator.java:257)
	at io.quarkus.resteasy.reactive.server.deployment.ResteasyReactiveProcessor.setupEndpoints(ResteasyReactiveProcessor.java:736)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
	at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
	at java.base/java.lang.Thread.run(Thread.java:842)
	at org.jboss.threads.JBossThread.run(JBossThread.java:483)

Expected behavior

Application should start normally. The same application works reducing the number of rest services or query params.

Actual behavior

Failed to start with the error:

org.objectweb.asm.MethodTooLargeException: Method too large: io/quarkus/rest/runtime/__QuarkusInit.init

How to Reproduce?

Create an application with many rest services and query params.

Output of uname -a or ver

Microsoft Windows 10 Pro

Output of java -version

java version "17.0.11" 2024-04-16 LTS

Quarkus version or git rev

3.15.2

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.6

Additional information

No response

@Conosci Conosci added the kind/bug Something isn't working label Jan 20, 2025
@quarkus-bot quarkus-bot bot added env/windows Impacts Windows machines triage/needs-triage labels Jan 20, 2025
Copy link

quarkus-bot bot commented Jan 20, 2025

/cc @FroMage (rest), @geoand (rest), @stuartwdouglas (rest)

@geoand
Copy link
Contributor

geoand commented Jan 20, 2025

This is really weird.

Can you please attach a sample project that we can use to trigger the problem?

Thanks

@geoand geoand added the triage/needs-reproducer We are waiting for a reproducer. label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest env/windows Impacts Windows machines kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.
Projects
None yet
Development

No branches or pull requests

3 participants