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

ClassNotFoundException for onException(Class) in Java DSL in OSGi

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.25.1
    • None
    • None
    • Unknown

    Description

      With CAMEL-13468, OnExceptionDefinition.java lost exceptionClasses field and actual exception classes where converted in Java DSL into String objects - resolved later when exception processor was created.

      This could (and actually did) cause problems in OSGi, when route was defined from different bundle (which had correct Import-Package headers generated by maven-bundle-plugin) than the bundle with actual route.

      I have a fix that both keeps class names (for marshalling purpose) and actual classes (for OSGi).

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              ggrzybek Grzegorz Grzybek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: