Uploaded image for project: 'ZZZ-WSO2 ESB'
  1. ZZZ-WSO2 ESB
  2. ESBJAVA-1494

[Cluster setup] Security configuration is not removed from source view after removing security and the respective service is not deployed when the servers are restarting

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0 M5
    • Labels:
      None
    • Environment:

      WSO2 ESB 4.5.0 20th pack
      In cluster setup (one manager node and two worker nodes fronted by ELB)
      Deployment synchronizer enabled

      Description

      • Create a proxy service and apply security
      • Security configuration get replicated among nodes without any issue.
      • Now remove security from manager node
      • Security get removed, but still security configuration is there in source view
        e.g.
        <proxy xmlns="http://ws.apache.org/ns/synapse" name="enrichSample4" transports="https,http,jms" statistics="disable" trace="disable" startOnLoad="true">
        <target>
        <inSequence>
        <enrich>
        <source type="body" />
        <target type="body" />
        </enrich>
        </inSequence>
        <outSequence>
        <send />
        </outSequence>
        </target>
        <policy key="conf:/repository/axis2/service-groups/enrichSample4/services/enrichSample4/policies/SgnOnlyAnonymous" />
        <description></description>
        </proxy>
      • If the servers are restarted now, this proxy service does not get deployed and following error can be seen in logs

      TID: [-1234] [WSO2 Enterprise Service Bus] [2012-08-21 10:30:39,108] INFO

      {org.apache.synapse.core.axis2.ProxyService} - Building Axis service for Proxy service : enrichSample4 {org.apache.synapse.core.axis2.ProxyService}

      TID: [-1234] [WSO2 Enterprise Service Bus] [2012-08-21 10:30:39,136] WARN

      {org.apache.synapse.config.SynapseConfigUtils} - Cannot convert null to a StreamSource {org.apache.synapse.config.SynapseConfigUtils}

      TID: [-1234] [WSO2 Enterprise Service Bus] [2012-08-21 10:30:39,137] WARN

      {org.apache.synapse.deployers.ProxyServiceDeployer} - Proxy service hot deployment from file: /home/as5test/esb/wso2esb-4.5.0/repository/deployment/server/synapse-configs/default/proxy-services/enrichSample4.xml failed - Continue in fail-safe mode {org.apache.synapse.deployers.ProxyServiceDeployer}

      org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
      at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:551)
      at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:77)
      at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:679)
      at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:491)
      at org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:75)
      at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyServiceDeployer.java:53)
      at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:172)
      at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:810)
      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
      at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
      at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
      at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
      at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:77)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

        Attachments

          Activity

            People

            • Assignee:
              miyuru@wso2.com Miyuru Wanninayaka
              Reporter:
              pavithra@wso2.com Pavithra Madurangi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: