Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.7-M4
-
Fix Version/s: None
-
Component/s: shapefile plugin
-
Labels:None
-
Environment:HideApache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.5.0_22
Java home: /home/car605/junk/java/jdk1.5.0_22.i586/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux" version: "2.6.32.21-166.fc12.x86_64" arch: "i386" Family: "unix"
ShowApache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800) Java version: 1.5.0_22 Java home: /home/car605/junk/java/jdk1.5.0_22.i586/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux" version: "2.6.32.21-166.fc12.x86_64" arch: "i386" Family: "unix"
Description
I am seeing intermittent build failures in gt-feature-pregeneralized (where by intermittent I mean it fails most of the time, but sometimes succeeds). I strongly suspect a shapefile handling race condition. At the other tests with the same abstract base class succeed.
This does not affect stable, does not affect Hudson, not my buildbot. Just my desktop. This looks like another Affects-Only-Ben bug. (Did we ever set that as a priority option?)
Failed tests: testFeatureReader(org.geotools.data.gen.ShapeFilePreGeneralizedFeatureSourceTest) testFeatureReaderWithoutGeom(org.geotools.data.gen.ShapeFilePreGeneralizedFeatureSourceTest) testGetFeatures(org.geotools.data.gen.ShapeFilePreGeneralizedFeatureSourceTest) testGetFeatures3(org.geotools.data.gen.ShapeFilePreGeneralizedFeatureSourceTest) testGetSchema(org.geotools.data.gen.ShapeFilePreGeneralizedFeatureSourceTest) Tests run: 52, Failures: 5, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures.
The common symptom is an NPE thrown at ComplexTypeImpl:73:
throw new NullPointerException("PropertyDescriptor is null - did you request a property that does not exist?");
At this point the local variable properties is:
[GeometryDescriptorImpl the_geom <MultiLineString:MultiLineString> nillable 0:1, null]
So the type is being constructed with a null property.
Since when do you have this issue?