Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
akoschinek
Contributor
Contributor

tMicrosoftCrmInput - class OauthClientApplication in msal4j

I am using Version: 8, Build id: 20240920_1319-patch.

Trying to connect to Dynamics using tMicrosoftCrmInput (the job so far only consists of a tMicrosoftCrmInput with tLogRow component) i am running into the following error: 

Exception in thread "main" java.lang.NoSuchMethodError: 'void com.microsoft.aad.msal4j.RequestContext.<init>(com.microsoft.aad.msal4j.AbstractClientApplicationBase, com.microsoft.aad.msal4j.PublicApi, com.microsoft.aad.msal4j.IAcquireTokenParameters)'
  at com.microsoft.aad.msal4j.OauthClientApplication.acquireToken(OauthClientApplication.java:44)
  at org.talend.ms.crm.odata.authentication.OAuthStrategyImpl.acquireToken(OAuthStrategyImpl.java:133)
  at org.talend.ms.crm.odata.authentication.OAuthStrategyImpl.getAccessTokenWebApp(OAuthStrategyImpl.java:180)
  at org.talend.ms.crm.odata.authentication.OAuthStrategyImpl.getAccessToken(OAuthStrategyImpl.java:140)
  at org.talend.ms.crm.odata.authentication.OAuthStrategyImpl.getHttpClientFactory(OAuthStrategyImpl.java:63)
  at org.talend.ms.crm.odata.DynamicsCRMClient.init(DynamicsCRMClient.java:133)
  at org.talend.ms.crm.odata.DynamicsCRMClient.<init>(DynamicsCRMClient.java:122)
  at dv.copy_of_test_ms_dyn_crm_connection_0_1.Copy_of_test_ms_dyn_crm_connection.tMicrosoftCrmInput_1Process(Copy_of_test_ms_dyn_crm_connection.java:9975)


tMicrosoftCrmInput configtMicrosoftCrmInput config

msal4j-1.16.2.jarmsal4j-1.16.2.jar
I rebuild the POMs to no avail.
Checking the extracted msal4j-1.16.2.jar i cannot find a OauthClientApplication class. 

Labels (3)
3 Replies
Madhav_Nalla
Partner Ambassador
Partner Ambassador

Are your trying to connect from Studio or run in TAC/TMC?

It looks like a java version mis match, if from studio make sure the java you have and the jar for the component are compatible
If TAC/ TMC make sure java used for studio is same as execution server
akoschinek
Contributor
Contributor
Author

I'm trying to connect from Studio. 
msal4j-1.16.2.jar should be compatible with Java17. I would try with a more current version of msal4j, but Talend does not give me any other option that to install 1.16.2

Sébastien_Fr
Contributor
Contributor

Hello,

I am using Talend Cloud Big Data Platform 20241016_1624-patch.

I have the same problem as described by NoSuchMethodError from msal4j 

I also have version msal4j-1.16.2.jar installed by Talend and I use Java JDK 17.0.11 (version required by Talend ‌‌

Did you find a solution?