Hi,

The toolbox will be deployed once the server is properly started up, this
is because it uses the osgi services to deploy the toolbox. Since there is
no dependency between osgi service registration and toolbox deployment, in
past we have experienced the toolbox is starting to deploy before osgi
services are registered and exception thrown during the deployment.

Hence before deploying, the ServerStartUp status being checked by the
toolbox deployer and if it's not started, then it'll be added to the
pausedDeployments list. Once the ServerStartup is completed, the
ServerStartUpInspector which implements ServerStartupHandler from kernal,
invoke() method is called. And within this method the paused toolboxes
which were tried get deployed before is getting deployed.

I think in the above case, MessageTracing.tbox is there in BAM by default,
and during the first startup this toolbox trying to get deployed before the
server starts, therefore it's getting added to the paused deployments list.
And before ServerStartupInspector is trying to install the paused
MessageTracing.tbox (default toolbox),  the toolbox deployement directory
is being cleaned by svn deployment synchronizer and toolboxes are being
checked out, and hence we are getting error.


Thanks,
Sinthuja.


On Sat, Apr 12, 2014 at 8:22 AM, Malith Dhanushka <[email protected]> wrote:

> Hi Sameera,
>
> Noted and thanks for the explanation. Will refactor the design correctly.
>
> Thanks
>
>
> On Fri, Apr 11, 2014 at 11:48 PM, Sameera Jayasoma <[email protected]>wrote:
>
>> AFAIK, DepSync doesn't work in this manner. DepSync first get a checkout.
>> Once that is completed it tries to deploy.  I guess you guys are doing
>> something wrong here :).  Let me explain.
>>
>> By looking at the exception stack trace, I can see that 
>> ServerStartUpInspector
>> is invoking deployers.  Deployers should only invoked by the Deployment
>> Engine.  This is not a good design.
>>
>> You need to let deployment engine to invoke deployers. Here
>> the ServerStartUpInspector is invoking the deployers while deployment
>> synchronizer is checking out the artifacts.
>>
>> Thanks,
>> Sameera.
>>
>>
>> On Fri, Apr 11, 2014 at 9:58 AM, Malith Dhanushka <[email protected]>wrote:
>>
>>> Hi folks,
>>>
>>> We noticed following exception in dep sync enabled BAM clustered set up.
>>> It seems node1 is trying to deploy a tbox while checking out the same tbox
>>> from management node. Is it a possible behavior?
>>>
>>> TID: [0] [BAM] [2014-04-11 18:49:57,125] ERROR
>>> {org.wso2.carbon.bam.toolbox.deployer.core.BAMArtifactProcessor} -
>>> Exception while extracting the BAM
>>> artifact:/home/wso2/4.2.0/BAM241/cluster/full/10Apr/wso2bam-2.4.1/repository/deployment/server/bam-toolbox/Message_Tracing.tbox
>>> {org.wso2.carbon.bam.toolbox.deployer.core.BAMArtifactProcessor}
>>> java.io.FileNotFoundException:
>>> /home/wso2/4.2.0/BAM241/cluster/full/10Apr/wso2bam-2.4.1/repository/deployment/server/bam-toolbox/Message_Tracing.tbox
>>> (No such file or directory)
>>>         at java.util.zip.ZipFile.open(Native Method)
>>>         at java.util.zip.ZipFile.<init>(ZipFile.java:214)
>>>         at java.util.zip.ZipFile.<init>(ZipFile.java:144)
>>>         at java.util.zip.ZipFile.<init>(ZipFile.java:115)
>>>         at
>>> org.wso2.carbon.bam.toolbox.deployer.core.BAMArtifactProcessor.unzipFolder(BAMArtifactProcessor.java:54)
>>>         at
>>> org.wso2.carbon.bam.toolbox.deployer.core.BAMArtifactProcessor.extractBAMArtifact(BAMArtifactProcessor.java:48)
>>>         at
>>> org.wso2.carbon.bam.toolbox.deployer.core.BAMToolBoxDeployer.deploy(BAMToolBoxDeployer.java:114)
>>>         at
>>> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>>>         at
>>> org.wso2.carbon.bam.toolbox.deployer.internal.ServerStartUpInspector.doPausedDeployments(ServerStartUpInspector.java:49)
>>>         at
>>> org.wso2.carbon.bam.toolbox.deployer.internal.ServerStartUpInspector.invoke(ServerStartUpInspector.java:35)
>>>         at
>>> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.startup(CarbonCoreServiceComponent.java:185)
>>>         at
>>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:205)
>>>         at
>>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:282)
>>>         at
>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>>>         at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>>         at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>         .......................................................
>>>
>>> For full trace refer[1].
>>>
>>> [1] https://wso2.org/jira/browse/BAM-1558
>>>
>>> Thanks
>>> --
>>> Malith Dhanushka
>>> Software Engineer - Data Technologies
>>> *WSO2, Inc. : wso2.com <http://wso2.com/>*
>>> *Mobile*          : +94 716 506 693
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: [email protected]
>> blog: http://sameera.adahas.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Malith Dhanushka
> Software Engineer - Data Technologies
> *WSO2, Inc. : wso2.com <http://wso2.com/>*
> *Mobile*          : +94 716 506 693
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sinthuja Rajendran*
Software Engineer <http://wso2.com/>
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to