deegree / deegree3

Official deegree repository providing geospatial core libraries, data access and advanced OGC web service implementations
https://www.deegree.org
GNU Lesser General Public License v2.1
150 stars 100 forks source link

Empty bbox in bbox_cache.properties results in NPE in LayerMetadataBuilder #664

Open HermanAssink opened 8 years ago

HermanAssink commented 8 years ago

When deegree can't determine the bbox of a featuretype an empty value is written in bbox_cache.properties. This empty value results in a NPE in org.deegree.layer.persistence.feature.LayerMetadataBuilder.buildMetadata(LayerMetadataBuilder.java:107). After fixing the cause of the problem with determining the bbox, the empty bbox in bbox_cache.properties is not substituted with the correct value. The workaround is to remove the line with the empty bbox from bbox_cache.properties. At the next reload of the services the bbox is written to bbox_cache.properties, if available. My suggestion for a more permanent solution is not writing empty bbox values to bbox_cache.properties. As soon as a valid bbox is available it is written to bbox_cache.properties and available for the layer

tfr42 commented 8 years ago

Is this issue for 3.3 and/or 3.4?

tfr42 commented 7 years ago

has ref to #824

tfr42 commented 7 years ago

Current workaround for 3.3 and 3.4 is to remove the bbox.properties manually.