Issue #6 resolved

Responses returned with Chunked Encoding can cause exceptions

Asankha Perera
created an issue

2010-10-06 12:24:27,472 [-] [HttpNIOListener-http-80] INFO HttpNIOListener Starting NIO Listener : http-80 on port : 80 ... 2010-10-06 12:24:28,472 [-] [WrapperSimpleAppMain] INFO ConfigurationImpl UltraESB/1.0.0 (GA) started with root configuration.. 2010-10-06 12:24:28,476 [-] [WrapperSimpleAppMain] INFO ServerManager System initialized in : 6s .. 2010-10-06 12:26:04,876 [-] [L-I/O dispatcher 1] WARN HttpNIOListener System may be unstable: IOReactor encountered a runtime exception : null java.lang.IllegalArgumentException at java.nio.Buffer.limit(Buffer.java:249) at org.apache.http.impl.nio.codecs.ChunkEncoder.write(ChunkEncoder.java:99) at org.adroitlogic.ultraesb.transport.http.compress.GzipCompressingEntity$1.write(GzipCompressingEntity.java:70)

Comments (1)

  1. Asankha Perera reporter

    The issue was caused by HTTPCORE-239 [https://issues.apache.org/jira/browse/HTTPCORE-239]

    As per user request, we've added a property to the HttpNIOListener to turn off Gzip compression, even when a client requests for it.

    e.g.

    <bean id="http-8280" class="org.adroitlogic.ultraesb.transport.http.HttpNIOListener">
            <constructor-arg ref="fileCache"/>
            <property name="port" value="8280"/>
            <property name="noCompression" value="true"/>
    </bean>
    

    To use the patches, copy them into the lib/patches folder. These changes will be included into the next release.

    Fixes are with 6fee0752b847

  2. Log in to comment