-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
NullPointerException in Inflation.checkType() #655
Comments
I have the same error while compiling Spring Fu Graal sample webapp which works with RC5. Sadly this regression makes RC6 unusable for Spring webapps. Any chance to fix this on |
Thanks for reporting. We will fix this asap. Maybe we can use the Spring Fu Graal sample webapp in our regression testing - what is the license on the code? |
Sure feel free to do so, it is licensed under Apache. |
Spring Fu code base moves a lot, so I am not sure it will be easy for you to use it, but I will provide you tomorrow a minimal Boot sample project with current other issues workaround that you will be able to use easily for regression testing. |
OK, excellent, that would be great! |
Please find the repro project in https://github.com/sdeleuze/spring-boot-graal-demo, it is Apache 2 licensed. Notice this is not yet a typical Boot app because I can't use |
I have pushed a new commit that should avoid to hit #564 with GraalVM 1.0.0.RC5 |
@sdeleuze thank you! Update: this regression is only a problem for apps that have incomplete class paths. I am working on it but a proper solution will take more time. Once this is fixed I will add your example app to our internal gate. |
Do you know what is the missing dependency in this case (this is not obvious from the error message)? |
@sdeleuze for the original issue reported by @dsyer the problem is in
This is reached via:
We get the same (I haven't looked in the Spring Fu failure yet.) |
I have been able to work around this with AspectJ. You can weave an aspect at runtime into the Graal native image generator that catches the exception and swallows it. It's the same issue in Fu and the same workaround would work. IMO this needs to be fixed here though. |
@dsyer yes, we plan to fully support apps with incomplete class paths as it looks like major Java frameworks use this approach. It just proves to be more difficult than we initially thought. |
This issue is solved by |
This happens on native image generation with rc6 (but not rc5):
Source code with README: https://github.com/dsyer/spring-boot-micro-apps (master branch,
BuncApplication
main class).The text was updated successfully, but these errors were encountered: