Hi Dushan,

This will happen if you try to add a collection to a location which already
has a resource in there. There should be something wrong in statistics
persistence, where it initially creates a resource in the location
"/_system/local/repository/components/org.wso2.carbon.system.statistics/services/Proxy4"
and then tries to save a collection in there.

Thanks,
Senaka.

On Mon, Jul 30, 2012 at 10:14 AM, Dushan Abeyruwan <[email protected]> wrote:

> 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*
>
>


-- 
*Senaka Fernando*
Member - Integration Technologies Management Committee;
Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to