Your message dated Tue, 13 Jul 2010 13:41:49 +0200
with message-id <[email protected]>
and subject line Re: NullPointerException thrown at ImageIO.read()
has caused the Debian Bug report #564512,
regarding NullPointerException thrown at ImageIO.read()
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
564512: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564512
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openjdk-6-jre
Version: 6b17~pre3-1
Severity: important

Hello,
while debugging why my JOSM didn't work anymore, I found this bug in OpenJDK:


$ update-alternatives --list java
/usr/bin/gij-4.3
/usr/bin/gij-4.4
/usr/lib/jvm/java-6-openjdk/jre/bin/java
/usr/lib/jvm/java-6-sun/jre/bin/java
$
$ /usr/lib/jvm/java-6-sun/jre/bin/java openjdkbug/Main
$
$ /usr/lib/jvm/java-6-openjdk/jre/bin/java openjdkbug/Main
Exception in thread "main" java.lang.NullPointerException
        at javax.imageio.ImageIO.read(ImageIO.java:1434)
        at javax.imageio.ImageIO.read(ImageIO.java:1390)
        at openjdkbug.Main.main(Main.java:12)
$


As you can see, the same code throws a NPE with OpenJDK, while it runs fine 
with Sun's JRE (in fact, using Sun's one, JOSM went fine too).

I'm attaching a minimal testcase, i.e. the code of the above Main.class.

I can say it worked before, but I can't define when this "before" exactly is. 
It's after Dec, 19 for sure, since that's my last OSM edit (that is, I used 
JOSM and it didn't miserably fail) before I used a fallback editor.
Since 6b17~pre3-1 has been uploaded just the day before (Dec, 18), I don't 
exclude I didn't upgrade my system on that day, and I was still using 
6b17~pre2-1.

Thanks,
David

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openjdk-6-jre depends on:
ii  dpkg                    1.15.5.6         Debian package management system
ii  libaccess-bridge-java-j 1.26.2-4         Java Access Bridge for GNOME (jni 
ii  libasound2              1.0.21a-1        shared library for ALSA 
applicatio
ii  libc6                   2.10.2-4         Embedded GNU C Library: Shared 
lib
ii  libgif4                 4.1.6-8          library for GIF images (library)
ii  libjpeg62               6b-15            The Independent JPEG Group's JPEG 
ii  libpng12-0              1.2.41-1         PNG library - runtime
ii  libpulse0               0.9.21-1         PulseAudio client libraries
ii  libx11-6                2:1.3.2-1        X11 client-side library
ii  libxext6                2:1.1.1-2        X11 miscellaneous extension 
librar
ii  libxi6                  2:1.3-2          X11 Input extension library
ii  libxrender1             1:0.9.5-1        X Rendering Extension client 
libra
ii  libxtst6                2:1.1.0-2        X11 Testing -- Resource extension 
ii  openjdk-6-jre-headless  6b17~pre3-1      OpenJDK Java runtime, using 
Hotspo
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

openjdk-6-jre recommends no packages.

Versions of packages openjdk-6-jre suggests:
ii  icedtea6-plugin              6b17~pre3-1 web browser plugin based on 
OpenJD

-- no debconf information

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
package openjdkbug;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.imageio.ImageIO;

public class Main {
    public static void main(String[] args) throws MalformedURLException, IOException {
        URL url = new URL("http://88.53.214.52/arcgis/services/OrtofotoATA_20072008_f33/MapServer/WMSServer?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=CRS:84&LAYERS=0&STYLES=default&FORMAT=image/jpeg&bbox=12.5999326,37.6768932,12.6014299,37.6780783&srs=EPSG:4326&width=500&height=499";);
        BufferedImage img = ImageIO.read(url);
    }
}

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---
--- Begin Message ---
Version: 6b18-1.8-1

Not reproducible anymore in recent upstream version.



--- End Message ---

Reply via email to