Unclosed BufferedInputStream in GeoServerLoader.readConfiguration
-----------------------------------------------------------------
Key: GEOS-4472
URL: http://jira.codehaus.org/browse/GEOS-4472
Project: GeoServer
Issue Type: Bug
Components: Configuration
Affects Versions: 2.1-RC4
Environment: Windows 7 Enterprise 64bit
Reporter: Martin Zeller
Assignee: Justin Deoliveira
Priority: Trivial
Look at GeoServerLoader.readConfiguration (~ line 614) - when reading global.xml and logging.xml, the BufferedInputStreams 'in' stay unclosed.
Problem: I run several instances of geoserver against one data directory. When the tomcat context of one geoserver instance reloads, it keeps a lock on 'global.xml' so no other instance can persist changes to global.xml - see StackTrace
StackTrace:
org.geoserver.catalog.CatalogException: Error persisting
GeoServerInfoImpl[null] to ....\data\global.xml
at
org.geoserver.config.GeoServerPersister.persist(GeoServerPersister.java:705)
at
org.geoserver.config.GeoServerPersister.handlePostGlobalChange(GeoServerPersister.java:241)
at
org.geoserver.config.impl.GeoServerImpl.fireGlobalPostModified(GeoServerImpl.java:154)
at
org.geoserver.config.impl.GeoServerImpl.save(GeoServerImpl.java:141)
at
org.geoserver.config.UpdateSequenceListener.incrementSequence(UpdateSequenceListener.java:40)
at
org.geoserver.config.UpdateSequenceListener.handlePostGlobalChange(UpdateSequenceListener.java:78)
at
org.geoserver.config.impl.GeoServerImpl.fireGlobalPostModified(GeoServerImpl.java:154)
..........
Caused by: java.io.IOException: Could not delete: .....\data\global.xml
at
org.geoserver.config.GeoServerPersister.rename(GeoServerPersister.java:665)
at
org.geoserver.config.GeoServerPersister.persist(GeoServerPersister.java:698)
When I tried a version where I closed these streams, the error didn't occur anymore.
--
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