-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
java.lang.NullPointerException initializing embedded servlet #4064
Comments
I've been going through and adding testing to the embedded examples via PR #4056 |
That's a badly named example. |
I have replicate this issue. This change is what broke it - 819c379#diff-0d419a5cace2d3e164cd481d96f24734 |
+ Also made ContextHandler warning message about features that are unimplemented (and you should use ServletContextHandler) more clear. (this helped with diagnosing where the bug was in ServletHolder) Signed-off-by: Joakim Erdfelt <[email protected]>
Let me make that PR non-draft, so you can review it. |
PR #4056 is now merged into |
Embedded servlet raises a NullPointerException when servlet is called on version 9.4.20.v20190813.
Same issue with JDK8 and JDK11.
This DOESN'T happen in any of the previous versions I've tried, including inmediate previous version 9.4.19.v20190610, with the exactly same code, configuration and environment.
The issue can be reproduced running the "Minimal Servlet" sample from official documentation: https://www.eclipse.org/jetty/documentation/current/embedded-examples.html#embedded-minimal-servlet
When GET call is done to listening ip and port, the received response is HTTP ERROR 500 and the servlet error trace is:
The text was updated successfully, but these errors were encountered: