Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8281

PutEmail Processor fails with Java 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.13.0
    • 1.14.0
    • None
    • Alpine base Docker Container based on `adoptopenjdk/openjdk11:alpine-jre`

    Description

      I am sending a zip file as attachment via the PutEmail processor. When I upgraded to Java11, it stopped sending mails and also did not move them to the failure queue, but there is a exception/bulletin when it tries for the first time:

      ```2021-03-01 15:08:09,721 INFO [NiFi logging handler] org.apache.nifi.StdOut 2021-03-01 15:08:09,719 WARN [Timer-Driven Process Thread-8] o.a.n.controller.tasks.ConnectableTask Administratively Yielding PutEmail[id=e8d3f418-8de4-358d-9ad3-e916e64eebe8] due to uncaught Exception: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport```

      A similar error is reported here:
      https://issues.apache.org/jira/browse/NIFI-6961

      Replacing `javax.activation-api-1.2.0` by `javax.activation-1.2.0` also helps in this case.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ribx Robin Lutz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: