I will try this fix and update soon
On Thu, Sep 24, 2015 at 3:01 PM, Kasun De Silva <[email protected]> wrote:
> Hi Amalka,
>
> According to the registry team this could be possibly fix with the
> following change into the RxtManager. Is this intermittent? Can you
> reproduce this regularly? This should be reproducible in our local setups
> right? Is so please patch the appfactory.core with the diff provided, and
> test. Let us know the results.
>
> diff --git
> a/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> b/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> index 3259299..609419d 100644
> ---
> a/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> +++
> b/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> @@ -200,6 +200,7 @@ public class RxtManager {
> factory.setProperty(XMLInputFactory.IS_COALESCING, true);
> XMLStreamReader reader = null;
> reader = factory.createXMLStreamReader(new
> StringReader(info));
> + GovernanceUtils.loadGovernanceArtifacts(userRegistry);
> GenericArtifactManager manager = new
> GenericArtifactManager(userRegistry, key);
> GenericArtifact artifact = manager.newGovernanceArtifact(new
> StAXOMBuilder(reader).getDocumentElement());
>
>
> Thanks,
> Kasun
>
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email : [email protected]
> mobile : +94 77 794 4260
>
>
> On Tue, Sep 15, 2015 at 2:08 PM, Amalka Subasinghe <[email protected]>
> wrote:
>
>> Hi,
>>
>>
>> I got the following error, when I try to create a version in an existing
>> application
>>
>> By referring the logs, we can see that config and governance registries
>> are being loaded.
>>
>> TID: [0] [AF] [2015-09-15 01:06:23,476] INFO
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Connected
>> to mount at config in 5ms
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
>>
>> TID: [0] [AF] [2015-09-15 01:06:23,619] INFO
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Connected
>> to mount at governance in 12ms
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
>>
>>
>> however, after I login to the carbon console, using the same tenant I
>> could create the version without errors.
>>
>>
>> TID: [0] [AF] [2015-09-14 21:02:41,818] ERROR
>> {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
>> - Error in associating lifecycle for the artifact. id:
>> e47109a2-893b-4c7d-a76a-1fc46aa25954, path:
>> /repository/applications/aftestsetupmonitori/1.0.0.
>> {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
>>
>> org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find
>> aspectName 'ApplicationLifecycle'
>>
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)
>>
>> at
>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:416)
>>
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1904)
>>
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:60)
>>
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1876)
>>
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.associateAspect(UserRegistry.java:1873)
>>
>> at
>> org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.attachLifecycle(GovernanceArtifactImpl.java:276)
>> at
>> org.wso2.carbon.appfactory.core.governance.RxtManager.addArtifact(RxtManager.java:212)
>>
>>
>> Thanks
>> Amalka
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
--
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev