Opened 7 years ago
Last modified 5 years 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 )
What steps will reproduce the problem?
- 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 (14)
comment:1 by , 7 years ago
Description: | modified (diff) |
---|---|
Keywords: | jpeg imageio javabug added |
Summary: | Can not download → NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader |
comment:2 by , 7 years ago
Component: | Core → Core imagery |
---|
comment:3 by , 7 years ago
Summary: | NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader → Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader (win10, 8u171) |
---|
comment:4 by , 7 years ago
comment:6 by , 7 years ago
comment:7 by , 7 years ago
Keywords: | template_report jpeg imageio javabug → template_report jpeg imageio javabug jpeg |
---|
comment:8 by , 7 years ago
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:10 by , 7 years ago
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...
Ticket #13731 has been marked as a duplicate of this ticket.