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

Camel marshal/unmarshal - Should catch throwable in case dataformat causes an java.lang.Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.2, 2.15.0
    • 2.14.3, 2.15.1, 2.16.0
    • camel-core
    • None
    • Unknown

    Description

      For example if crypto dataformat cannot load some class and throw

      Caused by: java.lang.NoClassDefFoundError: javax/crypto/CipherOutputStream
              at org.apache.camel.converter.crypto.CryptoDataFormat.marshal(CryptoDataFormat.java:131)
              at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:81)
              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
      

      We should detect and handle that in marshaller / unmarshaller like the rest of the routing engine does.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: