-
Bug
-
Resolution: Done
-
Major
-
7.1.0.ER2
If we overlay deployment content, everything works fine. But if we overlay the same content one more time, we get an exception during loading html response entity:
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 28; received: 14
at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:135)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.Reader.read(Reader.java:140)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:225)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:306)
at org.jboss.qa.management.OverlayReproducer.retrieveAndCheck(OverlayReproducer.java:95)
Easy to reproduce. Reproducer in attachment. See steps to reproduce section.
I have to mention weird behavior.
Reproducer is created on the basis of our integration test. If I run reproducer on my local machine(manual launch of EAP), it behaves as I describe it above.
But If I run integration test with arquillian(arqullian started EAP and another method deploy war with deployer), this test end succesfully. But If I run the two same tests(same tests with diff names, undeploy+deploy actions between tests) in a row, second one will failed due to incorrect response entity content:
Expected :modified value some new
Actual :modified value
In the context of reproduction, it is equals test of response entity content with expected value after second overlay.
Attachment section contains:
- deployment war file,
- jar archive(reproducer, tested on more machines, should works),
- reproducer maven project(in case you want see, how reproducer looks like)
- is related to
-
JBEAP-25832 (8.0.z) UNDERTOW-2332 - Requesting deployment overlay may results in ConnectionClosedException
- Closed
- relates to
-
WFLY-9522 Add options to control Undertow file caching
- Closed