-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
MethodTooLargeException when too many classes to register for reflection #29693
Comments
The relevant build steps:
|
…ses to register for relection
…ses to register for relection
Should be fixed by #29694 |
In fact, you need to build the project first and I get |
@mkouba That's why I would like to write an integration to reproduce, it would be simpler. Any idea where I could add it? |
Try with |
Still requires camel 3.20.0-SNAPSHOT: |
It won't work anyway my bad because the migration to Camel 3.20 has not been done yet so you will get a build failure. That's why I need to write an IT |
@zakkak Great news, many thanks for your huge effort on this problem 🙏 |
You are welcome. Thank you for the great help! |
Describe the bug
For the project camel-quarkus, I'm working on an extension allowing to marshall and unmarshall SWIFT messages by leveraging the library https://github.com/prowide/prowide-iso20022.
The problem with this library is the fact that it contains more than 3 thousand classes that must be registered for reflection. With the current code, we end up with an error of type:
Expected behavior
No failure even with several thousands of classes to register for reflection
Actual behavior
We get a
MethodTooLargeException
when trying to get a native image.How to Reproduce?
1 . Checkout the branch
29693/fix-MethodTooLargeException-when-too-many-classes-to-register
of https://github.com/essobedo/beefy-scenarios2. Go to
024-quarkus-extension-with-many-classes-to-register
4. Execute the command
mvn clean install -Pnative
The pending PR is quarkus-qe/beefy-scenarios#324
Output of
uname -a
orver
Darwin LT-C02CP37VMD6R 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "11.0.17" 2022-10-18 OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 11.0.17+8-jvmci-22.3-b08) OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 11.0.17+8-jvmci-22.3-b08, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.15.0.CR1
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: