Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring & wildfly async requests

When doing async requests to a controller (not using the annotation) I get this error did someone knows why?

I'm using spring 4.0.5 and wildfly 8.1.0

16:42:48,621 DEBUG [io.undertow.request.io] (default task-20) UT005013: An IOException occurred: java.io.IOException: UT000029: Channel was closed mid chunk, if you have attempted to write chunked data you cannot shutdown the channel until after it has all been written.

like image 512
Charlires Avatar asked Jun 10 '14 21:06

Charlires


People also ask

What is Spring and why it is used?

The Spring Framework is an open-source framework for building enterprise Java applications. Spring aims to simplify the complex and cumbersome enterprise Java application development process by offering a framework that includes technologies such as: Aspect-oriented programming (AOP) Dependency injection (DI)

What are the types of Spring Framework?

The Spring framework consists of seven modules which are shown in the above Figure. These modules are Spring Core, Spring AOP, Spring Web MVC, Spring DAO, Spring ORM, Spring context, and Spring Web flow.


1 Answers

I faced the same exception when I was using Wildfly 8.0 final with Spring 4.1.0, JSF 2.0, and JDK 8.0_u25. My Server CPU Processing increased 25% each time it occurred.

I resolved the CPU load problem by using Wildfly 8.2.0 Final.

I observed my server for almost 8 days, then I realized this Exception occurs while clients sending a request to the server and Server requires extra time to generate a response. If the user closes his browser window or logs out before getting the response, when the server tries to send the response to the client then the IOException occurs.

like image 124
Az.MaYo Avatar answered Sep 23 '22 18:09

Az.MaYo