When I export a layer from GeoNode that is in a PostGIS db, attached to GeoServer ... it hangs on the GeoNode progress bar. If the layer is a shapefile (mine were uploaded through the interface & reside in /opt/geoserver_data), the export completes as expected. Here's my GeoServer log:
2011-02-24 19:40:24,916 ERROR [data.shapefile] - The following locker still has a lock read on file:/opt/geoserver_data/process_tmp_dir/12/1667553479087147326.tmp/facility03_1.shp by org.geotools.data.shapefile.shp.ShapefileReader it was created with the following stack trace org.geotools.data.shapefile.ShpFilesLocker$Trace: Locking file:/opt/geoserver_data/process_tmp_dir/12/1667553479087147326.tmp/facility03_1.shp for read by org.geotools.data.shapefile.shp.ShapefileReader in thread Process Thread2 at org.geotools.data.shapefile.ShpFilesLocker.setTraceException(ShpFilesLocker.java:72) at org.geotools.data.shapefile.ShpFilesLocker.<init>(ShpFilesLocker.java:36) at org.geotools.data.shapefile.ShpFiles.acquireRead(ShpFiles.java:365) at org.geotools.data.shapefile.ShpFiles.getReadChannel(ShpFiles.java:813) at org.geotools.data.shapefile.shp.ShapefileReader.<init>(ShapefileReader.java:213) at org.geotools.data.shapefile.ShapefileDataStore.openShapeReader(ShapefileDataStore.java:453) at org.geotools.data.shapefile.ShapefileDataStore.getAttributesReader(ShapefileDataStore.java:439) at org.geotools.data.shapefile.ShapefileDataStore.createFeatureWriter(ShapefileDataStore.java:600) at org.geotools.data.AbstractDataStore.getFeatureWriter(AbstractDataStore.java:486) at org.geotools.data.AbstractDataStore.getFeatureWriter(AbstractDataStore.java:525) at org.geonode.process.batchdownload.shp.ShapeZipWriter.writeCollectionToShapefile(ShapeZipWriter.java:233) at org.geonode.process.batchdownload.shp.ShapeZipWriter.doWrite(ShapeZipWriter.java:183) at org.geonode.process.batchdownload.shp.ShapeZipWriter.write(ShapeZipWriter.java:124) at org.geonode.process.batchdownload.BatchDownload.zipVectorLayer(BatchDownload.java:294) at org.geonode.process.batchdownload.BatchDownload.zipLayer(BatchDownload.java:262) at org.geonode.process.batchdownload.BatchDownload.zipLayers(BatchDownload.java:232) at org.geonode.process.batchdownload.BatchDownload.buildZippFile(BatchDownload.java:129) at org.geonode.process.batchdownload.BatchDownload.executeInternal(BatchDownload.java:78) at org.geonode.process.control.AsyncProcess.execute(AsyncProcess.java:62) at org.geotools.process.ProgressTask$Synchronizer.innerRun(ProgressTask.java:299) at org.geotools.process.ProgressTask.run(ProgressTask.java:118) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 2011-02-24 19:40:24,916 ERROR [data.shapefile] - The following locker still has a lock read on file:/opt/geoserver_data/process_tmp_dir/12/1667553479087147326.tmp/facility03_1.dbf by org.geotools.data.shapefile.dbf.DbaseFileReader it was created with the following stack trace org.geotools.data.shapefile.ShpFilesLocker$Trace: Locking file:/opt/geoserver_data/process_tmp_dir/12/1667553479087147326.tmp/facility03_1.dbf for read by org.geotools.data.shapefile.dbf.DbaseFileReader in thread Process Thread2 at org.geotools.data.shapefile.ShpFilesLocker.setTraceException(ShpFilesLocker.java:72) at org.geotools.data.shapefile.ShpFilesLocker.<init>(ShpFilesLocker.java:36) at org.geotools.data.shapefile.ShpFiles.acquireRead(ShpFiles.java:365) at org.geotools.data.shapefile.ShpFiles.getReadChannel(ShpFiles.java:813) at org.geotools.data.shapefile.dbf.DbaseFileReader.<init>(DbaseFileReader.java:139) at org.geotools.data.shapefile.ShapefileDataStore.openDbfReader(ShapefileDataStore.java:478) at org.geotools.data.shapefile.ShapefileDataStore.getAttributesReader(ShapefileDataStore.java:439) at org.geotools.data.shapefile.ShapefileDataStore.createFeatureWriter(ShapefileDataStore.java:600) at org.geotools.data.AbstractDataStore.getFeatureWriter(AbstractDataStore.java:486) at org.geotools.data.AbstractDataStore.getFeatureWriter(AbstractDataStore.java:525) at org.geonode.process.batchdownload.shp.ShapeZipWriter.writeCollectionToShapefile(ShapeZipWriter.java:233) at org.geonode.process.batchdownload.shp.ShapeZipWriter.doWrite(ShapeZipWriter.java:183) at org.geonode.process.batchdownload.shp.ShapeZipWriter.write(ShapeZipWriter.java:124) at org.geonode.process.batchdownload.BatchDownload.zipVectorLayer(BatchDownload.java:294) at org.geonode.process.batchdownload.BatchDownload.zipLayer(BatchDownload.java:262) at org.geonode.process.batchdownload.BatchDownload.zipLayers(BatchDownload.java:232) at org.geonode.process.batchdownload.BatchDownload.buildZippFile(BatchDownload.java:129) at org.geonode.process.batchdownload.BatchDownload.executeInternal(BatchDownload.java:78) at org.geonode.process.control.AsyncProcess.execute(AsyncProcess.java:62) at org.geotools.process.ProgressTask$Synchronizer.innerRun(ProgressTask.java:299) at org.geotools.process.ProgressTask.run(ProgressTask.java:118) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) ~Joe.
