harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Bannikov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1831) [drlvm][reliability] IllegalArgumentException on GZIPOutputStream()
Date Thu, 12 Oct 2006 04:42:37 GMT
[drlvm][reliability] IllegalArgumentException on GZIPOutputStream()
-------------------------------------------------------------------

                 Key: HARMONY-1831
                 URL: http://issues.apache.org/jira/browse/HARMONY-1831
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Nikolay Bannikov


IllegalArgumentException on invocation GZIPOutputStream().
Note, that all works fine on RI.
 
Code for reproducing:
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.GZIPOutputStream;
 
public class GZIPOutputStreamTest {
    public static void main(String args[]) throws IOException {
        int i = 0;
        ByteArrayOutputStream os = new ByteArrayOutputStream(1000);
        for(i = 0; i < 50000; i++ ) {
            new GZIPOutputStream(os);
            if (i % 1000 == 0) {
                System.out.println("Iterations: " + i);
            }
        }
    }
}
 
HARMONY output:
=============
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors,
as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r450941, (Sep 28 2006), Windows/ia32/msvc 1310, release build http://incubator.apache.org/harmony

Iterations: 0
Iterations: 1000
Iterations: 2000
Iterations: 3000
Iterations: 4000
JNI.ExceptionDescribe: java/lang/IllegalArgumentException:
 
java/lang/IllegalArgumentException :
 at java.util.zip.Deflater.createStream (Deflater.java: -2)
 at java.util.zip.Deflater.<init> (Deflater.java: 374)
 at java.util.zip.GZIPOutputStream.<init> (GZIPOutputStream.java: 51)
 at java.util.zip.GZIPOutputStream.<init> (GZIPOutputStream.java: 39)
 at GZIPOutputStreamTest.main (GZIPOutputStreamTest.java: 10)
Error occured while running starter class: Exception left unhandled before destroying VM
JNI.ExceptionDescribe: java/lang/IllegalArgumentException:
 
java/lang/IllegalArgumentException :
 at java.util.zip.Deflater.createStream (Deflater.java: -2)
 at java.util.zip.Deflater.<init> (Deflater.java: 374)
 at java.util.zip.GZIPOutputStream.<init> (GZIPOutputStream.java: 51)
 at java.util.zip.GZIPOutputStream.<init> (GZIPOutputStream.java: 39)
 at GZIPOutputStreamTest.main (GZIPOutputStreamTest.java: 10)
Error occured in starter class shutdown() method.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message