Hi,

I am actually developing a SW module which configures data & coverage stores 
using the REST interface of GeoServer.

Now I have experienced a problem when I want to delete data stores which I have 
originally created.

Sometimes - after sending the commands for deleting layers or the complete data 
store (I have used GsRest.java as template) - GeoServer is not responding any 
more. I have to kill the instance and restart it. The last Log entry is every 
time:
"DEBUG [org.geoserver] - thread XXXX releasing the lock in mode WRITE"

The code is:

public boolean deleteDatastore(final String wsName, final String dsName) throws 
IOException {
                final List<String> layerNames = getLayersUsingDataStore(wsName, 
dsName);
for (final String lName : layerNames) {
                if (!deleteLayer(lName)) {
                                throw new RuntimeException("Could not delete 
layer " + wsName + ":" + dsName + ":" + lName);
                }
}

reload();
final int erg = sentRESTint(METHOD_DELETE, "/workspaces/" + wsName + 
"/datastores/" + dsName, null);
return erg == 200;
}

Do you know this behaviour? Anybody got a hint?

Thank you very much!
Tobias


Tobias Neumann, M.Sc.
Softwareingenieur Geoinformatik

Tel: +49 89 608090-276
Fax: +49 89 6098182
E-Mail: 
[email protected]<mailto:[email protected]>
Web: www.berner-mattner.com<http://www.berner-mattner.com/>

Berner & Mattner Systemtechnik GmbH
Erwin-von-Kreibig-Str. 3
D-80807 München

Geschäftsführer: Dr. Klaus Eder, Dr. Jan-Oliver Wenzel
Registernummer: HR B 83252 beim Amtsgericht München
Sitz der Gesellschaft: München

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to