[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]