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

[Intermittent Issue] 'org.apache.synapse.SynapseException: Cannot convert null to a StreamSource' thrown in worker nodes when applying QOS properties to Proxy services.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.6.0
    • Fix Version/s: 4.6.0
    • Component/s: Core Engine
    • Labels:
      None
    • Environment:

      wso2esb-4.6.0 - Worker Manager separated setup.

    • Severity:
      Blocker
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Not-applicable

      Description

      TID: [0] [ESB] [2013-01-07 17:01:13,327] INFO

      {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Received [SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super', messageId=0296cdc2-000a-410e-9930-ca3ea0b58b7b}] {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest}

      TID: [0] [ESB] [2013-01-07 17:01:13,327] INFO

      {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Going to synchronse artefacts. {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest}

      TID: [0] [ESB] [2013-01-07 17:01:17,235] INFO

      {org.apache.synapse.core.axis2.ProxyService} - Stopped the proxy service : TestProxy {org.apache.synapse.core.axis2.ProxyService}

      TID: [0] [ESB] [2013-01-07 17:01:17,236] INFO

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

      TID: [0] [ESB] [2013-01-07 17:01:17,273] WARN

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

      TID: [0] [ESB] [2013-01-07 17:01:17,274] ERROR

      {org.wso2.carbon.proxyadmin.ProxyServiceDeployer} - ProxyService Update from the file : /home/esbtest/wso2esb-4.6.0/repository/deployment/server/synapse-configs/default/proxy-services/TestProxy.xml : Failed. {org.wso2.carbon.proxyadmin.ProxyServiceDeployer}

      org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
      at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:576)
      at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:77)
      at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:686)
      at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:495)
      at org.apache.synapse.deployers.ProxyServiceDeployer.updateSynapseArtifact(ProxyServiceDeployer.java:129)
      at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.updateSynapseArtifact(ProxyServiceDeployer.java:85)
      at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:158)
      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.runAxisDeployment(CarbonDeploymentSchedulerTask.java:67)
      at org.wso2.carbon.core.CarbonAxisConfigurator.runDeployment(CarbonAxisConfigurator.java:419)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.doDeployment(SynchronizeRepositoryRequest.java:80)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.execute(SynchronizeRepositoryRequest.java:71)
      at org.apache.axis2.clustering.tribes.RpcMessagingHandler.replyRequest(RpcMessagingHandler.java:55)
      at org.apache.catalina.tribes.group.RpcChannel.messageReceived(RpcChannel.java:134)
      at org.apache.axis2.clustering.tribes.Axis2GroupChannel.messageReceived(Axis2GroupChannel.java:79)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator.messageReceived(NonBlockingCoordinator.java:512)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor.messageReceived(TcpPingInterceptor.java:162)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:113)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor.messageReceived(DomainFilterInterceptor.java:45)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.OrderInterceptor.messageReceived(OrderInterceptor.java:101)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
      at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
      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)
      TID: [0] [ESB] [2013-01-07 17:01:17,276] ERROR

      {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} - Update of the Synapse Artifact from file : /home/esbtest/wso2esb-4.6.0/repository/deployment/server/synapse-configs/default/proxy-services/TestProxy.xml : Failed! {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer}

      org.apache.synapse.deployers.SynapseArtifactDeploymentException: ProxyService Update from the file : /home/esbtest/wso2esb-4.6.0/repository/deployment/server/synapse-configs/default/proxy-services/TestProxy.xml : Failed.
      at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:418)
      at org.apache.synapse.deployers.ProxyServiceDeployer.updateSynapseArtifact(ProxyServiceDeployer.java:148)
      at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.updateSynapseArtifact(ProxyServiceDeployer.java:85)
      at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:158)
      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.runAxisDeployment(CarbonDeploymentSchedulerTask.java:67)
      at org.wso2.carbon.core.CarbonAxisConfigurator.runDeployment(CarbonAxisConfigurator.java:419)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.doDeployment(SynchronizeRepositoryRequest.java:80)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.execute(SynchronizeRepositoryRequest.java:71)
      at org.apache.axis2.clustering.tribes.RpcMessagingHandler.replyRequest(RpcMessagingHandler.java:55)
      at org.apache.catalina.tribes.group.RpcChannel.messageReceived(RpcChannel.java:134)
      at org.apache.axis2.clustering.tribes.Axis2GroupChannel.messageReceived(Axis2GroupChannel.java:79)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator.messageReceived(NonBlockingCoordinator.java:512)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor.messageReceived(TcpPingInterceptor.java:162)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:113)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor.messageReceived(DomainFilterInterceptor.java:45)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.OrderInterceptor.messageReceived(OrderInterceptor.java:101)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
      at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
      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)
      Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
      at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:576)
      at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:77)
      at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:686)
      at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:495)
      at org.apache.synapse.deployers.ProxyServiceDeployer.updateSynapseArtifact(ProxyServiceDeployer.java:129)
      ... 36 more
      TID: [0] [ESB] [2013-01-07 17:01:17,277] INFO

      {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} - The updated file has been backed up into : NO_BACKUP_ON_WORKER.INFO {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer}

      TID: [0] [ESB] [2013-01-07 17:01:17,277] INFO

      {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer} - Restoring the existing artifact into the file : /home/esbtest/wso2esb-4.6.0/repository/deployment/server/synapse-configs/default/proxy-services/TestProxy.xml {org.apache.synapse.deployers.AbstractSynapseArtifactDeployer}

      TID: [0] [ESB] [2013-01-07 17:01:17,279] ERROR

      {org.wso2.carbon.proxyadmin.ProxyServiceDeployer} - Restoring of the ProxyService named 'TestProxy' has failed {org.wso2.carbon.proxyadmin.ProxyServiceDeployer}

      java.lang.NullPointerException
      at org.apache.synapse.config.xml.ProxyServiceSerializer.serializeProxy(ProxyServiceSerializer.java:54)
      at org.apache.synapse.deployers.ProxyServiceDeployer.restoreSynapseArtifact(ProxyServiceDeployer.java:195)
      at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.restoreSynapseArtifact(ProxyServiceDeployer.java:107)
      at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:166)
      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.runAxisDeployment(CarbonDeploymentSchedulerTask.java:67)
      at org.wso2.carbon.core.CarbonAxisConfigurator.runDeployment(CarbonAxisConfigurator.java:419)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.doDeployment(SynchronizeRepositoryRequest.java:80)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.execute(SynchronizeRepositoryRequest.java:71)
      at org.apache.axis2.clustering.tribes.RpcMessagingHandler.replyRequest(RpcMessagingHandler.java:55)
      at org.apache.catalina.tribes.group.RpcChannel.messageReceived(RpcChannel.java:134)
      at org.apache.axis2.clustering.tribes.Axis2GroupChannel.messageReceived(Axis2GroupChannel.java:79)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator.messageReceived(NonBlockingCoordinator.java:512)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor.messageReceived(TcpPingInterceptor.java:162)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:113)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor.messageReceived(DomainFilterInterceptor.java:45)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.OrderInterceptor.messageReceived(OrderInterceptor.java:101)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
      at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
      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)
      TID: [0] [ESB] [2013-01-07 17:01:17,280] WARN

      {org.apache.axis2.clustering.tribes.Axis2GroupChannel} - Error receiving message: {org.apache.axis2.clustering.tribes.Axis2GroupChannel}

      org.apache.synapse.deployers.SynapseArtifactDeploymentException: Restoring of the ProxyService named 'TestProxy' has failed
      at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:418)
      at org.apache.synapse.deployers.ProxyServiceDeployer.restoreSynapseArtifact(ProxyServiceDeployer.java:211)
      at org.wso2.carbon.proxyadmin.ProxyServiceDeployer.restoreSynapseArtifact(ProxyServiceDeployer.java:107)
      at org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:166)
      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.runAxisDeployment(CarbonDeploymentSchedulerTask.java:67)
      at org.wso2.carbon.core.CarbonAxisConfigurator.runDeployment(CarbonAxisConfigurator.java:419)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.doDeployment(SynchronizeRepositoryRequest.java:80)
      at org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.execute(SynchronizeRepositoryRequest.java:71)
      at org.apache.axis2.clustering.tribes.RpcMessagingHandler.replyRequest(RpcMessagingHandler.java:55)
      at org.apache.catalina.tribes.group.RpcChannel.messageReceived(RpcChannel.java:134)
      at org.apache.axis2.clustering.tribes.Axis2GroupChannel.messageReceived(Axis2GroupChannel.java:79)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator.messageReceived(NonBlockingCoordinator.java:512)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor.messageReceived(TcpPingInterceptor.java:162)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:113)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor.messageReceived(DomainFilterInterceptor.java:45)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.interceptors.OrderInterceptor.messageReceived(OrderInterceptor.java:101)
      at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
      at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
      at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
      at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
      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)
      Caused by: java.lang.NullPointerException
      at org.apache.synapse.config.xml.ProxyServiceSerializer.serializeProxy(ProxyServiceSerializer.java:54)
      at org.apache.synapse.deployers.ProxyServiceDeployer.restoreSynapseArtifact(ProxyServiceDeployer.java:195)
      ... 36 more

        Attachments

          Activity

            People

            • Assignee:
              shafreen@wso2.com shafreen anfar
              Reporter:
              sandapa@wso2.com Sandapa Handakumbura
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: