Henrique Viecili created CAMEL-6516:
---------------------------------------
Summary: camel-mina and camel-mina2 fail when configured with
Spring or blueprint
Key: CAMEL-6516
URL: https://issues.apache.org/jira/browse/CAMEL-6516
Project: Camel
Issue Type: Bug
Components: camel-mina, camel-mina2
Affects Versions: 2.11.0, 2.10.4
Reporter: Henrique Viecili
A user following the documentation at
http://camel.apache.org/mina.html#MINA-ConfiguringMinaendpointsusingSpringbeanstyle
will face an IllegalArgumentException because
org.apache.camel.component.mina2.Mina2Component.createEndpoint(Mina2Configuration)
calls createEndpoint(null, config) and does not implement/override
org.apache.camel.impl.DefaultEndpoint.createEndpointUri()
Stack Trace:
java.lang.IllegalArgumentException: endpointUri is not specified and
org.apache.camel.component.mina2.Mina2Endpoint does not implement
createEndpointUri() to create a default value
at
org.apache.camel.impl.DefaultEndpoint.getEndpointUri(DefaultEndpoint.java:154)
(...)
Workaround: define the endpoint inline with mina:tcp://[host]...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira