Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
HoS1
Contributor III
Contributor III

tPop Authentication Mode Microsoft Exchange compile error

Hello,

i tried to use TOS 8 with the tPop component from github to get Authentication Mode to Microsoft Exchange. I can choose it in the component and filled in my tenant id, application id and client secret value, but during compile i get this error below: What to do?

Kind Regards

Holger

org.talend.designer.runprocess.ProcessorException: Job compile errors 

At least job "Fetch_EMail" has a compile errors, please fix and export again.

Error Line: 1419

Detail Message: com.microsoft.aad.msal4j.ClientCredentialParameters cannot be resolved to a type

There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.

at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:359)

at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:534)

at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:318)

at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:826)

at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:706)

at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:2029)

at org.talend.designer.runprocess.RunProcessContext$2.run(RunProcessContext.java:663)

at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:436)

at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352)

at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:468)

at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:228)

at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:984)

at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:610)

at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1447)

at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:736)

at org.talend.designer.runprocess.ui.actions.RunProcessAction.run(RunProcessAction.java:63)

at org.talend.designer.core.debug.JobLaunchConfigurationDelegate$1$1.run(JobLaunchConfigurationDelegate.java:98)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4179)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3839)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)

at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)

at org.talend.rcp.intro.Application.start(Application.java:303)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)

at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)

at java.base/java.lang.reflect.Method.invoke(Method.java:577)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:654)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)

at org.eclipse.equinox.launcher.Main.run(Main.java:1462)

Labels (2)
20 Replies
Anonymous
Not applicable

Hello,

When you get some compile errors, could you please check your "Code" tab in your job to see if there will be your compile error highlighted in red line?

Best regards

Sabrina

 

HoS1
Contributor III
Contributor III
Author

Here's what i see in code tab.

Xiaodi_Shi
Support
Support

Hello,

Could you please check these online documentations about how to set up tpop with microsoft exchange and the necessary configuration steps?

https://help.talend.com/r/en-US/8.0/pop/configuring-an-oauth2-application-for-pop-and-imap

https://help.talend.com/r/en-US/8.0/pop/registering-service-principal-in-exchange

We added Microsoft Exchange auth to make the component to negotiate / retrieve an access token using the Microsoft Secure Authentication Library (MSAL), but Exchange does NOT support SMTP via Oauth 2.

Best regards

Sabrina

HoS1
Contributor III
Contributor III
Author

Hello,

i'm not talking about SMTP. My talend job should retreive E-Mails from M365 mailboxes. Therefore i uses tPop the component. I already did the necessary azure configuration and i'm using another app based on PHP and it works.

It seems that it is not enough to replace the tPop component from GitHub, as it was mentioned 
here

https://community.qlik.com/t5/Installing-and-Upgrading/Monthly-update-needed/m-p/2380139#M3511

(answer by Shong 2022-12-19 09:16 PM)

Because i get this error during compiling:

Detail Message: com.microsoft.aad.msal4j.ClientCredentialParameters cannot be resolved to a type

there must be some additional steps to get this working. Perhaps i've to install another library or replace another component, but i don't know which one.

Regards

Holger

Xiaodi_Shi
Support
Support

Hello,

Would you mind posting your tpop component setting screenshots here? We will see if there is some configuration missing from your end.

Please mask your sensitive data.

Best regards

Sabrina

HoS1
Contributor III
Contributor III
Author

Hello Sabrina,

here's a screenshot. No advanced settings.

Kind regards

Bildschirmfoto 2024-02-09 um 08.40.28.png

HoS1
Contributor III
Contributor III
Author

Hello Sabrina,

do you have an update for me?

Kind regards

Xiaodi_Shi
Support
Support

Hello,

Sorry for getting back to you late. All required jar files for tpop component have been installed in your studio? Are you using java 11?

The ApplicationID and Object ID are correct with you (full access to service app) and you did  make the same changes on the enterprise azure directory?

Best regards

Sabrina

 

HoS1
Contributor III
Contributor III
Author

Hello Sabrina,

on M365 and Azura side, everything is working as expected. We did check that already. The problem is not regarding accessing the mailboxes, but regarding to compile the job. We're using JDK 18 (18.0.1).

It seems that it is not enough to replace the tPop component from GitHub, as it was mentioned 
here

https://community.qlik.com/t5/Installing-and-Upgrading/Monthly-update-needed/m-p/2380139#M3511

(answer by Shong 2022-12-19 09:16 PM)

Because i get this error during compiling:

Detail Message: com.microsoft.aad.msal4j.ClientCredentialParameters cannot be resolved to a type

there must be some additional steps to get this working. Perhaps i've to install another library or replace another component, but i don't know which one.

Kind regards

Holger