You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Heshan Suriyaarachchi (JIRA)" <ji...@apache.org> on 2010/11/24 12:44:17 UTC

[jira] Created: (SYNAPSE-713) Fixing an issue in AbstractSynapseArtifactDeployer

Fixing an issue in AbstractSynapseArtifactDeployer
--------------------------------------------------

                 Key: SYNAPSE-713
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-713
             Project: Synapse
          Issue Type: Bug
    Affects Versions: NIGHTLY
            Reporter: Heshan Suriyaarachchi
             Fix For: FUTURE


If we edit a sequence and then remove the sequence from the file system, following exception occurs. 

[2010-11-22 09:25:59,115] DEBUG - AbstractSynapseArtifactDeployer UnDeployment of the synapse artifact from file : /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml : STARTED
[2010-11-22 09:25:59,115] ERROR - AbstractSynapseArtifactDeployer Artifact representing the filename /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
[2010-11-22 09:25:59,125]  INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: Artifact representing the filename /home/heshan/Dev/released_distributions/wso2esb-3.0.1/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse

This occurs in endpoints/sequences/proxyservices/eventsources/localentries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-713) Fixing an issue in AbstractSynapseArtifactDeployer

Posted by "Heshan Suriyaarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Heshan Suriyaarachchi updated SYNAPSE-713:
------------------------------------------

    Attachment: SYNAPSE-713.patch

In the AbstractSynapseArtifactDeployer's undeploy() method we are removing the artifacts from the SynapseArtifactDeploymentStore, assuming that it is a hot update. But it should remove these artifacts if it is not a restored file. 

The attached fix resolves this issue. 

> Fixing an issue in AbstractSynapseArtifactDeployer
> --------------------------------------------------
>
>                 Key: SYNAPSE-713
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-713
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>            Reporter: Heshan Suriyaarachchi
>             Fix For: FUTURE
>
>         Attachments: SYNAPSE-713.patch
>
>
> If we edit a sequence and then remove the sequence from the file system, following exception occurs. 
> [2010-11-22 09:25:59,115] DEBUG - AbstractSynapseArtifactDeployer UnDeployment of the synapse artifact from file : /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml : STARTED
> [2010-11-22 09:25:59,115] ERROR - AbstractSynapseArtifactDeployer Artifact representing the filename /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> [2010-11-22 09:25:59,125]  INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: Artifact representing the filename /home/heshan/Dev/released_distributions/wso2esb-3.0.1/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> This occurs in endpoints/sequences/proxyservices/eventsources/localentries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-713) Fixing an issue in AbstractSynapseArtifactDeployer

Posted by "Heshan Suriyaarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935300#action_12935300 ] 

Heshan Suriyaarachchi commented on SYNAPSE-713:
-----------------------------------------------

I will provide a fix for this issue. 

> Fixing an issue in AbstractSynapseArtifactDeployer
> --------------------------------------------------
>
>                 Key: SYNAPSE-713
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-713
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>            Reporter: Heshan Suriyaarachchi
>             Fix For: FUTURE
>
>
> If we edit a sequence and then remove the sequence from the file system, following exception occurs. 
> [2010-11-22 09:25:59,115] DEBUG - AbstractSynapseArtifactDeployer UnDeployment of the synapse artifact from file : /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml : STARTED
> [2010-11-22 09:25:59,115] ERROR - AbstractSynapseArtifactDeployer Artifact representing the filename /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> [2010-11-22 09:25:59,125]  INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: Artifact representing the filename /home/heshan/Dev/released_distributions/wso2esb-3.0.1/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> This occurs in endpoints/sequences/proxyservices/eventsources/localentries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-713) Fixing an issue in AbstractSynapseArtifactDeployer

Posted by "Heshan Suriyaarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Heshan Suriyaarachchi updated SYNAPSE-713:
------------------------------------------

    Attachment: SYNAPSE-713-ver2.patch

While fixing this issue, I came across another issue.

In the SynapseArtifactDeploymentStore, we are having a Map which Keeps track of the deployed artifacts in the synapse environment named fileName2ArtifactName. It is defined as a static variable. IMV this should not be a static variable.

The other Map which Keeps track of the updating artifacts in the synapse environment in a particular instance, is not defined in the static scope. I think it is the correct way. 

Therefore re-attaching the patch with the proposed fix. 

> Fixing an issue in AbstractSynapseArtifactDeployer
> --------------------------------------------------
>
>                 Key: SYNAPSE-713
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-713
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>            Reporter: Heshan Suriyaarachchi
>             Fix For: FUTURE
>
>         Attachments: SYNAPSE-713-ver2.patch, SYNAPSE-713.patch
>
>
> If we edit a sequence and then remove the sequence from the file system, following exception occurs. 
> [2010-11-22 09:25:59,115] DEBUG - AbstractSynapseArtifactDeployer UnDeployment of the synapse artifact from file : /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml : STARTED
> [2010-11-22 09:25:59,115] ERROR - AbstractSynapseArtifactDeployer Artifact representing the filename /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> [2010-11-22 09:25:59,125]  INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: Artifact representing the filename /home/heshan/Dev/released_distributions/wso2esb-3.0.1/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> This occurs in endpoints/sequences/proxyservices/eventsources/localentries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Resolved: (SYNAPSE-713) Fixing an issue in AbstractSynapseArtifactDeployer

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Kamburugamuva resolved SYNAPSE-713.
-----------------------------------------

    Resolution: Fixed

Applied the patch. Thanks Heshan for the contribution.


> Fixing an issue in AbstractSynapseArtifactDeployer
> --------------------------------------------------
>
>                 Key: SYNAPSE-713
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-713
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>            Reporter: Heshan Suriyaarachchi
>            Assignee: Supun Kamburugamuva
>             Fix For: FUTURE
>
>         Attachments: SYNAPSE-713-ver2.patch, SYNAPSE-713.patch
>
>
> If we edit a sequence and then remove the sequence from the file system, following exception occurs. 
> [2010-11-22 09:25:59,115] DEBUG - AbstractSynapseArtifactDeployer UnDeployment of the synapse artifact from file : /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml : STARTED
> [2010-11-22 09:25:59,115] ERROR - AbstractSynapseArtifactDeployer Artifact representing the filename /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> [2010-11-22 09:25:59,125]  INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: Artifact representing the filename /home/heshan/Dev/released_distributions/wso2esb-3.0.1/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> This occurs in endpoints/sequences/proxyservices/eventsources/localentries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Assigned: (SYNAPSE-713) Fixing an issue in AbstractSynapseArtifactDeployer

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Kamburugamuva reassigned SYNAPSE-713:
-------------------------------------------

    Assignee: Supun Kamburugamuva

> Fixing an issue in AbstractSynapseArtifactDeployer
> --------------------------------------------------
>
>                 Key: SYNAPSE-713
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-713
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>            Reporter: Heshan Suriyaarachchi
>            Assignee: Supun Kamburugamuva
>             Fix For: FUTURE
>
>         Attachments: SYNAPSE-713-ver2.patch, SYNAPSE-713.patch
>
>
> If we edit a sequence and then remove the sequence from the file system, following exception occurs. 
> [2010-11-22 09:25:59,115] DEBUG - AbstractSynapseArtifactDeployer UnDeployment of the synapse artifact from file : /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml : STARTED
> [2010-11-22 09:25:59,115] ERROR - AbstractSynapseArtifactDeployer Artifact representing the filename /home/heshan/Dev/synapse-2.1.0-SNAPSHOT/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> [2010-11-22 09:25:59,125]  INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: Artifact representing the filename /home/heshan/Dev/released_distributions/wso2esb-3.0.1/repository/conf/synapse-config/sequences/seq2.xml is not deployed on Synapse
> This occurs in endpoints/sequences/proxyservices/eventsources/localentries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org