-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Exception NoClassDefFoundError: com/sun/tools/javac/processing/JavacProcessingEnvironment with m2eclipse when build path changes #250
Comments
👤 sharedocs1 🕗 Jan 04, 2011 at 12:24 UTC What steps will reproduce the problem?
See the attached video "lombok-noclassdef.mp4". It shows first the sequence when running Eclipse without Lombok, then with Lombok (0.10.0-BETA). What is the expected output? What do you see instead? Should compile without problems. Instead, an error: Exception thrown while constructing Processor object: java.lang.NoClassDefFoundError: com/sun/tools/javac/processing/JavacProcessingEnvironment is returned. What version of the product are you using? On what operating system? OS: Vista SP2 x64 Please provide any additional information below. See eclipse-config.txt for my full Eclipse configuration, and log-error.txt for the message in the workspace log. |
👤 sharedocs1 🕗 Jan 04, 2011 at 12:24 UTC |
👤 sharedocs1 🕗 Jan 04, 2011 at 12:24 UTC |
👤 sharedocs1 🕗 Jan 04, 2011 at 12:24 UTC |
👤 sharedocs1 🕗 Jan 04, 2011 at 12:24 UTC |
👤 grootjans 🕗 Feb 07, 2011 at 19:25 UTC |
👤 r.spilker 🕗 Feb 07, 2011 at 21:51 UTC Hi Andrew, First of all, you've just been awarded the "Gold Trophy 2011" in the category "Most Complete Bug Reports". We've been able to reproduce the reported behavior. I do have a couple of questions and remarks though:
Roel |
👤 grootjans 🕗 Feb 07, 2011 at 22:37 UTC |
👤 sharedocs1 🕗 Feb 08, 2011 at 10:25 UTC
And it's only February! So I have almost a whole year to beat my own record ;-) On to your questions:
Agreed. As you suspected, this was just the first reliable "trigger" I could find. I normally see this after merging updates from a repo and then starting Eclipse. Obviously, this triggers a bunch of builds, and all I can assume is that the Maven plugin also checks or regenerates the build paths as part of this.
Haven't tried with other build paths. Again, this is not the normal scenario in which I see this. I wish I could find a way to reliably reproduce it in a more realistic scenario.
Indeed. In fact, it even occurs in workspaces in which no projects use Lombok. It occurs as soon as the Lombok JAR is installed.
Interesting. I wish I could say that makes it a very unusual test case and the problem can be ignored, but I think I'm not the only one using this folder ;-) |
👤 r.spilker 🕗 Feb 14, 2011 at 23:16 UTC Good news, Everyone!!! I think Roel and I nailed this one done. The commit is pathetically small: 2bacfa6 but nevertheless, it took quite a bit of research before we found this. Can you check if we fixed it? You can grab an edge release from here: |
👤 sharedocs1 🕗 Feb 17, 2011 at 19:53 UTC Hartstikke bedankt! From the commit it certainly looks like a good one: adding a URL to a specific Plexus classloader and making sure you only do it once...I'm sure finding that was fun ;-) Anyway, I can certainly confirm that the test case for this issue succeeds. I've been running with Lombok since you posted the fix and haven't seen the error in any other scenario yet either. So lookin' good so far. |
👤 r.spilker 🕗 Feb 21, 2011 at 21:02 UTC Issue #165 has been merged into this issue. |
End of migration |
Adjust IntelliJ configuration description
Migrated from Google Code (issue 177)
The text was updated successfully, but these errors were encountered: