You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Evanthika Amarasiri (JIRA)" <ji...@apache.org> on 2008/05/22 11:05:55 UTC
[jira] Created: (SYNAPSE-324) Unable to assign policies for Proxy
services that are defined in the Integrated registry
Unable to assign policies for Proxy services that are defined in the Integrated registry
----------------------------------------------------------------------------------------
Key: SYNAPSE-324
URL: https://issues.apache.org/jira/browse/SYNAPSE-324
Project: Synapse
Issue Type: Bug
Components: Proxy Services
Affects Versions: 1.1.1
Environment: Ubuntu7.10, JDK1.5.0_14
Reporter: Evanthika Amarasiri
Priority: Blocker
Created a Proxy Service with a reference to a policy which is defined in the integrated registry.
The configuration that I tried was,
********************************************************************************************
<definitions xmlns="http://ws.apache.org/ns/synapse">
<registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
<parameter name="root">file:./repository/conf/sample/resources/</parameter>
<parameter name="cachableDuration">150000</parameter>
</registry>
<proxy name="securityProxy" startOnLoad="true">
<target>
<inSequence>
<send>
<endpoint>
<address uri="http://localhost:9001/soap/SecureStockQuoteService">
<enableAddressing/>
<enableSec/>
</address>
</endpoint>
</send>
</inSequence>
<outSequence>
<header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" name="wsse:Security" action="remove"/>
<send/>
</outSequence>
</target>
<policy key="policy/policy_3.xml"/>
</proxy>
</definitions>
********************************************************************************************
When trying to start the Synapse server with the particular configuration the following exception was thrown.
2008-05-22 14:20:56,957 [127.0.1.1-evanthika-laptop] [main] FATAL ServerManager Synaps startup failed...
org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:315)
at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:53)
at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:527)
at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:417)
at org.apache.synapse.core.axis2.SynapseInitializationModule.init(SynapseInitializationModule.java:142)
at org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:226)
at org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:80)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
at org.apache.synapse.ServerManager.start(ServerManager.java:106)
at org.apache.synapse.SynapseServer.main(SynapseServer.java:72)
--
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] Closed: (SYNAPSE-324) Unable to assign policies for Proxy
services that are defined in the Integrated registry
Posted by "Evanthika Amarasiri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Evanthika Amarasiri closed SYNAPSE-324.
---------------------------------------
Tested on synapse1.2. It is possible to specify policies in the Integrated Registry. When starting a configuration with a policy defined in the Integrated Registry the above exception is not thrown. The issue will be closed.
> Unable to assign policies for Proxy services that are defined in the Integrated registry
> ----------------------------------------------------------------------------------------
>
> Key: SYNAPSE-324
> URL: https://issues.apache.org/jira/browse/SYNAPSE-324
> Project: Synapse
> Issue Type: Bug
> Components: Proxy Services
> Affects Versions: 1.1.1
> Environment: Ubuntu7.10, JDK1.5.0_14
> Reporter: Evanthika Amarasiri
> Assignee: Ruwan Linton
> Priority: Blocker
> Fix For: 1.2
>
>
> Created a Proxy Service with a reference to a policy which is defined in the integrated registry.
> The configuration that I tried was,
> ********************************************************************************************
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> <parameter name="root">file:./repository/conf/sample/resources/</parameter>
> <parameter name="cachableDuration">150000</parameter>
> </registry>
> <proxy name="securityProxy" startOnLoad="true">
> <target>
> <inSequence>
> <send>
> <endpoint>
> <address uri="http://localhost:9001/soap/SecureStockQuoteService">
> <enableAddressing/>
> <enableSec/>
> </address>
> </endpoint>
> </send>
> </inSequence>
> <outSequence>
> <header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" name="wsse:Security" action="remove"/>
> <send/>
> </outSequence>
> </target>
> <policy key="policy/policy_3.xml"/>
> </proxy>
> </definitions>
> ********************************************************************************************
> When trying to start the Synapse server with the particular configuration the following exception was thrown.
> 2008-05-22 14:20:56,957 [127.0.1.1-evanthika-laptop] [main] FATAL ServerManager Synaps startup failed...
> org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
> at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:315)
> at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:53)
> at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:527)
> at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:417)
> at org.apache.synapse.core.axis2.SynapseInitializationModule.init(SynapseInitializationModule.java:142)
> at org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:226)
> at org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:80)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
> at org.apache.synapse.ServerManager.start(ServerManager.java:106)
> at org.apache.synapse.SynapseServer.main(SynapseServer.java:72)
--
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-324) Unable to assign policies for Proxy
services that are defined in the Integrated registry
Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruwan Linton resolved SYNAPSE-324.
----------------------------------
Resolution: Fixed
Fixed on the 1.2 branch of Synapse
> Unable to assign policies for Proxy services that are defined in the Integrated registry
> ----------------------------------------------------------------------------------------
>
> Key: SYNAPSE-324
> URL: https://issues.apache.org/jira/browse/SYNAPSE-324
> Project: Synapse
> Issue Type: Bug
> Components: Proxy Services
> Affects Versions: 1.1.1
> Environment: Ubuntu7.10, JDK1.5.0_14
> Reporter: Evanthika Amarasiri
> Assignee: Ruwan Linton
> Priority: Blocker
> Fix For: 1.2
>
>
> Created a Proxy Service with a reference to a policy which is defined in the integrated registry.
> The configuration that I tried was,
> ********************************************************************************************
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> <parameter name="root">file:./repository/conf/sample/resources/</parameter>
> <parameter name="cachableDuration">150000</parameter>
> </registry>
> <proxy name="securityProxy" startOnLoad="true">
> <target>
> <inSequence>
> <send>
> <endpoint>
> <address uri="http://localhost:9001/soap/SecureStockQuoteService">
> <enableAddressing/>
> <enableSec/>
> </address>
> </endpoint>
> </send>
> </inSequence>
> <outSequence>
> <header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" name="wsse:Security" action="remove"/>
> <send/>
> </outSequence>
> </target>
> <policy key="policy/policy_3.xml"/>
> </proxy>
> </definitions>
> ********************************************************************************************
> When trying to start the Synapse server with the particular configuration the following exception was thrown.
> 2008-05-22 14:20:56,957 [127.0.1.1-evanthika-laptop] [main] FATAL ServerManager Synaps startup failed...
> org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
> at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:315)
> at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:53)
> at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:527)
> at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:417)
> at org.apache.synapse.core.axis2.SynapseInitializationModule.init(SynapseInitializationModule.java:142)
> at org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:226)
> at org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:80)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
> at org.apache.synapse.ServerManager.start(ServerManager.java:106)
> at org.apache.synapse.SynapseServer.main(SynapseServer.java:72)
--
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-324) Unable to assign policies for Proxy
services that are defined in the Integrated registry
Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asankha C. Perera updated SYNAPSE-324:
--------------------------------------
Fix Version/s: 1.2
> Unable to assign policies for Proxy services that are defined in the Integrated registry
> ----------------------------------------------------------------------------------------
>
> Key: SYNAPSE-324
> URL: https://issues.apache.org/jira/browse/SYNAPSE-324
> Project: Synapse
> Issue Type: Bug
> Components: Proxy Services
> Affects Versions: 1.1.1
> Environment: Ubuntu7.10, JDK1.5.0_14
> Reporter: Evanthika Amarasiri
> Priority: Blocker
> Fix For: 1.2
>
>
> Created a Proxy Service with a reference to a policy which is defined in the integrated registry.
> The configuration that I tried was,
> ********************************************************************************************
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> <parameter name="root">file:./repository/conf/sample/resources/</parameter>
> <parameter name="cachableDuration">150000</parameter>
> </registry>
> <proxy name="securityProxy" startOnLoad="true">
> <target>
> <inSequence>
> <send>
> <endpoint>
> <address uri="http://localhost:9001/soap/SecureStockQuoteService">
> <enableAddressing/>
> <enableSec/>
> </address>
> </endpoint>
> </send>
> </inSequence>
> <outSequence>
> <header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" name="wsse:Security" action="remove"/>
> <send/>
> </outSequence>
> </target>
> <policy key="policy/policy_3.xml"/>
> </proxy>
> </definitions>
> ********************************************************************************************
> When trying to start the Synapse server with the particular configuration the following exception was thrown.
> 2008-05-22 14:20:56,957 [127.0.1.1-evanthika-laptop] [main] FATAL ServerManager Synaps startup failed...
> org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
> at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:315)
> at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:53)
> at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:527)
> at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:417)
> at org.apache.synapse.core.axis2.SynapseInitializationModule.init(SynapseInitializationModule.java:142)
> at org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:226)
> at org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:80)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
> at org.apache.synapse.ServerManager.start(ServerManager.java:106)
> at org.apache.synapse.SynapseServer.main(SynapseServer.java:72)
--
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-324) Unable to assign policies for Proxy
services that are defined in the Integrated registry
Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599896#action_12599896 ]
Ruwan Linton commented on SYNAPSE-324:
--------------------------------------
Well, we do not lookup registry to get resources when building the proxy service policies, this should be fixed.
> Unable to assign policies for Proxy services that are defined in the Integrated registry
> ----------------------------------------------------------------------------------------
>
> Key: SYNAPSE-324
> URL: https://issues.apache.org/jira/browse/SYNAPSE-324
> Project: Synapse
> Issue Type: Bug
> Components: Proxy Services
> Affects Versions: 1.1.1
> Environment: Ubuntu7.10, JDK1.5.0_14
> Reporter: Evanthika Amarasiri
> Assignee: Ruwan Linton
> Priority: Blocker
> Fix For: 1.2
>
>
> Created a Proxy Service with a reference to a policy which is defined in the integrated registry.
> The configuration that I tried was,
> ********************************************************************************************
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> <parameter name="root">file:./repository/conf/sample/resources/</parameter>
> <parameter name="cachableDuration">150000</parameter>
> </registry>
> <proxy name="securityProxy" startOnLoad="true">
> <target>
> <inSequence>
> <send>
> <endpoint>
> <address uri="http://localhost:9001/soap/SecureStockQuoteService">
> <enableAddressing/>
> <enableSec/>
> </address>
> </endpoint>
> </send>
> </inSequence>
> <outSequence>
> <header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" name="wsse:Security" action="remove"/>
> <send/>
> </outSequence>
> </target>
> <policy key="policy/policy_3.xml"/>
> </proxy>
> </definitions>
> ********************************************************************************************
> When trying to start the Synapse server with the particular configuration the following exception was thrown.
> 2008-05-22 14:20:56,957 [127.0.1.1-evanthika-laptop] [main] FATAL ServerManager Synaps startup failed...
> org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
> at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:315)
> at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:53)
> at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:527)
> at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:417)
> at org.apache.synapse.core.axis2.SynapseInitializationModule.init(SynapseInitializationModule.java:142)
> at org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:226)
> at org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:80)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
> at org.apache.synapse.ServerManager.start(ServerManager.java:106)
> at org.apache.synapse.SynapseServer.main(SynapseServer.java:72)
--
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-324) Unable to assign policies for Proxy
services that are defined in the Integrated registry
Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruwan Linton reassigned SYNAPSE-324:
------------------------------------
Assignee: Ruwan Linton
> Unable to assign policies for Proxy services that are defined in the Integrated registry
> ----------------------------------------------------------------------------------------
>
> Key: SYNAPSE-324
> URL: https://issues.apache.org/jira/browse/SYNAPSE-324
> Project: Synapse
> Issue Type: Bug
> Components: Proxy Services
> Affects Versions: 1.1.1
> Environment: Ubuntu7.10, JDK1.5.0_14
> Reporter: Evanthika Amarasiri
> Assignee: Ruwan Linton
> Priority: Blocker
> Fix For: 1.2
>
>
> Created a Proxy Service with a reference to a policy which is defined in the integrated registry.
> The configuration that I tried was,
> ********************************************************************************************
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> <parameter name="root">file:./repository/conf/sample/resources/</parameter>
> <parameter name="cachableDuration">150000</parameter>
> </registry>
> <proxy name="securityProxy" startOnLoad="true">
> <target>
> <inSequence>
> <send>
> <endpoint>
> <address uri="http://localhost:9001/soap/SecureStockQuoteService">
> <enableAddressing/>
> <enableSec/>
> </address>
> </endpoint>
> </send>
> </inSequence>
> <outSequence>
> <header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" name="wsse:Security" action="remove"/>
> <send/>
> </outSequence>
> </target>
> <policy key="policy/policy_3.xml"/>
> </proxy>
> </definitions>
> ********************************************************************************************
> When trying to start the Synapse server with the particular configuration the following exception was thrown.
> 2008-05-22 14:20:56,957 [127.0.1.1-evanthika-laptop] [main] FATAL ServerManager Synaps startup failed...
> org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
> at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:315)
> at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:53)
> at org.apache.synapse.core.axis2.ProxyService.getPolicyFromKey(ProxyService.java:527)
> at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:417)
> at org.apache.synapse.core.axis2.SynapseInitializationModule.init(SynapseInitializationModule.java:142)
> at org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:226)
> at org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:204)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:80)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
> at org.apache.synapse.ServerManager.start(ServerManager.java:106)
> at org.apache.synapse.SynapseServer.main(SynapseServer.java:72)
--
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