harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1831) [classlib][archive] IllegalArgumentException on GZIPOutputStream()
Date Tue, 30 Jan 2007 16:20:33 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gregory Shimansky updated HARMONY-1831:
---------------------------------------

    Component/s:     (was: DRLVM)
                 Classlib
        Summary: [classlib][archive] IllegalArgumentException on GZIPOutputStream()  (was:
[drlvm][reliability] IllegalArgumentException on GZIPOutputStream())

Ok I agree that this looks like a classlib problem.

> [classlib][archive] IllegalArgumentException on GZIPOutputStream()
> ------------------------------------------------------------------
>
>                 Key: HARMONY-1831
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1831
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message