JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-6200

Binding does not work with dynamic endpoints

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 3.3.0
  • Fix Version/s: 3.1.4 (EE only), 3.2.3 (EE only), 3.3.1
  • Component/s: Core: (other)
  • Labels:
    None
  • 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:
    None

Description

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    my-test-project.zip
    27/Apr/12 09:10 AM
    0.2 kB
    Alan Cassar
    Download Zip
    Show
    Zip Archive
    my-test-project.zip
    27/Apr/12 09:10 AM
    0.2 kB
    Alan Cassar
  2. Hide
    Zip Archive
    my-test-project-1.zip
    03/May/12 06:07 AM
    20 kB
    Pablo Kraan
    1. File
      my-test-project/.DS_Store 6 kB
    2. File
      __MACOSX/my-test-project/._.DS_Store 0.1 kB
    3. File
      my-test-project/.project 0.5 kB
    4. XML File
      my-test-project/bin/binding-config.xml 2 kB
    5. File
      my-test-project/bin/log4j.properties 0.3 kB
    6. File
      my-test-project/.../BindingComponent.class 1 kB
    7. File
      my-test-project/.../BindingInterface.class 0.3 kB
    8. File
      my-test-project/.../BindingWithDynamicEndpointTestCase.class 1 kB
    9. XML File
      my-test-project/pom.xml 2 kB
    10. File
      my-test-project/src/.DS_Store 6 kB
    11. File
      __MACOSX/my-test-project/src/._.DS_Store 0.1 kB
    12. File
      my-test-project/src/main/.DS_Store 6 kB
    13. File
      __MACOSX/my-test-project/.../._.DS_Store 0.1 kB
    14. Java Source File
      my-test-project/.../BindingComponent.java 1.0 kB
    15. Java Source File
      my-test-project/.../BindingInterface.java 0.5 kB
    16. File
      my-test-project/src/test/.DS_Store 6 kB
    17. File
      __MACOSX/my-test-project/.../._.DS_Store 0.1 kB
    18. Java Source File
      my-test-project/.../BindingWithDynamicEndpointTestCase.java 1 kB
    19. XML File
      my-test-project/src/.../binding-config.xml 2 kB
    20. File
      my-test-project/src/.../log4j.properties 0.3 kB
    21. File
      my-test-project/target/.DS_Store 6 kB
    22. File
      __MACOSX/my-test-project/.../._.DS_Store 0.1 kB
    23. File
      my-test-project/.../BindingComponent.class 1 kB
    24. File
      my-test-project/.../BindingInterface.class 0.3 kB
    25. XML File
      my-test-project/.../binding-config.xml 2 kB
    26. File
      my-test-project/target/.../log4j.properties 0.3 kB
    27. File
      my-test-project/.../BindingWithDynamicEndpointTestCase.class 1 kB
    Download Zip
    Show
    Zip Archive
    my-test-project-1.zip
    03/May/12 06:07 AM
    20 kB
    Pablo Kraan
  3. Text File
    patch.txt
    27/Apr/12 09:09 AM
    1 kB
    Alan Cassar

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Alan Cassar added a comment - 27/Apr/12 09:09 AM

This patch fixes the issue

Show
Alan Cassar added a comment - 27/Apr/12 09:09 AM This patch fixes the issue
Hide
Permalink
Alan Cassar added a comment - 27/Apr/12 09:10 AM

Test case to support the patch. Without the patch, the test case fails with above exception. With the patch applied. It works fine.

Show
Alan Cassar added a comment - 27/Apr/12 09:10 AM Test case to support the patch. Without the patch, the test case fails with above exception. With the patch applied. It works fine.
Hide
Permalink
Alan Cassar added a comment - 27/Apr/12 09:23 AM

please note in the POM I used Mule version of 3.2.2, you should switch that to the current 3.x branch version.

Show
Alan Cassar added a comment - 27/Apr/12 09:23 AM please note in the POM I used Mule version of 3.2.2, you should switch that to the current 3.x branch version.
Hide
Permalink
Pablo Kraan added a comment - 10/Jun/12 06:21 PM

Fix 3.1.x
http://fisheye.codehaus.org/changelog/mule/?cs=24538

Fix 3.2.x
http://fisheye.codehaus.org/changelog/mule/?cs=24542

Fix 3.3.x
http://fisheye.codehaus.org/changelog/mule/?cs=24543

Fix 3.x
http://fisheye.codehaus.org/changelog/mule/?cs=24544

Show
Pablo Kraan added a comment - 10/Jun/12 06:21 PM Fix 3.1.x http://fisheye.codehaus.org/changelog/mule/?cs=24538 Fix 3.2.x http://fisheye.codehaus.org/changelog/mule/?cs=24542 Fix 3.3.x http://fisheye.codehaus.org/changelog/mule/?cs=24543 Fix 3.x http://fisheye.codehaus.org/changelog/mule/?cs=24544

People

  • Assignee:
    Alejandro Sequeira
    Reporter:
    Alan Cassar
Vote (2)
Watch (2)

Dates

  • Created:
    27/Apr/12 09:08 AM
    Updated:
    13/Jun/12 03:02 PM
    Resolved:
    13/Jun/12 03:02 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.