tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Khalife" <>
Subject MOD_WEBAPP & Gzip'ed or Object Streams, Error: Invalid WARP packet type for body
Date Fri, 19 Oct 2001 15:31:59 GMT

This is what I'm running.


I'm having the same problem on Solaris, Linux, and Win2000

I have Servlet that produces output that is either HTML and browser bound or
to communicate with an Applet using Object input/output streams and it works
fine using a gzip'd stream as well, but under the HttpConnector only

Under the Warp Connector,  Servlet->Browser Works fine if the output is
gzip'd or not.

But Servlet->Applet does not, I was getting errors that the stream is
missing the required headers for Gzip to work.
So I disabled the gzip'd stream, the application moves a little further but
Catalina is throwing this error: Invalid WARP packet type for body
org.apache.catalina.connector.warp.WarpRequest$ So
org.apache.catalina.connector.warp.WarpRequest$ So
        at Source)
        at org.apache.catalina.connector.RequestStream.close(Unknown Source)

If anyone has seen this before, or knows what it might be I would really
appreciate your response.

Thanks you,

------------------------- CODE Sample -----------------------------
// Servlet Side
                    //GZIPInputStream gzin = new
                    //in = new ObjectInputStream(gzin);
                    in = new ObjectInputStream(request.getInputStream() );

                    //GZIPOutputStream gzout = new
                    //out = new ObjectOutputStream(gzout);
                    out = new

// Applet Side

        // Obtain the connection output stream
        OutputStream os = con.getOutputStream();

        // Build a Gzip'd output stream on top of the Connection Output
        // gzout = new;
        // Get the Object Output Stream form the Gzip'd output stream
        //ObjectOutputStream out = new ObjectOutputStream(gzout);

        // No Compressioon
        ObjectOutputStream out = new ObjectOutputStream(os);

        // Get the input Stream
        InputStream is = con.getInputStream();
        // Build the Gzip'd input stream on top the Connection input stream
        // gzin = new;

        //ObjectInputStream in = new ObjectInputStream( gzin );
        // No Compression
        ObjectInputStream in = new ObjectInputStream( is );

The error I'm getting is this:

View raw message