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

Type converter confusion when camel-cxf and camel-mail are in same classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.18.5
    • 2.23.0
    • camel-cxf, camel-mail
    • None
    • Unknown

    Description

      The CxfRsProducer needs to find a converter to take the String body of an exchange message and turn it into an Object[]. However when camel-mail is present in the classpath the converter search method picks:

      com.sun.mail.imap.SortTerm[] org.apache.camel.component.mail.MailConverters.toSortTerm(String msg)

      This causes the CxfRsProducer to bomb on a NoSuchMethodException.

      If camel-mail is removed, the CxfRsProducer client works, finding the right String -> Object[] converter.

      Issue discussed here on Camel user mailing list

       

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            afbagwe@sandia.gov Allen Bagwell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: