[jboss-jira] [JBoss JIRA] (WFLY-5388) Intermittent java.io.IOException: UT010029: Stream is closed in Java EE 7 using provided undertow, resteasy, and jackson
Geoffrey De Smet (JIRA)
issues at jboss.org
Thu Sep 24 06:07:00 EDT 2015
[ https://issues.jboss.org/browse/WFLY-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112058#comment-13112058 ]
Geoffrey De Smet commented on WFLY-5388:
----------------------------------------
The stacktrace so google can index "IOException: UT010029: Stream is closed" and lead them here:
{code}
12:04:33,215 ERROR [io.undertow.request] (default task-5) UT005023: Exception handling request to /optaconf-webapp/rest/conference: org.jboss.resteasy.spi.UnhandledException: Response is committed, can't handle exception
at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:148)
...
Caused by: java.io.IOException: UT010029: Stream is closed
at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:136)
at org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper$DeferredOutputStream.write(HttpServletResponseWrapper.java:46)
at org.jboss.resteasy.util.CommitHeaderOutputStream.write(CommitHeaderOutputStream.java:71)
at org.jboss.resteasy.util.DelegatingOutputStream.write(DelegatingOutputStream.java:48)
at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:1846)
at com.fasterxml.jackson.core.json.UTF8JsonGenerator.close(UTF8JsonGenerator.java:1070)
at org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider.writeTo(ResteasyJackson2Provider.java:209)
at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.writeTo(AbstractWriterInterceptorContext.java:129)
at org.jboss.resteasy.core.interception.ServerWriterInterceptorContext.writeTo(ServerWriterInterceptorContext.java:62)
at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:118)
at org.jboss.resteasy.security.doseta.DigitalSigningInterceptor.aroundWriteTo(DigitalSigningInterceptor.java:143)
at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:122)
at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.aroundWriteTo(GZIPEncodingInterceptor.java:100)
at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:122)
at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:99)
at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:427)
... 33 more
{code}
> Intermittent java.io.IOException: UT010029: Stream is closed in Java EE 7 using provided undertow, resteasy, and jackson
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-5388
> URL: https://issues.jboss.org/browse/WFLY-5388
> Project: WildFly
> Issue Type: Bug
> Components: REST, Web (Undertow)
> Affects Versions: 8.2.1.Final, 9.0.1.Final, 10.0.0.CR1
> Reporter: Matyas Danter
> Assignee: Stuart Douglas
>
> When using Java EE 7, rest, jackson, with an AngularJS front end there's an intermittent exception when accessing REST endpoints. The exception stack trace in DEBUG level is here: http://pastebin.com/xjqMMkns . A reproducer can be found here https://github.com/ge0ffrey/optaconf .
> The exception seems to not affect the expected behavior of my application. I did see something similar for JBoss EAP 6.3.0 being categorized as blocker level due to the exception log level being inappropriate.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list