java.lang.IllegalArgumentException: BAD TE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

java.lang.IllegalArgumentException: BAD TE

Mohan
This post has NOT been accepted by the mailing list yet.
We have a jetty server with version 6.1.6.Based on the request if the response body length exceeds 16915 characters then the jetty server throws the following exception

SEVERE: An unknown exception occurred while sending the response to the client. Exception: BAD TE
java.io.IOException: BAD TE
        at com.approuter.module.http.protocol.HttpTransportResponder.sendResponse(HttpTransportResponder.java:136)
        at com.approuter.module.http.activity.HttpSendReply.execute(HttpSendReply.java:181)
        at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at com.approuter.maestro.sdk.mpi.DynamicExecutableActivity.execute(DynamicExecutableActivity.java:367)
        at com.approuter.maestro.activities.Invoke.call(Invoke.java:216)
        at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at com.approuter.maestro.activities.Instruction.call(Instruction.java:45)
        at com.approuter.maestro.vm.Program.call(Program.java:596)
        at com.approuter.maestro.vm.Task.run(Task.java:692)
        at com.approuter.maestro.vm.ContainerImpl.execute(ContainerImpl.java:170)
        at com.approuter.maestro.vm.Program.doAction(Program.java:1154)
        at com.approuter.maestro.vm.Program.doStartAction(Program.java:1109)
        at com.approuter.module.http.activity.HttpReceiveRequest$HandleRequestThread.run(HttpReceiveRequest.java:479)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
        at java.lang.Thread.run(Thread.java:804)
May 13, 2014 2:56:32 PM com.approuter.maestro.vm.Task run
SEVERE: maestro.err.unexpectedException
java.lang.IllegalArgumentException: BAD TE
        at org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:574)
        at org.mortbay.jetty.HttpConnection.completeResponse(HttpConnection.java:592)
        at org.mortbay.jetty.Response.complete(Response.java:1095)
        at com.approuter.module.http.util.HttpHelper.sendInternalError(HttpHelper.java:1530)
        at com.approuter.module.http.activity.HttpSendReply.execute(HttpSendReply.java:200)
        at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at com.approuter.maestro.sdk.mpi.DynamicExecutableActivity.execute(DynamicExecutableActivity.java:367)
        at com.approuter.maestro.activities.Invoke.call(Invoke.java:216)
        at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at com.approuter.maestro.activities.Instruction.call(Instruction.java:45)
        at com.approuter.maestro.vm.Program.call(Program.java:596)
        at com.approuter.maestro.vm.Task.run(Task.java:692)
        at com.approuter.maestro.vm.ContainerImpl.execute(ContainerImpl.java:170)
        at com.approuter.maestro.vm.Program.doAction(Program.java:1154)
        at com.approuter.maestro.vm.Program.doStartAction(Program.java:1109)
        at com.approuter.module.http.activity.HttpReceiveRequest$HandleRequestThread.run(HttpReceiveRequest.java:479)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
        at java.lang.Thread.run(Thread.java:804)

Right we donot want to upgrade to the higher Jetty server.Can you please let us know if there any workaround to avoid the BAD TE exception or sending huge content as response body