public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/27271]  New: i/o error (java.util.zip.ZipException: Deflated stream ends early.)
@ 2006-04-23 16:30 doko at ubuntu dot com
  2006-04-23 16:31 ` [Bug libgcj/27271] " doko at ubuntu dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2006-04-23 16:30 UTC (permalink / raw)
  To: java-prs

The following code fails to run with the gij-4.1 runtime (4.1 branch 20060421),
works ok with the blackdown runtime (example distilled from FC's azureus-themed
patch by Stephan Michels).

$ cat TestLoadImage.java
import java.io.InputStream;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
public class TestLoadImage {
    public static void main(String[] args) {
        final Display display = new Display();

        InputStream is = TestLoadImage.class.getResourceAsStream("new.gif");
        System.out.println("is="+is);

        Image im = new Image(display, is);
        System.out.println("im="+im);
    }
}


$ gij -Djava.library.path=/usr/lib/jni -cp
/usr/lib/java/swt3.1-gtk.jar:test.jar TestLoadImage
is=java.util.jar.JarFile$EntryInputStream@2d93c04d
Exception in thread "main" org.eclipse.swt.SWTException: i/o error
(java.util.zip.ZipException: Deflated stream ends early.)
   at org.eclipse.swt.SWT.error(SWT.java:2942)
   at org.eclipse.swt.SWT.error(SWT.java:2866)
   at
org.eclipse.swt.internal.image.GIFFileFormat.readID(GIFFileFormat.java:138)
   at
org.eclipse.swt.internal.image.GIFFileFormat.getExtensions(GIFFileFormat.java:150)
   at
org.eclipse.swt.internal.image.GIFFileFormat.loadFromByteStream(GIFFileFormat.java:124)
   at
org.eclipse.swt.internal.image.FileFormat.loadFromStream(FileFormat.java:47)
   at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.java:75)
   at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:126)
   at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:18)
   at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:327)
   at org.eclipse.swt.graphics.Image.<init>(Image.java:490)
   at TestLoadImage.main(TestLoadImage.java:11)
Caused by: java.util.zip.ZipException: Deflated stream ends early.
   at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:156)
   at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:195)
   at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:169)
   at java.io.FilterInputStream.read(FilterInputStream.java:155)
   at java.util.jar.JarFile$EntryInputStream.read(JarFile.java:974)
   at
org.eclipse.swt.internal.image.LEDataInputStream.read(LEDataInputStream.java:76)
   at
org.eclipse.swt.internal.image.GIFFileFormat.readID(GIFFileFormat.java:134)
   ...9 more


-- 
           Summary: i/o error (java.util.zip.ZipException: Deflated stream
                    ends early.)
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-07-12 17:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
2006-04-23 16:31 ` [Bug libgcj/27271] " doko at ubuntu dot com
2006-04-24 17:43 ` tromey at gcc dot gnu dot org
2006-06-02 16:09 ` green at redhat dot com
2006-07-11 22:10 ` tromey at gcc dot gnu dot org
2006-07-12  0:24 ` tromey at gcc dot gnu dot org
2006-07-12 17:00 ` tromey at gcc dot gnu dot org
2006-07-12 17:01 ` cvs-commit at developer dot classpath dot org
2006-07-12 17:02 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).