Shapefiles cannot be read from ZIP without a projection in J2SE 1.6 -------------------------------------------------------------------
Key: GEOT-1172 URL: http://jira.codehaus.org/browse/GEOT-1172 Project: GeoTools Issue Type: Bug Components: ext shapefilerender Affects Versions: 2.3.0 Environment: J2SE 6 (1.6) Reporter: Sheldon Young Shapefiles cannot be read from ZIP without a projection in J2SE 1.6, though it works fine in J2SE 1.5. It appears when the projection is not found the entire ZIP stream is closed. WARNING: projection (.prj) for shapefile: jar:file:/Documents/Workspace/bootstrap/spatial/Blocks.zip!/Blocks.shp is not available SEVERE: An unexpected event occured: zip file closed java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403) at java.util.zip.ZipFile.getEntry(ZipFile.java:148) at java.util.jar.JarFile.getEntry(JarFile.java:206) at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:107) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:114) at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:130) at org.geotools.data.shapefile.ShapefileDataStore.getReadChannel(ShapefileDataStore.java:307) at org.geotools.data.shapefile.ShapefileDataStore.openShapeReader(ShapefileDataStore.java:459) at org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:670) at org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:641) at org.geotools.data.AbstractFileDataStore.getFeatureSource(AbstractFileDataStore.java:69) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel