praveen kumar
praveen kumar

Reputation: 43

Jackson conversion problem with spring boot version 2.2.3 and above

If the data transfer rate is more than 4kb then we are getting the following exception: (After some limit its throwing an error but when i changed from jetty server to tomcat it works properly)

DEBUG c.e.config.ExceptionConfiguration.handleConflict - ExceptionConfiguration: handleConflict
java.lang.IllegalStateException: s=OPEN,api=BLOCKED,sc=false,e=null
at org.eclipse.jetty.server.HttpOutput.flush(HttpOutput.java:681)
at org.springframework.session.web.http.OnCommittedResponseWrapper$SaveContextServletOutputStream.flush(OnCommittedResponseWrapper.java:499)
at org.springframework.security.web.util.OnCommittedResponseWrapper$SaveContextServletOutputStream.flush(OnCommittedResponseWrapper.java:520)
at com.fasterxml.jackson.core.json.UTF8JsonGenerator.flush(UTF8JsonGenerator.java:1153)
at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:923)
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:287)

Upvotes: 1

Views: 837

Answers (1)

Jabir
Jabir

Reputation: 2866

It was a bug in Eclipse Jetty which has been fixed in release[9.4.26.v20200117] that can be downloaded using LINK.

From VERSION.txt

jetty-9.4.26.v20200117 - 17 January 2020

  • 2620 Exception from user endpoint onClose results in unclosed WebSocketSession

  • 4383 Errors deleting multipart tmp files java.lang.NullPointerException under heavy load

  • 4444 TLS Connection Timeout Intermittently

  • 4461 IllegalStateException in HttpOutput with Jersey

Upvotes: 2

Related Questions