Project

General

Profile

Bug #961

When setting HTTP header "Content-Type" from a handler, the driving request fails with a Jersey exception.

Added by Mike Stults over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Start date:
04/02/2018
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

ERROR:

27-Mar-2018 21:28:34.075 SEVERE [http-nio-8084-exec-3] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [edu.iris.wss.framework.MyApplication] in context with path [/ph5wsbeta/dataselect/1] threw exception
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:462)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:480)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)

History

#1 Updated by Mike Stults over 6 years ago

  • Resolution set to Fixed

git commit -m "issue 961 - changed sequence of Response object create in IrisDynamicProvider.doIrisProcessing so Jersey does not get multiple media types for content-type element"
[master aefa39c]

// The exception is probably masking a header validation error and
// Jersey is trying to respond with an error on the response object
// created here in WSS. Once a response object is created, it is
// considered "committed" and cannot be changed, even if there is a
// following error.

Also available in: Atom PDF