NPE in many tests on master caused by Styles.Handler parser accessing the GeoServerDataDirectory bean before it is instantiated.
Cause:
commit 61b4b5f8987c895c5ef6d29779cac2ebd92a7ced
Author: Andrea Aime <andrea.aime@anonymised.com>
Date: Wed May 14 14:29:00 2014 +0200
GEOS-6491 Add legend preview in the style edit pages
In Styles, dd is null when used:
GeoServerDataDirectory dd = GeoServerExtensions.bean(GeoServerDataDirectory.class);
File styles = dd.findOrCreateStyleDir().getCanonicalFile();
Tests in error:
testSimpleLoop(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testAllStylesForRendering(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testSimpleLoopWithNotEqualGroups(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testBoundsCRS(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testAllLayers(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testAllStyles(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testBounds(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testAllLayersForRendering(org.geoserver.catalog.LayerGroupHelperTest): java.lang.NullPointerException
testCascadeWorkspace(org.geoserver.catalog.impl.CascadeRemovalReporterTest): java.lang.NullPointerException
testCascadeLayer(org.geoserver.catalog.impl.CascadeRemovalReporterTest): java.lang.NullPointerException
testCascadeStore(org.geoserver.catalog.impl.CascadeRemovalReporterTest): java.lang.NullPointerException
testFeatureTypeNoSRS(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testEmptyLayerGroupBounds(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testLayerGroupBounds(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testFeatureType(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testLatLonBounds(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testGeometryless(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testSingleBandedCoverage(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testLookupSRSDetached(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testSetupBoundsDetached(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testMetadataFromFeatueSource(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testEmptyBounds(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testWMSLayer130crs84(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testMultiBandCoverage(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testWMSLayer111(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
testWMSLayer130(org.geoserver.catalog.impl.CatalogBuilderTest): java.lang.NullPointerException
Tests run: 569, Failures: 0, Errors: 26, Skipped: 1
Sample surefire-report attached.
|