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

Classloader issue prevents from loading kafka authentication in OSGi environments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.2, 2.19.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      Previously, KAFKA-3218 prevented from loading properly Kafka in an OSGi environment. There is a workaround to this bug in camel-kafka.

      Unfortunatly, now that they have fixed the bug, this workaround prevents from loading SASL authentication settings in OSGi environments. The bug was fixed in Kafka 0.10.1.0 and camel uses this version in the 2.18.x branch.

      Caused by: javax.security.auth.login.LoginException: classe LoginModule introuvable : org.apache.kafka.common.security.plain.PlainLoginModule
          at javax.security.auth.login.LoginContext.invoke(LoginContext.java:794)
          at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
          at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
          at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
          at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
          at org.apache.kafka.common.security.authenticator.AbstractLogin.login(AbstractLogin.java:69)
          at org.apache.kafka.common.security.authenticator.LoginManager.<init>(LoginManager.java:46)
          at org.apache.kafka.common.security.authenticator.LoginManager.acquireLoginManager(LoginManager.java:68)
          at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:78)
          ... 29 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                antoine.dessaigne Antoine DESSAIGNE
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: