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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.18.5
    • Fix Version/s: 2.23.0
    • Component/s: camel-cxf, camel-mail
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: