[Bug 3712] New: Additional image Spi not found in application classpath / IIORegistry instance created without jnlp jars

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Mar 22 16:05:26 UTC 2019


https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3712

            Bug ID: 3712
           Summary: Additional image Spi not found in application
                    classpath / IIORegistry instance created without jnlp
                    jars
           Product: IcedTea-Web
           Version: hg
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: NetX (javaws)
          Assignee: jvanek at redhat.com
          Reporter: joupa77 at gmx.com
                CC: unassigned at icedtea.classpath.org

The IcedTea-Web DeploymentConfiguration class registers an IcoSpi provider
(DeploymentConfiguration.java:304), and make a call to ImageIO.read
(ImageResources.java:78).

This creates a static IIORegistry (IIORegistry.getDefaultInstance) that scans
the classpath for all the spi providers.
At this moment the classpath does not seems to contain all the jars declared in
the JNLP so the new providers are not discovered.

In our JNLP application we use the jai_imageio-1.1-windows-i586.jar with the
TIFF codec. Later during the process the ImageIO.read() on a tiff image fails.

Workaround :
Before trying to read an image a call to ImageIO.scanForPlugins() forces a scan
of the classpath. It only has to be done once.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20190322/31bdf3a8/attachment.html>


More information about the distro-pkg-dev mailing list