Comments (5)
π€ olivier.hubaut Β π Aug 10, 2009 at 08:31 UTC
What steps will reproduce the problem?
- Install Lombok
- Run Eclipse Ganymede or Eclipse Galileo
- Try launching the Help Contents.
What is the expected output? What do you see instead?
Expected output is, of course, to have the help launched.
Instead, a 500 error code is thrown by Jetty, the underlying server that
runs the help.
What version of the product are you using? On what operating system?
Eclipse 3.4 and 3.5, both on Windows
Please provide any additional information below.
It seems that lombok try to modify either the jetty or help jars at
launch, which is an unexpected behaviour. The
org.eclipse.core.runtime.IStatus is the class that is impacted.
from lombok.
π€ reinierz Β π Aug 11, 2009 at 09:34 UTC
Good find, Olivier. The help is built from JSP files, which need to be compiled, which eclipse does with its own
parser, which has been instrumented by lombok. Lombok is indeed at fault.
Will look at fixing it later. For now marking it as valid.
I wish java itself was developed when lombok already existed, because the ClassCastException isn't being
THROWN, it's being passed someplace which isn't legal and is causing an IllegalArgumentException, which
prints the toString() of the ClassCastException, which for whatever reason doesn't have a useful toString().
D'oh!
The stack trace generated is:
java.lang.IllegalArgumentException: java.lang.ClassCastException@ 115b920e
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
java.lombok.eclipse.ClassLoaderWorkaround.transformCompilationUnitDeclaration(ClassLoaderWorkaround.ja
va:57)
at org.eclipse.jdt.internal.compiler.parser.Parser.endParse(Parser.java:7638)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:8497)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:8657)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:8622)
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Parser.java:7420)
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:289)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:315)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:404)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManag
er.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:380)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:540)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
from lombok.
π€ reinierz Β π Aug 31, 2009 at 22:11 UTC
This has been fixed in commit 72cc800 and will be rolled out in v0.8.4.
from lombok.
π€ reinierz Β π Oct 16, 2009 at 08:51 UTC
Some changes to lombok that will go live in v0.9 may cause a recurrence of this bug, though I tested it, and it
doesn't seem to be occurring.
from lombok.
End of migration
from lombok.
Related Issues (20)
- [FEATURE] Would you be able to add @Builder.Required to sure fields exist?
- [BUG] @SuperBuilder with a class with generic types HOT 3
- [FEATURE] Expose Public API for Running Delombok HOT 9
- [FEATURE] delombok expand doc
- [FEATURE] Make lombok process jakarta.validation.NotNull and other jakarta null-prohibiting annotations as @NonNull HOT 1
- Adding final to the parameter from addFinalIfNeed in HandlerSetter? HOT 3
- [BUG] lombok.eclipse.handlers.HandleBuilder failed - Java 22, Eclipse 2024-03 HOT 7
- [FEATURE] Document that Lombok needs to be a `requires static` dependency in module-info HOT 2
- [BUG] Jackson annotation @JsonProperty not working with @Jacksonized - 2
- [BUG] I found this phenomenon in an unintentional debugging and do not understand it HOT 2
- [FEATURE] How to start project testing locallyοΌSeeking source code tutorial HOT 4
- [BUG] StackOverflowError in Eclipse in Synchronize view HOT 1
- [BUG] SuperBuilder can cause non-reproducible builds HOT 4
- [BUG] javadoc not being generated. Gradle
- [QUESTION] Problem solved, please ignore this thread.
- [BUG] `@NonNull` on array elements doesn't work HOT 4
- [BUG] ArrayIndexOutOfBoundsException using Eclipse HOT 7
- Migrating from SpringBoot 2.7.1 to 3.2.3 but Lombok @SuperBuilder is not working getting error: cannot find symbol HOT 1
- Migrating from SpringBoot 2.7.1 to 3.2.3 but Lombok @SuperBuilder is not working getting error: cannot find symbol HOT 1
- [FEATURE] Add configuration key `lombok.copyableAnnotations.onMethod` and/or add swagger's `@Hidden` to the list of `COPY_TO_SETTER_ANNOTATIONS`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lombok.