Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-6200

Binding does not work with dynamic endpoints

    Details

    • User impact:
      Low
    • Configuration:
      Hide

      <flow name="testBindingFlow">
      <vm:inbound-endpoint path="in" exchange-pattern="request-response"/>
      <object-to-string-transformer />
      <component class="org.mule.binding.BindingComponent">
      <binding interface="org.mule.binding.BindingInterface">
      <outbound-endpoint address="http://localhost:#[map-payload:port]/#[map-payload:path]">
      <expression-transformer evaluator="map-payload" expression="payload" />
      <response>
      <object-to-string-transformer />
      </response>
      </outbound-endpoint>
      </binding>
      </component>
      </flow>

      Show
      <flow name="testBindingFlow"> <vm:inbound-endpoint path="in" exchange-pattern="request-response"/> <object-to-string-transformer /> <component class="org.mule.binding.BindingComponent"> <binding interface="org.mule.binding.BindingInterface"> <outbound-endpoint address="http://localhost:#[map-payload:port]/#[map-payload:path]"> <expression-transformer evaluator="map-payload" expression="payload" /> <response> <object-to-string-transformer /> </response> </outbound-endpoint> </binding> </component> </flow>
    • Log Output:
      Hide
      ********************************************************************************
      Message : Failed to invoke DefaultJavaComponent{testBindingFlow.commponent.607551681}. Component that caused exception is: DefaultJavaComponent{testBindingFlow.commponent.607551681}. Message payload is of type: String
      Code : MULE_ERROR--2
      --------------------------------------------------------------------------------
      Exception stack is:
      1. No connector available (java.lang.UnsupportedOperationException)
        org.mule.endpoint.DynamicOutboundEndpoint:172 (null)
      2. Failed to create proxy for org.mule.binding.BindingComponent@9ad5d46 (org.mule.api.MuleRuntimeException)
        org.mule.component.DefaultInterfaceBinding:83 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html)
      3. Failed to invoke DefaultJavaComponent{testBindingFlow.commponent.607551681}. Component that caused exception is: DefaultJavaComponent{testBindingFlow.commponent.607551681}. Message payload is of type: String (org.mule.component.ComponentException)
        org.mule.component.AbstractComponent:148 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/component/ComponentException.html)
      --------------------------------------------------------------------------------
      Root Exception stack trace:
      java.lang.UnsupportedOperationException: No connector available
      at org.mule.endpoint.DynamicOutboundEndpoint.getConnector(DynamicOutboundEndpoint.java:172)
      at org.mule.component.BindingInvocationHandler.addRouterForInterface(BindingInvocationHandler.java:68)
      at org.mule.component.BindingInvocationHandler.<init>(BindingInvocationHandler.java:48)
          + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
      ********************************************************************************
      Show
      ******************************************************************************** Message : Failed to invoke DefaultJavaComponent{testBindingFlow.commponent.607551681}. Component that caused exception is: DefaultJavaComponent{testBindingFlow.commponent.607551681}. Message payload is of type: String Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. No connector available (java.lang.UnsupportedOperationException)   org.mule.endpoint.DynamicOutboundEndpoint:172 (null) 2. Failed to create proxy for org.mule.binding.BindingComponent@9ad5d46 (org.mule.api.MuleRuntimeException)   org.mule.component.DefaultInterfaceBinding:83 ( http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html ) 3. Failed to invoke DefaultJavaComponent{testBindingFlow.commponent.607551681}. Component that caused exception is: DefaultJavaComponent{testBindingFlow.commponent.607551681}. Message payload is of type: String (org.mule.component.ComponentException)   org.mule.component.AbstractComponent:148 ( http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/component/ComponentException.html ) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.UnsupportedOperationException: No connector available at org.mule.endpoint.DynamicOutboundEndpoint.getConnector(DynamicOutboundEndpoint.java:172) at org.mule.component.BindingInvocationHandler.addRouterForInterface(BindingInvocationHandler.java:68) at org.mule.component.BindingInvocationHandler.<init>(BindingInvocationHandler.java:48)     + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************
    • Similar Issues:

      Description

      Binding component fails with connector not found exception when using dynamic endpoints.

        Attachments

          Activity

            People

            • Assignee:
              alejandro.sequeira Alejandro Sequeira
              Reporter:
              alan.cassar Alan Cassar
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                4/Sep/12