Issue Type: Bug Bug
Assignee: Simone Giannecchini
Components: coverage
Created: 14/Apr/13 8:37 AM
Description:

This line in the initialization of ImageWorker:

private static final ColorSpace CS_PYCC = ColorSpace.getInstance(ColorSpace.CS_PYCC);

breaks class initialization of ImageWorker on Windows with recent JRE with the following stack trace:

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: org.geoserver.platform.ServiceException: java.lang.ExceptionInInitializerError
at org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:898)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:333)
... 100 more
Caused by: java.lang.ExceptionInInitializerError
at org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:827)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:887)
... 101 more
Caused by: java.lang.IllegalArgumentException: Can't load standard profile: PYCC.pf
at java.awt.color.ICC_Profile.getInstance(Unknown Source)
at java.awt.color.ColorSpace.getInstance(Unknown Source)
at org.geotools.image.ImageWorker.<clinit>(ImageWorker.java:136)
... 103 more

I've been able to ascertain that JRE 1.6.0_24 still contains the PYCC.pf file on Windows, and all recent JREs for Linux also do contain the file, but for example JRE 1.7.0_17 on windows lacks the file, leading to the above initialization error.

Given that the function forceColorSpaceYCbCr() does not seem to be in actual use, I'd either drop it, or make it so that the code fails only if the call is actually performed, making sure the static variable initialization is guarded against init errors.

Fix Versions: 9.1
Project: GeoTools
Priority: Major Major
Reporter: Andrea Aime
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to