https://issues.apache.org/bugzilla/show_bug.cgi?id=52121

--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> 2011-11-03 
23:53:23 UTC ---
Note that you can run the test by adding the following line to the
build.properties file:
test.entry=org.apache.coyote.http11.filters.TesterFlushableGZIPOutputStream

Just for reference:
If I run the test through Ant it fails in an odd way:

[[[
Testsuite: org.apache.coyote.http11.filters.TesterFlushableGZIPOutputStream
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,031 sec

Testcase: testBug52121 took 0,016 sec
    Caused an ERROR
null
java.lang.NullPointerException
    at org.apache.catalina.util.IOTools.flow(IOTools.java:74)
    at org.apache.catalina.util.IOTools.flow(IOTools.java:85)
    at
org.apache.coyote.http11.filters.TesterFlushableGZIPOutputStream.testBug52121(TesterFlushableGZIPOutputStream.java:47)
]]]

I cannot explain this NPE.

If I run it as JUnit test from with Eclipse IDE I get the IO error:

[[[
java.io.IOException: Corrupt GZIP trailer
    at java.util.zip.GZIPInputStream.readTrailer(GZIPInputStream.java:203)
    at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:94)
    at java.io.FilterInputStream.read(FilterInputStream.java:90)
    at org.apache.catalina.util.IOTools.flow(IOTools.java:74)
    at org.apache.catalina.util.IOTools.flow(IOTools.java:85)
    at
org.apache.coyote.http11.filters.TesterFlushableGZIPOutputStream.testBug52121(TesterFlushableGZIPOutputStream.java:63)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
]]]

The sources are trunk@1197344, both were run with jdk 6u29 (build 1.6.0_29-b11)
on Windows XP 32-bit.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to