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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.2, 2.15.0
    • Fix Version/s: 2.14.3, 2.15.1, 2.16.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: