You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometime, NullPointerException is reported in our production enviromnent.
Some of stacktraces are as like bellow:
java.lang.NullPointerException: Cannot invoke \"org.eclipse.jetty.server.HttpStream.succeeded()\" because \"stream\" is null\n
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.completeStream(HttpChannelState.java:724)\n
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.succeeded(HttpChannelState.java:675)\n
at org.eclipse.jetty.util.thread.SerializedInvoker$Link.run(SerializedInvoker.java:191)\n
at org.eclipse.jetty.util.thread.SerializedInvoker.run(SerializedInvoker.java:117)\n
at org.eclipse.jetty.server.internal.HttpChannelState$ChannelResponse.succeeded(HttpChannelState.java:1271)\n
at org.eclipse.jetty.server.internal.HttpConnection$SendCallback.onCompleteSuccess(HttpConnection.java:908)\n
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:333)\n
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:231)\n
at org.eclipse.jetty.server.internal.HttpConnection$HttpStreamOverHTTP1.send(HttpConnection.java:1419)\n
at org.eclipse.jetty.server.HttpStream$Wrapper.send(HttpStream.java:179)\n
at org.eclipse.jetty.server.internal.HttpChannelState$ChannelCallback.succeeded(HttpChannelState.java:1501)\n
at org.eclipse.jetty.util.Callback$Nested.succeeded(Callback.java:435)\n
at org.eclipse.jetty.util.CountingCallback.succeeded(CountingCallback.java:63)\n
java.lang.NullPointerException: Cannot invoke \"org.eclipse.jetty.server.internal.HttpChannelState$ChannelRequest.getAttribute(String)\" because \"this.this$0._request\" is null\n
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.completeStream(HttpChannelState.java:712)\n
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.succeeded(HttpChannelState.java:675)\n
at org.eclipse.jetty.util.thread.SerializedInvoker$Link.run(SerializedInvoker.java:191)\n
at org.eclipse.jetty.util.thread.SerializedInvoker.run(SerializedInvoker.java:117)\n
at org.eclipse.jetty.server.internal.HttpChannelState$ChannelResponse.succeeded(HttpChannelState.java:1271)\n
at org.eclipse.jetty.server.internal.HttpConnection$SendCallback.onCompleteSuccess(HttpConnection.java:908)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:333)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:231)
at org.eclipse.jetty.server.internal.HttpConnection$HttpStreamOverHTTP1.send(HttpConnection.java:1419)
at org.eclipse.jetty.server.HttpStream$Wrapper.send(HttpStream.java:179)
at org.eclipse.jetty.server.internal.HttpChannelState$ChannelCallback.succeeded(HttpChannelState.java:1501)
at org.eclipse.jetty.util.Callback$Nested.succeeded(Callback.java:435)
at org.eclipse.jetty.util.CountingCallback.succeeded(CountingCallback.java:63)
And there is case that jetty don't any stacktraces.
error message is Serialized invocation error
class which report this log is SerializedInvoker
java.lang.NullPointerException: null
How to reproduce?
Sorry, I have no idea.
The text was updated successfully, but these errors were encountered:
I've had a close look at the NPE you reported and what could be causing it and there's nothing obvious. All I can say so far is that there seems to be some ordering or double execution issue in the cleanup of a request, as HttpChannelState$HandlerInvoker.succeeded() should be invoked only before HttpStream.succeeded() but in your case it's not.
Could you please try to collect more information about your environment to help us track down this problem? For instance:
Did you report the whole stack trace or is there a cause you cut off?
Do you have any idea what protocol is causing this issue? HTTP 1 or 2? WebSockets?
Do you know of any related problem on the client side? Was that an aborted request, or a timed-out one?
Anything else that could help us understand the context of this stack trace would help.
Do you have any idea what protocol is causing this issue? HTTP 1 or 2? WebSockets?
Did you report the whole stack trace or is there a cause you cut off?
I use HTTP1.1,
Nginx proxy nginx server exists between client and jetty server.
Nginx config is like bellow
upstream nastyserver {
server 127.0.0.1:8901; // Our jetty server works!
keepalive 30;
}
Jetty 12.0.9 has been released with some fixes related to similar issues. Could you please give it a shot? With a little luck, it will have your problem fixed.
Jetty version(s)
12.0.7
Jetty Environment
jetty12-only
Java version/vendor
(use: java -version)
OS type/version
Description
Sometime, NullPointerException is reported in our production enviromnent.
Some of stacktraces are as like bellow:
And there is case that jetty don't any stacktraces.
error message is
Serialized invocation error
class which report this log is
SerializedInvoker
How to reproduce?
Sorry, I have no idea.
The text was updated successfully, but these errors were encountered: