Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.10.4, 2.11.0
-
None
-
Novice
Description
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]...