Hi
$subject, pls refer the highlighted text in below which produced this,
though this a intermittent issue, any reason why this happen? seems like
registry has sort of a logic for this implementation,
/**
* This will create an empty collection, if there is no such resource
exist if the parent of the
* empty collection doesn't exist, this will create they as well.
*
* @param _path Path of which all non-existent collections are added.
*
* @throws RegistryException If any ancestor of the given path is a
resource.
*/
private void addEmptyCollection(String _path) throws RegistryException {
String path=_path;
// first need to check whether there is a resource (non-collection)
// where it is asking to create a collection
ResourceIDImpl assumedResourceID = resourceDAO.getResourceID(path,
false);
* if (assumedResourceID != null &&
resourceDAO.resourceExists(assumedResourceID)) {*
* String msg = "Failed to add new Collection " + path + "There
already exist " +*
* "non collection resource.";*
* log.error(msg);*
* throw new RegistryException(msg);*
* }*
String parentPath = RegistryUtils.getParentPath(path);
ResourceIDImpl parentResourceID = null;
if (parentPath != null) {
cheer,
Dushan Abeyruwan
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com/*
*Mobile:(+94)714408632*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev