Issue Type: Bug Bug
Affects Versions: 2.7.5
Assignee: Simone Giannecchini
Components: coverage
Created: 21/Nov/12 9:30 AM
Description:

CoverageStoreUtils can cause a NoClassDefFoundError, most likely because of this line of code:

public final static Format[] formats = GridFormatFinder.getFormatArray();

The problem is that the NoClassDefFoundError prevents me from seeing the actual exception, which probably happens GridFormatFinder.getFormatArray().


This is an example of why you should never call significant code when initializing a static field (or within a static initializer). The simplest solution would be to wrap this field into getter method that lazily initializes the static field.

Environment: Ubuntu 12.10, JDK 1.7.0_07-b10
Project: GeoTools
Priority: Major Major
Reporter: Felix Mayer
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
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to