Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6516

camel-mina and camel-mina2 fail when configured with Spring or blueprint

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      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]...

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              viecili Henrique Viecili
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: