Modify

Opened 8 months ago

Last modified 3 weeks ago

#16655 new defect

Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader (win10, 8u171)

Reported by: R.Yama Owned by: team
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: template_report jpeg imageio jpeg security webstart Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Can not download

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-08-18 16:16:51 +0200 (Sat, 18 Aug 2018)
Build-Date:2018-08-18 16:30:21
Revision:14163
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14163 ja) Windows 10 64-Bit
OS Build number: Windows 10 Home 1803 (17134)
Memory Usage: 195 MB / 247 MB (57 MB allocated, but free)
Java version: 1.8.0_171-b11, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-6f58a970, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=60166, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe]
Dataset consistency test: No problems found

Plugins:
+ EasyPresets (1529414338)
+ FastDraw (34510)
+ Mapillary (v1.5.15)
+ OpeningHoursEditor (34535)
+ PicLayer (34544)
+ SimplifyArea (34556)
+ apache-commons (34506)
+ apache-http (34506)
+ buildings_tools (34572)
+ ejml (34389)
+ geotools (34513)
+ jaxb (34506)
+ jts (34524)
+ log4j (34527)
+ opendata (34576)
+ pt_assistant (v2.1.1)
+ public_transport (34548)
+ public_transport_layer (34549)
+ reverter (34552)
+ routes (34479)
+ routing (34554)
+ terracer (34562)
+ undelete (34568)
+ utilsplugin2 (34506)
+ wikipedia (v1.1.0)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/JapaneseAddress&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Japan&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/JaNamigSample&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/JP-Tsunami&zip=1

Last errors/warnings:
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-67,5,javawsApplicationThreadGroup], exception=java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-64,5,javawsApplicationThreadGroup], exception=java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-63,5,javawsApplicationThreadGroup], exception=java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-70,5,javawsApplicationThreadGroup], exception=java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-68,5,javawsApplicationThreadGroup], exception=java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader, methodWarningFrom=BugReportExceptionHandler#handleException]


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: TMS-downloader-14 (140)
java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
	at com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi.createReaderInstance(Unknown Source)
	at javax.imageio.spi.ImageReaderSpi.createReaderInstance(Unknown Source)
	at javax.imageio.ImageIO$ImageReaderIterator.next(Unknown Source)
	at javax.imageio.ImageIO$ImageReaderIterator.next(Unknown Source)
	at javax.imageio.ImageIO.read(Unknown Source)
	at javax.imageio.ImageIO.read(Unknown Source)
	at org.openstreetmap.gui.jmapviewer.Tile.loadImage(Tile.java:246)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.tryLoadTileImage(TMSCachedTileLoaderJob.java:280)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.loadingFinished(TMSCachedTileLoaderJob.java:191)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.finishLoading(JCSCachedTileLoaderJob.java:265)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.run(JCSCachedTileLoaderJob.java:232)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (13)

comment:1 Changed 8 months ago by Don-vip

Description: modified (diff)
Keywords: jpeg imageio javabug added
Summary: Can not downloadNoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader

comment:2 Changed 8 months ago by Don-vip

Component: CoreCore imagery

comment:3 Changed 8 months ago by Don-vip

Summary: NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReaderCould not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader (win10, 8u171)

comment:4 Changed 8 months ago by Don-vip

Ticket #13731 has been marked as a duplicate of this ticket.

comment:5 Changed 8 months ago by Don-vip

Ticket #15153 has been marked as a duplicate of this ticket.

comment:6 Changed 8 months ago by Don-vip

This is not the same issue than #10603 and #10675. It was a packaging issue of Java 8u40 (development version) in Linux distributions (OpenSUSE and Debian/Ubuntu) but this one occurs on Windows and macOS with more recent production versions of Java 8.

comment:7 Changed 8 months ago by Don-vip

Keywords: template_report jpeg imageio javabugtemplate_report jpeg imageio javabug jpeg

comment:8 Changed 8 months ago by Don-vip

Keywords: security webstart added; javabug removed

At least two of the three bug reports are using Java WebStart, which defines a security manager.

The JPEGImageReader has a static initialization block involving privileged code:

    static {
        java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction<Void>() {
                public Void run() {
                    System.loadLibrary("jpeg");
                    return null;
                }
            });
        initReaderIDs(ImageInputStream.class,
                      JPEGQTable.class,
                      JPEGHuffmanTable.class);
    }

We should either make sure this piece of code is first executed by JOSM main thread, or that child threads are allowed to execute it.

comment:9 Changed 8 months ago by Don-vip

Last edited 8 months ago by Don-vip (previous) (diff)

comment:10 Changed 8 months ago by Don-vip

I cant' find why our threads wouldn't have the RuntimePermission loadLibrary.jpeg as I don't see anything fancy like what is done with ForkJoinPool.

I guess the loading of jpeg library fails for another reason that does not appear in the bug report...

comment:11 Changed 8 months ago by Don-vip

Maybe a different symptom of #16576

comment:12 Changed 4 months ago by Don-vip

Ticket #17106 has been marked as a duplicate of this ticket.

comment:13 Changed 3 weeks ago by Don-vip

Ticket #17537 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to R.Yama
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.