Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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.
-
-
Hide
- my-test-project-1.zip
- 03/May/12 06:07 AM
- 20 kB
- Pablo Kraan
-
- my-test-project/.DS_Store 6 kB
- __MACOSX/my-test-project/._.DS_Store 0.1 kB
- my-test-project/.project 0.5 kB
- my-test-project/bin/binding-config.xml 2 kB
- my-test-project/bin/log4j.properties 0.3 kB
- my-test-project/.../BindingComponent.class 1 kB
- my-test-project/.../BindingInterface.class 0.3 kB
- my-test-project/.../BindingWithDynamicEndpointTestCase.class 1 kB
- my-test-project/pom.xml 2 kB
- my-test-project/src/.DS_Store 6 kB
- __MACOSX/my-test-project/src/._.DS_Store 0.1 kB
- my-test-project/src/main/.DS_Store 6 kB
- __MACOSX/my-test-project/.../._.DS_Store 0.1 kB
- my-test-project/.../BindingComponent.java 1.0 kB
- my-test-project/.../BindingInterface.java 0.5 kB
- my-test-project/src/test/.DS_Store 6 kB
- __MACOSX/my-test-project/.../._.DS_Store 0.1 kB
- my-test-project/.../BindingWithDynamicEndpointTestCase.java 1 kB
- my-test-project/src/.../binding-config.xml 2 kB
- my-test-project/src/.../log4j.properties 0.3 kB
- my-test-project/target/.DS_Store 6 kB
- __MACOSX/my-test-project/.../._.DS_Store 0.1 kB
- my-test-project/.../BindingComponent.class 1 kB
- my-test-project/.../BindingInterface.class 0.3 kB
- my-test-project/.../binding-config.xml 2 kB
- my-test-project/target/.../log4j.properties 0.3 kB
- my-test-project/.../BindingWithDynamicEndpointTestCase.class 1 kB
-
- patch.txt
- 27/Apr/12 09:09 AM
- 1 kB
- Alan Cassar
Activity
Test case to support the patch. Without the patch, the test case fails with above exception. With the patch applied. It works fine.
please note in the POM I used Mule version of 3.2.2, you should switch that to the current 3.x branch version.
This patch fixes the issue