My Oracle Support Banner

Unable To Connect To An Exchange Mailbox Via OAUTH With A Capture 12c Import Job (Doc ID 2809284.1)

Last updated on SEPTEMBER 24, 2021

Applies to:

Oracle WebCenter Enterprise Capture - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

The following error is returned when attempting to connect to Microsoft Exchange using OAuth configured in the Import Source Settings in Capture:

[2021-08-08T20:31:19.560-04:00] [WLS_WINCAPT1] [ERROR] [] [oracle.odc.importprocessor.ImportJobSchedulerSessionBean] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: ] [ecid: <ECID>] [APP: capture] [partition-name: DOMAIN] [tenant-name: GLOBAL] Error connecting to account[[
oracle.odc.exception.CaptureException: Error connecting to account
  at oracle.odc.importprocessor.email.ExchangeEmailSource.processAccount(ExchangeEmailSource.java:300)
  at oracle.odc.importprocessor.email.ExchangeEmailSource.processExchange(ExchangeEmailSource.java:193)
  at oracle.odc.importprocessor.email.EmailSource.process(EmailSource.java:1517)
  at oracle.odc.importprocessor.ImportProcessorBean.onMessage(ImportProcessorBean.java:191)
  at sun.reflect.GeneratedMethodAccessor1120.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  at com.oracle.pitchfork.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:101)
  at com.oracle.pitchfork.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:101)
  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  at com.oracle.pitchfork.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:101)
  at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
  at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
  at sun.reflect.GeneratedMethodAccessor944.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at com.oracle.pitchfork.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:94)
  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  at com.oracle.pitchfork.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:101)
  at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:131)
  at java.security.AccessController.doPrivileged(Native Method)
  at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
  at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:650)
  at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:118)
  at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:197)
  at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:112)
  at sun.reflect.GeneratedMethodAccessor945.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at com.oracle.pitchfork.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:94)
  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
  at com.sun.proxy.$Proxy338.onMessage(Unknown Source)
  at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:438)
  at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:361)
  at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:297)
  at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:5107)
  at weblogic.jms.client.JMSSession.execute(JMSSession.java:4778)
  at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:4173)
  at weblogic.jms.client.JMSSession.access$000(JMSSession.java:127)
  at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5632)
  at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:681)
  at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
  at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
  at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
  at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
  at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:655)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
Caused by: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The request failed. Connect to outlook.office365.com:443 [outlook.office365.com/<ip address>, outlook.office365.com/<ip address>, outlook.office365.com/<ip address>, outlook.office365.com/<ip address>] failed: Connection refused: connect
  at microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:74)
  at microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:158)
  at microsoft.exchange.webservices.data.core.ExchangeService.bindToFolder(ExchangeService.java:504)
  at microsoft.exchange.webservices.data.core.ExchangeService.bindToFolder(ExchangeService.java:523)
  at microsoft.exchange.webservices.data.core.service.folder.Folder.bind(Folder.java:98)
  at microsoft.exchange.webservices.data.core.service.folder.Folder.bind(Folder.java:147)
  at oracle.odc.importprocessor.email.ExchangeEmailSource.processAccount(ExchangeEmailSource.java:295)
  ... 54 more





Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.