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

Cannot specify which converter to use when several can do the same conversion

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.16.0
    • Component/s: camel-http, camel-jetty
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I use both Camel-Jetty and Camel-http4 components in many routes. Each time a route is started the following messages appear in logs :

      15:16:01,496 | WARN | xtenderThread-32 | DefaultTypeConverter | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Overriding type converter from: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.component.http.HttpConverter.toInputStream(javax.servlet.http.HttpServletRequest,org.apache.camel.Exchange) throws java.io.IOException to: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.component.http4.HttpConverter.toInputStream(javax.servlet.http.HttpServletRequest,org.apache.camel.Exchange) throws java.io.IOException
      15:16:01,497 | WARN | xtenderThread-32 | DefaultTypeConverter | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Overriding type converter from: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletRequest org.apache.camel.component.http.HttpConverter.toServletRequest(org.apache.camel.Message) to: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletRequest org.apache.camel.component.http4.HttpConverter.toServletRequest(org.apache.camel.Message)
      15:16:01,498 | WARN | xtenderThread-32 | DefaultTypeConverter | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Overriding type converter from: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletResponse org.apache.camel.component.http.HttpConverter.toServletResponse(org.apache.camel.Message) to: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletResponse org.apache.camel.component.http4.HttpConverter.toServletResponse(org.apache.camel.Message)

      Even if these are warnings, even if the impact is clearly documented, my customers can not understand why there are so many messages with keywords like IOExceptions and can think this is linked to my product since they appear each time a route is started. This is why I have chosen Major as a priority.

      I cannot uninstall neither camel-http4 nor camel-http (which is the most quoted solution on forums).

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              nlebreton Nicolas Lebreton
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: