[ 
https://issues.apache.org/jira/browse/CAMEL-10701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-10701.
--------------------------------------
    Resolution: Fixed

> Classloader issue prevents from loading kafka authentication in OSGi 
> environments
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-10701
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10701
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka
>            Reporter: Antoine DESSAIGNE
>            Assignee: Andrea Cosentino
>             Fix For: 2.18.2, 2.19.0
>
>
> 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.
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to