Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-324

Unable to assign policies for Proxy services that are defined in the Integrated registry

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1.1
    • 1.2
    • Core
    • None
    • Ubuntu7.10, JDK1.5.0_14

    Description

      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)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ruwan Ruwan Linton
            evanthika Evanthika Shiromali Amarasiri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment