-
Notifications
You must be signed in to change notification settings - Fork 107
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
NPE in AbstractJavaProjectConfigurator #1735
Comments
I'm also able to reproduce. Project import completely fails now. Version: 2024-06 (4.32) with m2e from https://download.eclipse.org/technology/m2e/releases/latest/ As @snjeza points out, at m2e-core/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java Line 128 in 2756a6f
getComplianceOptions() is called on the JRE-1.1 profile that is declared at https://github.com/eclipse-jdt/eclipse.jdt.debug/blob/7c57761f182f30e385b7c980f1f80390d75eadc2/org.eclipse.jdt.launching/plugin.xml#L281-L284 .
At https://github.com/eclipse-jdt/eclipse.jdt.debug/blob/master/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/environments/ExecutionEnvironment.java#L436 , since no path file is defined the code delegates to OSGI, and that profile is gone. It returns I've only seen this with m2e, but pretty much any client calling Once |
Thanks for this report. I also noticed this recently.
Shouldn't this error vanish completely automatically once eclipse-jdt/eclipse.jdt.debug#425 is available? Then m2e-core/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java Line 112 in 2756a6f
|
Yes, the error will be completely fixed by the JDT Debug PR. I guess the only concern for m2e is that static blocks like m2e-core/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java Line 111 in 2756a6f
ExceptionInitializationError , they'll just fail with ClassNotFoundException .
Update: Even simpler, |
Indeed, I was hit by the same problem (just got a
|
Steps to reproduce:
m2e throws NPE at AbstractJavaProjectConfigurator.java, line 128, and the project isn't configured correctly.
The issue is caused by eclipse-equinox/equinox#571
The text was updated successfully, but these errors were encountered: