[Geoserver-devel] [jira] (GEOS-6492) Styles.Handler parser accesses uninstantiated GeoServerDataDirectory bean

Ben Caradoc-Davies created an issue

GeoServer / BugGEOS-6492

Styles.Handler parser accesses uninstantiated GeoServerDataDirectory bean

Issue Type:

BugBug

Affects Versions:

2.6-beta

Assignee:

Andrea Aime

Attachments:

org.geoserver.catalog.impl.CatalogBuilderTest.txt

Components:

Global

Created:

23/May/14 1:44 AM

Environment:

Everywhere.

Priority:

BlockerBlocker

Reporter:

Ben Caradoc-Davies

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.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo